From bb92fa4cca1cfed4920d6fee72f120dac932eb63 Mon Sep 17 00:00:00 2001 From: shouren Date: Thu, 26 Sep 2024 17:52:17 +0800 Subject: [PATCH] fix(workflow): upgrade upload-artifact to v4 --- .github/workflows/cicd.yaml | 8 ++++---- .github/workflows/coverage.yml | 2 +- .github/workflows/hybridse-ci.yml | 6 +++--- .github/workflows/integration-test-pkg.yml | 4 ++-- .github/workflows/integration-test-src.yml | 4 ++-- .github/workflows/integration-test.yml | 2 +- .github/workflows/openmldb-tool.yml | 4 ++-- .github/workflows/other-os-build.yml | 18 +++++++++--------- .github/workflows/sdk.yml | 16 ++++++++-------- .github/workflows/selfhost_intergration.yml | 2 +- 10 files changed, 33 insertions(+), 33 deletions(-) diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index ca4f0bc7f50..d381cd2c3a7 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -104,7 +104,7 @@ jobs: - name: upload unit test results if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: linux-ut-result-cpp-${{ github.sha }} # exclude _deps xml @@ -125,7 +125,7 @@ jobs: - name: upload artifacts if: ${{ github.event_name == 'push' }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: path: openmldb-*.tar.gz name: release-artifacts @@ -205,14 +205,14 @@ jobs: - name: upload artifacts if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: path: openmldb-*.tar.gz name: release-artifacts - name: Upload Event File if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: event-file path: ${{ github.event_path }} diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 613a4e270e4..f4323458eb3 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -78,7 +78,7 @@ jobs: df -h - name: upload coverage - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: # include the generated html report in build/coverage, great for local diagnose name: coverage-cpp-${{ github.sha }} diff --git a/.github/workflows/hybridse-ci.yml b/.github/workflows/hybridse-ci.yml index 7da8e5ac100..b4d7789af57 100644 --- a/.github/workflows/hybridse-ci.yml +++ b/.github/workflows/hybridse-ci.yml @@ -42,7 +42,7 @@ jobs: - name: Upload Cpp UT Results if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: linux-ut-result-cpp-${{ github.sha }} path: | @@ -81,14 +81,14 @@ jobs: - name: Upload Event File if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: event-file path: ${{ github.event_path }} - name: Upload Cpp UT Results if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: macos-ut-result-cpp-${{ github.sha }} path: | diff --git a/.github/workflows/integration-test-pkg.yml b/.github/workflows/integration-test-pkg.yml index 2116263d92e..febca433dba 100644 --- a/.github/workflows/integration-test-pkg.yml +++ b/.github/workflows/integration-test-pkg.yml @@ -199,7 +199,7 @@ jobs: run: source /root/.bashrc && bash test/steps/openmldb-sdk-test-python.sh -b PKG -d standalone -l "0" - name: upload test results if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: python-sdk-standalone-0-pkg-${{ github.sha }} path: | @@ -236,7 +236,7 @@ jobs: run: source /root/.bashrc && bash test/steps/openmldb-sdk-test-python.sh -b PKG -d standalone -l "1,2,3,4,5" - name: upload test results if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: python-sdk-standalone-1-pkg-${{ github.sha }} path: | diff --git a/.github/workflows/integration-test-src.yml b/.github/workflows/integration-test-src.yml index d6fd1cfa526..8f32fc0eac1 100644 --- a/.github/workflows/integration-test-src.yml +++ b/.github/workflows/integration-test-src.yml @@ -427,7 +427,7 @@ jobs: # run: source /root/.bashrc && bash test/steps/openmldb-sdk-test-python.sh -b SRC -d standalone -l "0" # - name: upload test results # if: always() -# uses: actions/upload-artifact@v2 +# uses: actions/upload-artifact@v4 # with: # name: python-sdk-standalone-0-src-${{ github.sha }} # path: | @@ -468,7 +468,7 @@ jobs: # run: source /root/.bashrc && bash test/steps/openmldb-sdk-test-python.sh -b SRC -d standalone -l "1,2,3,4,5" # - name: upload test results # if: always() -# uses: actions/upload-artifact@v2 +# uses: actions/upload-artifact@v4 # with: # name: python-sdk-standalone-1-src-${{ github.sha }} # path: | diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index d68bae2465d..372b2fad996 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -50,7 +50,7 @@ jobs: - name: upload ut results if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: openmldb-test-python-${{ github.sha }} path: pytest.xml diff --git a/.github/workflows/openmldb-tool.yml b/.github/workflows/openmldb-tool.yml index 23d3f5b1dfd..c629eae42e6 100644 --- a/.github/workflows/openmldb-tool.yml +++ b/.github/workflows/openmldb-tool.yml @@ -48,7 +48,7 @@ jobs: bash openmldb/sbin/stop-all.sh && bash openmldb/sbin/clear-all.sh - name: upload python test results if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: openmldb-tool-test-result-${{ github.sha }} path: | @@ -82,7 +82,7 @@ jobs: bash openmldb/sbin/stop-all.sh && bash openmldb/sbin/clear-all.sh - name: upload python test results if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: openmldb-tool-test-result-${{ github.sha }} path: | diff --git a/.github/workflows/other-os-build.yml b/.github/workflows/other-os-build.yml index be7e090821d..e725b563838 100644 --- a/.github/workflows/other-os-build.yml +++ b/.github/workflows/other-os-build.yml @@ -138,21 +138,21 @@ jobs: df -h - name: upload binary - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: path: build/bin/openmldb name: binary - name: upload java native if: ${{ env.SQL_JAVASDK_ENABLE == 'ON' }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: native-jar path: java/openmldb-native/target/openmldb-native-*.jar - name: upload python whl if: ${{ env.SQL_PYSDK_ENABLE == 'ON' }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: python-whl path: | @@ -206,21 +206,21 @@ jobs: tar czf ${{ env.OPENMLDB_PREFIX }}.tar.gz ${{ env.OPENMLDB_PREFIX }}/ - name: upload binary - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: path: openmldb-*.tar.gz name: binary-package - name: upload java native if: ${{ env.SQL_JAVASDK_ENABLE == 'ON' }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: native-jar path: java/openmldb-native/target/openmldb-native-*.jar - name: upload python whl if: ${{ env.SQL_PYSDK_ENABLE == 'ON' }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: python-whl path: | @@ -276,21 +276,21 @@ jobs: tar czf ${{ env.OPENMLDB_PREFIX }}.tar.gz ${{ env.OPENMLDB_PREFIX }}/ - name: upload binary - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: path: openmldb-*.tar.gz name: binary-package - name: upload java native if: ${{ env.SQL_JAVASDK_ENABLE == 'ON' }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: native-jar path: java/openmldb-native/target/openmldb-native-*.jar - name: upload python whl if: ${{ env.SQL_PYSDK_ENABLE == 'ON' }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: python-whl path: | diff --git a/.github/workflows/sdk.yml b/.github/workflows/sdk.yml index eafe87cbe1f..92612c8a4dd 100644 --- a/.github/workflows/sdk.yml +++ b/.github/workflows/sdk.yml @@ -82,7 +82,7 @@ jobs: - name: upload linux library if: github.event_name == 'push' - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: shared-library-${{ github.sha }} path: | @@ -102,14 +102,14 @@ jobs: - name: Upload Event File if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: event-file path: ${{ github.event_path }} - name: upload java ut results if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: linux-ut-result-java-${{ github.sha }} path: | @@ -134,7 +134,7 @@ jobs: ./mvnw --batch-mode scoverage:report - name: upload coverage - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: coverage-java-report-${{ github.sha }} path: | @@ -283,7 +283,7 @@ jobs: - name: upload python ut results if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: linux-ut-result-python-${{ github.sha }} path: | @@ -291,7 +291,7 @@ jobs: python/openmldb_tool/tests/pytest.xml - name: upload coverage - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: coverage-python-report-${{ github.sha }} path: | @@ -350,7 +350,7 @@ jobs: - name: upload python ut results if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: mac-ut-result-python-${{ github.sha }} path: | @@ -403,7 +403,7 @@ jobs: run: go test ./... -race -covermode=atomic -coverprofile=coverage.out - name: upload coverage - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: coverage-go-report-${{ github.sha }} path: go/coverage.out diff --git a/.github/workflows/selfhost_intergration.yml b/.github/workflows/selfhost_intergration.yml index 87de8536daf..b38fbce5ad4 100644 --- a/.github/workflows/selfhost_intergration.yml +++ b/.github/workflows/selfhost_intergration.yml @@ -49,7 +49,7 @@ jobs: tar -zxf openmldb-${{ env.E_VERSION }}-linux.tar.gz mv openmldb-${{ env.E_VERSION }}-linux.tar.gz openmldb-linux.tar.gz - name: upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: openmldb-package path: |