Skip to content

Commit

Permalink
fix(workflow): upgrade upload-artifact to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
Shouren committed Sep 26, 2024
1 parent b363e22 commit bb92fa4
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 33 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/hybridse-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration-test-pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration-test-src.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions .github/workflows/openmldb-tool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/other-os-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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: |
Expand All @@ -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: |
Expand Down Expand Up @@ -283,15 +283,15 @@ 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: |
python/openmldb_sdk/tests/pytest.xml
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: |
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/selfhost_intergration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit bb92fa4

Please sign in to comment.