From 8596ecbd646ea89e5bd5aae4d8a6349d6971995f Mon Sep 17 00:00:00 2001 From: yarkin Date: Tue, 9 Jul 2024 12:38:14 +0800 Subject: [PATCH 1/2] fix ci by using new upload script. --- .github/workflows/contract.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/contract.yml b/.github/workflows/contract.yml index 3f104dbf..5a222a15 100644 --- a/.github/workflows/contract.yml +++ b/.github/workflows/contract.yml @@ -56,7 +56,7 @@ jobs: DWITH_TEST_ACTIONS: ${{ matrix.DWITH_TEST_ACTIONS }} - name: Upload Artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: contract.test-actions-${{ matrix.DWITH_TEST_ACTIONS }}.tar.gz path: contract.tar.gz @@ -80,7 +80,8 @@ jobs: run: .github/workflows/build-contract-test.sh - name: Upload Artifacts - uses: actions/upload-artifact@v3 + if: ${{ matrix.DWITH_TEST_ACTIONS == 'on' }} + uses: actions/upload-artifact@v4 with: name: contract-test.tar.gz path: contract-test.tar.gz @@ -92,7 +93,7 @@ jobs: DWITH_TEST_ACTIONS: ${{ matrix.DWITH_TEST_ACTIONS }} - name: Upload Test Metrics - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: test-results.xml path: test-results.xml From fb5573ae3254245baa36e76782b799e4f647cd85 Mon Sep 17 00:00:00 2001 From: yarkin Date: Tue, 9 Jul 2024 15:22:09 +0800 Subject: [PATCH 2/2] Fix CI --- .github/workflows/contract.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/contract.yml b/.github/workflows/contract.yml index 5a222a15..41490cb7 100644 --- a/.github/workflows/contract.yml +++ b/.github/workflows/contract.yml @@ -95,6 +95,6 @@ jobs: - name: Upload Test Metrics uses: actions/upload-artifact@v4 with: - name: test-results.xml + name: test-results-test-actions-${{ matrix.DWITH_TEST_ACTIONS }}.xml path: test-results.xml if-no-files-found: error