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 Oct 30, 2024
1 parent 1bb7d29 commit 278d10b
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 32 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
- name: upload unit test results
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: linux-ut-result-cpp-${{ github.sha }}
# exclude _deps xml
Expand All @@ -127,7 +127,7 @@ jobs:
- name: upload artifacts
if: ${{ github.event_name == 'push' }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: openmldb-*.tar.gz
name: release-artifacts
Expand Down Expand Up @@ -207,14 +207,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 @@ -44,7 +44,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 @@ -83,14 +83,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 @@ -201,7 +201,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@v3
uses: actions/upload-artifact@v4
with:
name: python-sdk-standalone-0-pkg-${{ github.sha }}
path: |
Expand Down Expand Up @@ -238,7 +238,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@v3
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 @@ -429,7 +429,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 @@ -470,7 +470,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 @@ -52,7 +52,7 @@ jobs:
- name: upload ut results
if: always()
uses: actions/upload-artifact@v3
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 @@ -50,7 +50,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 @@ -84,7 +84,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
14 changes: 7 additions & 7 deletions .github/workflows/sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,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 @@ -104,14 +104,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 @@ -136,7 +136,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 @@ -287,15 +287,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 @@ -352,7 +352,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
2 changes: 1 addition & 1 deletion .github/workflows/selfhost_intergration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,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 278d10b

Please sign in to comment.