Bump upload/download-artifacts from v3 to v4

This is the combination of https://github.com/apache/thrift/pull/2910 &
https://github.com/apache/thrift/pull/2912. It looks like these 2
changes need to be done together, doing them individually will break CI.
This commit is contained in:
Yuxuan 'fishy' Wang 2024-01-03 09:18:23 -08:00 committed by Yuxuan 'fishy' Wang
parent 8004c375df
commit 8540066800

View File

@ -70,7 +70,7 @@ jobs:
# only upload while building ubuntu-20.04
- name: Archive built thrift compiler
if: matrix.os == 'ubuntu-20.04'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: thrift-compiler
path: compiler/cpp/thrift
@ -104,7 +104,7 @@ jobs:
run: |
./configure $(echo $CONFIG_ARGS_FOR_LIBS | sed 's/without-go/with-go/')
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: thrift-compiler
path: compiler/cpp
@ -128,7 +128,7 @@ jobs:
- name: Upload go precross artifacts
if: matrix.go == '1.21'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: go-precross
if-no-files-found: error
@ -182,7 +182,7 @@ jobs:
run: |
./configure $(echo $CONFIG_ARGS_FOR_LIBS | sed 's/without-java/with-java/' | sed 's/without-kotlin/with-kotlin/')
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: thrift-compiler
path: compiler/cpp
@ -200,7 +200,7 @@ jobs:
run: make -C lib/java install
- name: Upload java libthrift artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: libthrift
if-no-files-found: error
@ -213,7 +213,7 @@ jobs:
run: make -C lib/java precross
- name: Upload java precross artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: java-precross
if-no-files-found: error
@ -235,7 +235,7 @@ jobs:
run: make -C lib/kotlin precross
- name: Upload kotlin precross artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: kotlin-precross
if-no-files-found: error
@ -257,7 +257,7 @@ jobs:
run: |
./configure $(echo $CONFIG_ARGS_FOR_LIBS | sed 's/without-swift/with-swift/')
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: thrift-compiler
path: compiler/cpp
@ -271,7 +271,7 @@ jobs:
run: make -C test/swift precross
- name: Upload swift precross artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: swift-precross
if-no-files-found: error
@ -310,7 +310,7 @@ jobs:
run: |
./configure $(echo $CONFIG_ARGS_FOR_LIBS | sed 's/without-rs/with-rs/')
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: thrift-compiler
path: compiler/cpp
@ -333,7 +333,7 @@ jobs:
run: make -C test/rs precross
- name: Upload rust precross artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: rs-precross
if-no-files-found: error
@ -381,7 +381,7 @@ jobs:
run: |
./configure $(echo $CONFIG_ARGS_FOR_LIBS | sed 's/without-py3/with-py3/')
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: thrift-compiler
path: compiler/cpp
@ -437,31 +437,31 @@ jobs:
sudo apt-get install -y --no-install-recommends openssl ca-certificates
- name: Download java precross artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: java-precross
path: lib/java/build
- name: Download kotlin precross artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: kotlin-precross
path: lib/kotlin
- name: Download swift precross artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: swift-precross
path: test/swift/CrossTests/.build/x86_64-unknown-linux-gnu/debug
- name: Download rust precross artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: rs-precross
path: test/rs/bin
- name: Download go precross artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: go-precross
path: test/go/bin
@ -487,7 +487,7 @@ jobs:
--client ${{ matrix.client_lang }}
- name: Upload log files from failed cross test runs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: cross-test-log