-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc596f1
commit 12d4226
Showing
3 changed files
with
147 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,15 @@ jobs: | |
'tools/get.py', | ||
'.github/scripts/install-arduino-ide.sh') }} | ||
- name: Build Sketches | ||
run: bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} 15 | ||
run: bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} 15 1 | ||
|
||
#Upload cli compile json as artifact | ||
- name: Upload cli compile json | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: pr_cli_compile_${{ matrix.chunk }} | ||
path: cli_compile_${{ matrix.chunk }}.json | ||
overwrite: true | ||
|
||
# Windows and MacOS | ||
build-arduino-win-mac: | ||
|
@@ -106,3 +114,40 @@ jobs: | |
idf.py create-project test | ||
echo CONFIG_FREERTOS_HZ=1000 > test/sdkconfig.defaults | ||
idf.py -C test -DEXTRA_COMPONENT_DIRS=$PWD/components build | ||
# Save 2.x artifacts to gh-pages | ||
save-artifacts: | ||
name: Save build artifacts | ||
needs: build-arduino-linux | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/release/v2.x' | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Check out repository | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{secrets.GITHUB_TOKEN}} | ||
fetch-depth: '0' | ||
|
||
- name: Switch branch | ||
run: | ||
git checkout remotes/origin/gh-pages | ||
|
||
- name: Download sketches reports artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
pattern: pr_cli_compile_* | ||
merge-multiple: true | ||
path: v2.x_cli_compile | ||
|
||
- name: List files in the directory | ||
run: ls -R | ||
|
||
- name: Commit json files to gh-pages if on release branch | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/release/v2.x' | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add --all | ||
git commit -m "Updated 2.x cli compile json files" | ||
git push origin HEAD:gh-pages |