Skip to content

Commit

Permalink
[.github/workflows] handle artifact using v4
Browse files Browse the repository at this point in the history
  • Loading branch information
spalmer25 committed Jul 5, 2024
1 parent 3a886e5 commit 122170c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ jobs:
bash -c "make -C app BOLOS_SDK=\$${DEVICE_SDK} DEBUG=1"
tar -C app/bin -czf app_${{ matrix.device }}_dbg.tgz .
- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: app_${{ matrix.device }}.tgz
name: app_${{ matrix.device }}.tgz
- name: Upload (dbg)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: app_${{ matrix.device }}_dbg.tgz
name: app_${{ matrix.device }}_dbg.tgz
Expand Down Expand Up @@ -71,12 +71,12 @@ jobs:
uses: actions/checkout@v3

- name: Download app
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: app_${{ matrix.device }}.tgz

- name: Download app (dbg)
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: app_${{ matrix.device }}_dbg.tgz

Expand All @@ -98,14 +98,14 @@ jobs:
fi
- name: Upload Stax results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always() && matrix.device == 'stax'
with:
name: integration_tests_${{ matrix.device }}.json
path: ./integration_tests.json

- name: Upload Nano results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always() && matrix.device != 'stax'
with:
name: integration_tests_log_${{ matrix.device }}
Expand Down Expand Up @@ -146,13 +146,13 @@ jobs:
make -C tests/unit
- name: Upload results (nano, micheline)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: nano_samples_micheline
path: tests/samples/micheline/nano

- name: Upload results (nano, operations)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: nano_samples_operations
path: tests/samples/operations/nano
Expand All @@ -172,17 +172,17 @@ jobs:
uses: actions/checkout@v3

- name: Download app
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: app_${{ matrix.device }}.tgz

- name: Download app (dbg)
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: app_${{ matrix.device }}_dbg.tgz

- name: Download samples
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: nano_samples_${{ matrix.type }}
path: tests
Expand All @@ -196,7 +196,7 @@ jobs:
./tests/integration/run_test_local.sh -T100 -F -m ${{ matrix.device }} tests
- name: Upload results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: integration_tests_${{ matrix.type}}_${{ matrix.device }}.json
Expand Down

0 comments on commit 122170c

Please sign in to comment.