Skip to content

Commit

Permalink
build: upgrade deprecated actions and fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vsariola committed Feb 24, 2024
1 parent 6b3aaf6 commit 267973e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Create release
id: create_release
uses: actions/create-release@v1
Expand Down Expand Up @@ -97,16 +97,16 @@ jobs:
output: sointu-track-native
params: -tags=native cmd/sointu-track/main.go
steps:
- uses: benjlevesque/short-sha@v2.2
- uses: benjlevesque/short-sha@v3.0
id: short-sha
with:
length: 7
- uses: lukka/[email protected]
- uses: actions/setup-go@v5
- uses: lukka/get-cmake@latest
- uses: actions/checkout@v4
- uses: actions/setup-go@v5 # has to be after checkout, see https://medium.com/@s0k0mata/github-actions-and-go-the-new-cache-feature-in-actions-setup-go-v4-and-what-to-watch-out-for-aeea373ed07d
with:
go-version: '>=1.21.0'
- uses: actions/checkout@v2
- uses: ilammy/[email protected]
- uses: ilammy/[email protected]
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: ${{ matrix.config.packages }}
Expand All @@ -124,9 +124,9 @@ jobs:
run: |
go build -o ${{ matrix.config.output }} ${{ matrix.config.params }}
- name: Upload binary
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: sointu-${{ runner.os }}-${{ steps.short-sha.outputs.sha }}
name: ${{ runner.os }}-${{ steps.short-sha.outputs.sha }}-${{ matrix.config.output }}
path: ${{ matrix.config.output }}
upload_release_asset:
needs: [create_release, binaries]
Expand All @@ -144,9 +144,10 @@ jobs:
with:
length: 7
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: sointu-${{ matrix.config.os }}-${{ steps.short-sha.outputs.sha }}
pattern: ${{ matrix.config.os }}-${{ steps.short-sha.outputs.sha }}-*
merge-multiple: true
path: sointu-${{ matrix.config.os }}
- name: Zip binaries
run: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@ jobs:
# than let the tests fail because of this.
# TODO: win32 builds didn't quite work out, complains gcc broken
steps:
- uses: lukka/get-cmake@v3.18.3
- uses: vsariola/[email protected].1
- uses: lukka/get-cmake@latest
- uses: vsariola/[email protected].2
with:
version: 1.0.29
- uses: actions/setup-go@v5
- uses: actions/checkout@v4
- uses: actions/setup-go@v5 # has to be after checkout, see https://medium.com/@s0k0mata/github-actions-and-go-the-new-cache-feature-in-actions-setup-go-v4-and-what-to-watch-out-for-aeea373ed07d
with:
go-version: '>=1.21.0'
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: '15'
- uses: actions/checkout@v2
- uses: ilammy/[email protected]
- uses: ilammy/[email protected]
- name: Run ctest
env:
ASM_NASM: ${{ matrix.config.asmnasm }}
Expand Down

0 comments on commit 267973e

Please sign in to comment.