From 05590e2dc802f76d1a1b228a2f9d8e23a55280a4 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Fri, 14 Oct 2022 08:47:48 -0700 Subject: [PATCH] [github-actions] migrate to `actions/upload-artifact@v3` (#8278) --- .github/workflows/otbr.yml | 12 ++++++------ .github/workflows/otns.yml | 12 ++++++------ .github/workflows/posix.yml | 20 ++++++++++---------- .github/workflows/simulation-1.1.yml | 26 +++++++++++++------------- .github/workflows/simulation-1.2.yml | 26 +++++++++++++------------- .github/workflows/toranj.yml | 4 ++-- 6 files changed, 50 insertions(+), 50 deletions(-) diff --git a/.github/workflows/otbr.yml b/.github/workflows/otbr.yml index 2c618385f..75a996e42 100644 --- a/.github/workflows/otbr.yml +++ b/.github/workflows/otbr.yml @@ -77,11 +77,11 @@ jobs: export CI_ENV="$(bash <(curl -s https://codecov.io/env)) -e GITHUB_ACTIONS -e COVERAGE" echo "CI_ENV=${CI_ENV}" sudo -E ./script/test cert_suite ./tests/scripts/thread-cert/backbone/*.py || (sudo chmod a+r *.log *.json *.pcap && false) - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: cov-thread-1-3-backbone-docker path: /tmp/coverage/ - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() }} with: name: thread-1-3-backbone-results @@ -94,7 +94,7 @@ jobs: - name: Generate Coverage run: | ./script/test generate_coverage gcc - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: cov-thread-1-3-backbone path: tmp/coverage.info @@ -186,11 +186,11 @@ jobs: export CI_ENV="$(bash <(curl -s https://codecov.io/env)) -e GITHUB_ACTIONS -e COVERAGE" echo "CI_ENV=${CI_ENV}" sudo -E ./script/test cert_suite ${{ matrix.cert_scripts }} || (sudo chmod a+r *.log *.json *.pcap && false) - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: cov-thread-border-router-docker path: /tmp/coverage/ - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() }} with: name: thread-border-router-results @@ -203,7 +203,7 @@ jobs: - name: Generate Coverage run: | ./script/test generate_coverage gcc - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: cov-thread-border-router path: tmp/coverage.info diff --git a/.github/workflows/otns.yml b/.github/workflows/otns.yml index 55db447a5..337793482 100644 --- a/.github/workflows/otns.yml +++ b/.github/workflows/otns.yml @@ -69,7 +69,7 @@ jobs: cd /tmp/otns ./script/test py-unittests ) - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() }} with: name: unittests-pcaps @@ -79,7 +79,7 @@ jobs: - name: Generate Coverage run: | ./script/test generate_coverage gcc - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: cov-otns-unittests path: tmp/coverage.info @@ -109,7 +109,7 @@ jobs: cd /tmp/otns ./script/test py-examples ) - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() }} with: name: examples-pcaps @@ -119,7 +119,7 @@ jobs: - name: Generate Coverage run: | ./script/test generate_coverage gcc - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: cov-otns-examples path: tmp/coverage.info @@ -167,7 +167,7 @@ jobs: cd /tmp/otns ./script/test stress-tests ${{ matrix.suite }} ) - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() }} with: name: stress-tests-${{ matrix.suite }}-pcaps @@ -177,7 +177,7 @@ jobs: - name: Generate Coverage run: | ./script/test generate_coverage gcc - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: cov-otns-stress-tests-${{ matrix.suite }} path: tmp/coverage.info diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml index 0cf0f452b..26f35931b 100644 --- a/.github/workflows/posix.yml +++ b/.github/workflows/posix.yml @@ -57,7 +57,7 @@ jobs: CRASHED=$(./script/test check_crash | tail -1) [[ $CRASHED -eq "1" ]] && echo "Crashed!" || echo "Not crashed." echo "CRASHED_RCP=$CRASHED" >> $GITHUB_ENV - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() && env.CRASHED_RCP == '1' }} with: name: core-expect-rcp @@ -66,7 +66,7 @@ jobs: - name: Generate Coverage run: | ./script/test generate_coverage gcc - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: cov-expects-linux-1 path: tmp/coverage.info @@ -88,13 +88,13 @@ jobs: CRASHED=$(./script/test check_crash | tail -1) [[ $CRASHED -eq "1" ]] && echo "Crashed!" || echo "Not crashed." echo "CRASHED_TUN=$CRASHED" >> $GITHUB_ENV - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() && env.CRASHED_TUN == '1' }} with: name: core-expect-linux path: | ./ot-core-dump/* - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() }} with: name: syslog-expect-linux @@ -102,7 +102,7 @@ jobs: - name: Generate Coverage run: | ./script/test generate_coverage gcc - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: cov-expects-linux-2 path: tmp/coverage.info @@ -145,7 +145,7 @@ jobs: - name: Run run: | VERBOSE=1 OT_CLI_PATH="$PWD/output/posix/bin/ot-cli -v" RADIO_DEVICE="$PWD/output/simulation/bin/ot-rcp" make -f src/posix/Makefile-posix check - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() }} with: name: thread-cert @@ -153,7 +153,7 @@ jobs: - name: Generate Coverage run: | ./script/test generate_coverage gcc - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: cov-thread-cert path: tmp/coverage.info @@ -180,7 +180,7 @@ jobs: - name: Generate Coverage run: | ./script/test generate_coverage gcc - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: cov-ncp-rcp-migrate path: tmp/coverage.info @@ -225,7 +225,7 @@ jobs: - name: Generate Coverage run: | ./script/test generate_coverage gcc - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: cov-pty-linux-${{ matrix.DAEMON }} path: tmp/coverage.info @@ -273,7 +273,7 @@ jobs: - name: Generate Coverage run: | ./script/test generate_coverage gcc - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: cov-rcp-stack-reset path: tmp/coverage.info diff --git a/.github/workflows/simulation-1.1.yml b/.github/workflows/simulation-1.1.yml index 40f9254d9..fbfd264bc 100644 --- a/.github/workflows/simulation-1.1.yml +++ b/.github/workflows/simulation-1.1.yml @@ -88,7 +88,7 @@ jobs: - name: Run run: | ./script/test cert_suite ./tests/scripts/thread-cert/Cert_*.py ./tests/scripts/thread-cert/test_*.py - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() }} with: name: packet-verification-pcaps @@ -98,7 +98,7 @@ jobs: - name: Generate Coverage run: | ./script/test generate_coverage gcc - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: cov-packet-verification path: tmp/coverage.info @@ -129,7 +129,7 @@ jobs: - name: Run run: | VERBOSE=1 make -f examples/Makefile-simulation check - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() }} with: name: cli-ftd-thread-cert @@ -137,7 +137,7 @@ jobs: - name: Generate Coverage run: | ./script/test generate_coverage gcc - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: cov-cli-ftd path: tmp/coverage.info @@ -175,7 +175,7 @@ jobs: - name: Run run: | VERBOSE=1 make -f examples/Makefile-simulation check - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() }} with: name: cli-mtd-thread-cert @@ -183,7 +183,7 @@ jobs: - name: Generate Coverage run: | ./script/test generate_coverage gcc - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: cov-cli-mtd-${{ matrix.message_use_heap }} path: tmp/coverage.info @@ -215,7 +215,7 @@ jobs: - name: Run run: | VERBOSE=1 make -f examples/Makefile-simulation check - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() }} with: name: cli-time-sync-thread-cert @@ -223,7 +223,7 @@ jobs: - name: Generate Coverage run: | ./script/test generate_coverage gcc - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: cov-cli-time-sync path: tmp/coverage.info @@ -250,7 +250,7 @@ jobs: CRASHED=$(./script/test check_crash | tail -1) [[ $CRASHED -eq "1" ]] && echo "Crashed!" || echo "Not crashed." echo "CRASHED_CLI=$CRASHED" >> $GITHUB_ENV - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() && env.CRASHED_CLI == '1' }} with: name: core-expect-cli @@ -259,7 +259,7 @@ jobs: - name: Generate Coverage run: | ./script/test generate_coverage gcc - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: cov-expects path: tmp/coverage.info @@ -302,7 +302,7 @@ jobs: - name: Generate Coverage run: | ./script/test generate_coverage gcc - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: cov-ot-commissioner path: tmp/coverage.info @@ -331,7 +331,7 @@ jobs: - name: Run run: | VERBOSE=1 make -f examples/Makefile-simulation check - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() }} with: name: multiple-instance-thread-cert @@ -339,7 +339,7 @@ jobs: - name: Generate Coverage run: | ./script/test generate_coverage gcc - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: cov-multiple-instance path: tmp/coverage.info diff --git a/.github/workflows/simulation-1.2.yml b/.github/workflows/simulation-1.2.yml index c44331298..33cad09b6 100644 --- a/.github/workflows/simulation-1.2.yml +++ b/.github/workflows/simulation-1.2.yml @@ -80,12 +80,12 @@ jobs: CRASHED=$(./script/test check_crash | tail -1) [[ $CRASHED -eq "1" ]] && echo "Crashed!" || echo "Not crashed." echo "CRASHED=$CRASHED" >> $GITHUB_ENV - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() }} with: name: thread-1-3-${{ matrix.compiler.c }}-${{ matrix.arch }}-pcaps path: "*.pcap" - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() && env.CRASHED == '1' }} with: name: core-packet-verification-thread-1-3 @@ -94,7 +94,7 @@ jobs: - name: Generate Coverage run: | ./script/test generate_coverage "${{ matrix.compiler.gcov }}" - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: cov-thread-1-3-${{ matrix.compiler.c }}-${{ matrix.arch }} path: tmp/coverage.info @@ -139,14 +139,14 @@ jobs: CRASHED=$(./script/test check_crash | tail -1) [[ $CRASHED -eq "1" ]] && echo "Crashed!" || echo "Not crashed." echo "CRASHED=$CRASHED" >> $GITHUB_ENV - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() }} with: name: packet-verification-low-power-pcaps path: | *.pcap *.json - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() && env.CRASHED == '1' }} with: name: core-packet-verification-low-power @@ -155,7 +155,7 @@ jobs: - name: Generate Coverage run: | ./script/test generate_coverage gcc - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: cov-packet-verification-low-power path: tmp/coverage.info @@ -186,7 +186,7 @@ jobs: - name: Run run: | ./script/test cert_suite ./tests/scripts/thread-cert/Cert_*.py ./tests/scripts/thread-cert/test_*.py - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() }} with: name: packet-verification-1.1-on-1.3-pcaps @@ -196,7 +196,7 @@ jobs: - name: Generate Coverage run: | ./script/test generate_coverage gcc - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: cov-packet-verification-1-1-on-1-3 path: tmp/coverage.info @@ -225,7 +225,7 @@ jobs: CRASHED=$(./script/test check_crash | tail -1) [[ $CRASHED -eq "1" ]] && echo "Crashed!" || echo "Not crashed." echo "CRASHED=$CRASHED" >> $GITHUB_ENV - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() && env.CRASHED == '1' }} with: name: core-expect-1-3 @@ -234,7 +234,7 @@ jobs: - name: Generate Coverage run: | ./script/test generate_coverage gcc - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: cov-expects path: tmp/coverage.info @@ -278,12 +278,12 @@ jobs: CRASHED=$(./script/test check_crash | tail -1) [[ $CRASHED -eq "1" ]] && echo "Crashed!" || echo "Not crashed." echo "CRASHED=$CRASHED" >> $GITHUB_ENV - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() }} with: name: thread-1-3-posix-pcaps path: "*.pcap" - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() && env.CRASHED == '1' }} with: name: core-thread-1-3-posix @@ -292,7 +292,7 @@ jobs: - name: Generate Coverage run: | ./script/test generate_coverage gcc - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: cov-thread-1-3-posix path: tmp/coverage.info diff --git a/.github/workflows/toranj.yml b/.github/workflows/toranj.yml index 1f8a8041f..899b4abdd 100644 --- a/.github/workflows/toranj.yml +++ b/.github/workflows/toranj.yml @@ -79,7 +79,7 @@ jobs: if: "matrix.TORANJ_RADIO != 'multi'" run: | ./script/test generate_coverage gcc - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: "matrix.TORANJ_RADIO != 'multi'" with: name: cov-toranj-ncp-${{ matrix.TORANJ_RADIO }} @@ -113,7 +113,7 @@ jobs: if: "matrix.TORANJ_RADIO != 'multi'" run: | ./script/test generate_coverage gcc - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: "matrix.TORANJ_RADIO != 'multi'" with: name: cov-toranj-cli-${{ matrix.TORANJ_RADIO }}