mirror of
https://github.com/vsariola/sointu.git
synced 2025-06-04 01:28:45 -04:00
build: upgrade deprecated actions and fix warnings
This commit is contained in:
parent
6b3aaf6cc9
commit
267973e061
21
.github/workflows/binaries.yml
vendored
21
.github/workflows/binaries.yml
vendored
@ -20,7 +20,7 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
- name: Create release
|
- name: Create release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
@ -97,16 +97,16 @@ jobs:
|
|||||||
output: sointu-track-native
|
output: sointu-track-native
|
||||||
params: -tags=native cmd/sointu-track/main.go
|
params: -tags=native cmd/sointu-track/main.go
|
||||||
steps:
|
steps:
|
||||||
- uses: benjlevesque/short-sha@v2.2
|
- uses: benjlevesque/short-sha@v3.0
|
||||||
id: short-sha
|
id: short-sha
|
||||||
with:
|
with:
|
||||||
length: 7
|
length: 7
|
||||||
- uses: lukka/get-cmake@v3.18.3
|
- uses: lukka/get-cmake@latest
|
||||||
- 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:
|
with:
|
||||||
go-version: '>=1.21.0'
|
go-version: '>=1.21.0'
|
||||||
- uses: actions/checkout@v2
|
- uses: ilammy/setup-nasm@v1.5.1
|
||||||
- uses: ilammy/setup-nasm@v1.4.0
|
|
||||||
- uses: awalsh128/cache-apt-pkgs-action@latest
|
- uses: awalsh128/cache-apt-pkgs-action@latest
|
||||||
with:
|
with:
|
||||||
packages: ${{ matrix.config.packages }}
|
packages: ${{ matrix.config.packages }}
|
||||||
@ -124,9 +124,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
go build -o ${{ matrix.config.output }} ${{ matrix.config.params }}
|
go build -o ${{ matrix.config.output }} ${{ matrix.config.params }}
|
||||||
- name: Upload binary
|
- name: Upload binary
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
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 }}
|
path: ${{ matrix.config.output }}
|
||||||
upload_release_asset:
|
upload_release_asset:
|
||||||
needs: [create_release, binaries]
|
needs: [create_release, binaries]
|
||||||
@ -144,9 +144,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
length: 7
|
length: 7
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
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 }}
|
path: sointu-${{ matrix.config.os }}
|
||||||
- name: Zip binaries
|
- name: Zip binaries
|
||||||
run: |
|
run: |
|
||||||
|
12
.github/workflows/tests.yml
vendored
12
.github/workflows/tests.yml
vendored
@ -34,18 +34,18 @@ jobs:
|
|||||||
# than let the tests fail because of this.
|
# than let the tests fail because of this.
|
||||||
# TODO: win32 builds didn't quite work out, complains gcc broken
|
# TODO: win32 builds didn't quite work out, complains gcc broken
|
||||||
steps:
|
steps:
|
||||||
- uses: lukka/get-cmake@v3.18.3
|
- uses: lukka/get-cmake@latest
|
||||||
- uses: vsariola/setup-wabt@v1.0.1
|
- uses: vsariola/setup-wabt@v1.0.2
|
||||||
with:
|
with:
|
||||||
version: 1.0.29
|
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:
|
with:
|
||||||
go-version: '>=1.21.0'
|
go-version: '>=1.21.0'
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '15'
|
node-version: '15'
|
||||||
- uses: actions/checkout@v2
|
- uses: ilammy/setup-nasm@v1.5.1
|
||||||
- uses: ilammy/setup-nasm@v1.4.0
|
|
||||||
- name: Run ctest
|
- name: Run ctest
|
||||||
env:
|
env:
|
||||||
ASM_NASM: ${{ matrix.config.asmnasm }}
|
ASM_NASM: ${{ matrix.config.asmnasm }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user