Skip to content

Commit

Permalink
Update actions/download-artifact action to v4 (#1398)
Browse files Browse the repository at this point in the history
* Update actions/download-artifact action to v4

* Update build.yml

* Update build.yml

* Update build.yml

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Christian Banse <[email protected]>
  • Loading branch information
renovate[bot] and oxisto authored Dec 15, 2023
1 parent 619b9a9 commit 48cedd6
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,21 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version-file: cpg-language-go/src/main/golang/go.mod
cache-dependency-path: cpg-language-go/src/main/golang/go.sum
- name: Build
run: |
cd cpg-language-go/src/main/golang
./build.sh
- name: Archive cpgo library (amd64)
if: ${{ always() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: libcpgo-amd64.dylib
path: cpg-language-go/src/main/resources/libcpgo-amd64.dylib
- name: Archive cpgo library (arm64)
if: ${{ always() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: libcpgo-arm64.dylib
path: cpg-language-go/src/main/resources/libcpgo-arm64.dylib
Expand Down Expand Up @@ -93,11 +94,11 @@ jobs:
if [ -d "/opt/hostedtoolcache/Python" ]; then
find /opt/hostedtoolcache/Python/ -name libjep.so -exec sudo cp '{}' /usr/lib/ \;
fi
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: libcpgo-arm64.dylib
path: cpg-language-go/src/main/resources/
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: libcpgo-amd64.dylib
path: cpg-language-go/src/main/resources/
Expand All @@ -124,7 +125,7 @@ jobs:
zip -r reports.zip **/build/reports/**/** || true
- name: Archive test and coverage reports
if: ${{ always() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: reports
path: reports.zip
Expand Down

0 comments on commit 48cedd6

Please sign in to comment.