mirror of https://github.com/grpc/grpc-node.git
bump actions/download-artifact and actions/upload-artifact from 2 to 4 in grpc-tools build workflow
This commit is contained in:
parent
5cd30ae4b8
commit
2a48d2689c
|
@ -8,9 +8,9 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read # to fetch code (actions/checkout)
|
contents: read # to fetch code (actions/checkout)
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linux_build:
|
linux_build:
|
||||||
name: Linux grpc-tools Build
|
name: Linux grpc-tools Build
|
||||||
|
@ -23,7 +23,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
docker build -t kokoro-native-image tools/release/native
|
docker build -t kokoro-native-image tools/release/native
|
||||||
docker run -v /var/run/docker.sock:/var/run/docker.sock -v $GITHUB_WORKSPACE:$GITHUB_WORKSPACE kokoro-native-image $GITHUB_WORKSPACE/packages/grpc-tools/build_binaries.sh
|
docker run -v /var/run/docker.sock:/var/run/docker.sock -v $GITHUB_WORKSPACE:$GITHUB_WORKSPACE kokoro-native-image $GITHUB_WORKSPACE/packages/grpc-tools/build_binaries.sh
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: grpc-tools_linux
|
name: grpc-tools_linux
|
||||||
path: artifacts/
|
path: artifacts/
|
||||||
|
@ -36,7 +36,7 @@ jobs:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Build
|
- name: Build
|
||||||
run: packages/grpc-tools/build_binaries.sh
|
run: packages/grpc-tools/build_binaries.sh
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: grpc-tools_macos
|
name: grpc-tools_macos
|
||||||
path: artifacts/
|
path: artifacts/
|
||||||
|
@ -55,7 +55,7 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: powershell -File ./packages/grpc-tools/build_binaries.ps1
|
run: powershell -File ./packages/grpc-tools/build_binaries.ps1
|
||||||
shell: cmd
|
shell: cmd
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: grpc-tools_windows_${{matrix.arch}}
|
name: grpc-tools_windows_${{matrix.arch}}
|
||||||
path: artifacts/
|
path: artifacts/
|
||||||
|
@ -64,12 +64,12 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [linux_build, macos_build, windows_build]
|
needs: [linux_build, macos_build, windows_build]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v4
|
||||||
- name: Copy
|
- name: Copy
|
||||||
run: |
|
run: |
|
||||||
mkdir artifacts
|
mkdir artifacts
|
||||||
cp -r ./**/* artifacts/
|
cp -r ./**/* artifacts/
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: combined-artifacts
|
name: combined-artifacts
|
||||||
path: artifacts/
|
path: artifacts/
|
||||||
|
|
Loading…
Reference in New Issue