Skip to content

Commit 4816623

Browse files
committed
Update Action scripts to save build on failure
1 parent d6638b2 commit 4816623

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

Diff for: .github/workflows/cron.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,14 @@ jobs:
4141
run: |
4242
git checkout ${{ matrix.idf_branch }} || echo "Using master branch"
4343
bash ./tools/cron.sh
44+
- name: Upload build
45+
if: failure()
46+
uses: actions/upload-artifact@v4
47+
with:
48+
name: build
49+
path: build
4450
- name: Upload archive
45-
uses: actions/upload-artifact@v3
51+
uses: actions/upload-artifact@v4
4652
with:
4753
name: artifacts
4854
path: dist

Diff for: .github/workflows/push.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,14 @@ jobs:
2525
run: bash ./tools/prepare-ci.sh
2626
- name: Build Libs for ${{ matrix.target }}
2727
run: bash ./build.sh -e -t ${{ matrix.target }}
28+
- name: Upload build
29+
if: failure()
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: build
33+
path: build
2834
- name: Upload archive
29-
uses: actions/upload-artifact@v3
35+
uses: actions/upload-artifact@v4
3036
with:
3137
name: artifacts
3238
path: dist
@@ -48,12 +54,12 @@ jobs:
4854
cd out/tools/esp32-arduino-libs && tar zcf ../../../dist/esp32-arduino-libs.tar.gz * && cd ../../..
4955
cp out/package_esp32_index.template.json dist/package_esp32_index.template.json
5056
- name: Upload full esp32-arduino-libs archive
51-
uses: actions/upload-artifact@v3
57+
uses: actions/upload-artifact@v4
5258
with:
5359
name: esp32-arduino-libs
5460
path: dist/esp32-arduino-libs.tar.gz
5561
- name: Upload package_esp32_index.template.json
56-
uses: actions/upload-artifact@v3
62+
uses: actions/upload-artifact@v4
5763
with:
5864
name: package-esp32-index-json
5965
path: dist/package_esp32_index.template.json

Diff for: .github/workflows/repository_dispatch.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
run: bash ./tools/repository_dispatch.sh
1919
- name: Upload build
2020
if: failure()
21-
uses: actions/upload-artifact@v3
21+
uses: actions/upload-artifact@v4
2222
with:
2323
name: build
2424
path: build
2525
- name: Upload archive
26-
uses: actions/upload-artifact@v3
26+
uses: actions/upload-artifact@v4
2727
with:
2828
name: artifacts
2929
path: dist

0 commit comments

Comments
 (0)