Skip to content

Commit

Permalink
update github actions (#240)
Browse files Browse the repository at this point in the history
* update github actions
checkout -> v4
upload-artifact -> v4
cancel-workflow-action -> 0.12.1
  • Loading branch information
DanEngelbrecht authored Mar 3, 2024
1 parent 37cca28 commit 201ca8d
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 53 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
target: [static_lib, shared_lib, cmd]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: build ${{matrix.target}}
run: |
${{matrix.target}}/build.sh ${{matrix.config}}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
name: upload ${{matrix.target}}
with:
name: linux_x64-${{matrix.target}}-${{matrix.config}}
Expand All @@ -35,14 +35,14 @@ jobs:
needs: build-linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: build/artifacts
- name: build dist
run: |
./dist.sh
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: dist-linux-x64
path: dist
Expand All @@ -56,12 +56,12 @@ jobs:
target: [static_lib, shared_lib, cmd]
arch: [arm64, x64]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: build ${{matrix.target}}
run: |
${{matrix.target}}/build.sh ${{matrix.config}} ${{matrix.arch}}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
name: upload ${{matrix.target}}
with:
name: darwin_${{matrix.arch}}-${{matrix.target}}-${{matrix.config}}
Expand All @@ -78,14 +78,14 @@ jobs:
matrix:
arch: [arm64, x64]
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: build/artifacts
- name: build dist
run: |
./dist.sh ${{matrix.arch}}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: dist-darwin-${{matrix.arch}}
path: dist
Expand All @@ -99,12 +99,12 @@ jobs:
target: [static_lib, shared_lib, cmd]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: build ${{matrix.target}}
run: |
${{matrix.target}}/build.bat ${{matrix.config}}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
name: upload ${{matrix.target}}
with:
name: win32_x64-${{matrix.target}}-${{matrix.config}}
Expand All @@ -119,14 +119,14 @@ jobs:
needs: build-win32
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: build/artifacts
- name: build dist
run: |
./dist.bat
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: dist-win32-x64
path: dist
Expand All @@ -139,7 +139,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download Linux artifacts
uses: actions/download-artifact@v1
Expand Down
36 changes: 18 additions & 18 deletions .github/workflows/master-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
target: [static_lib, shared_lib, cmd]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: build ${{matrix.target}}
run: |
${{matrix.target}}/build.sh ${{matrix.config}}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
name: upload ${{matrix.target}}
with:
name: linux_x64-${{matrix.target}}-${{matrix.config}}
Expand All @@ -35,7 +35,7 @@ jobs:
matrix:
config: [debug, release]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: build test
run: |
test/build.sh ${{matrix.config}}
Expand All @@ -50,14 +50,14 @@ jobs:
needs: build-linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: build/artifacts
- name: build dist
run: |
./dist.sh
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: dist-linux-x64
path: dist
Expand All @@ -71,12 +71,12 @@ jobs:
target: [static_lib, shared_lib, cmd]
arch: [arm64, x64]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: build ${{matrix.target}}
run: |
${{matrix.target}}/build.sh ${{matrix.config}} ${{matrix.arch}}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
name: upload ${{matrix.target}}
with:
name: darwin_${{matrix.arch}}-${{matrix.target}}-${{matrix.config}}
Expand All @@ -93,7 +93,7 @@ jobs:
config: [debug, release]
arch: [arm64, x64]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: build test
run: |
test/build.sh ${{matrix.config}} ${{matrix.arch}}
Expand All @@ -112,14 +112,14 @@ jobs:
matrix:
arch: [arm64, x64]
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: build/artifacts
- name: build dist
run: |
./dist.sh ${{matrix.arch}}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: dist-darwin-${{matrix.arch}}
path: dist
Expand All @@ -133,12 +133,12 @@ jobs:
target: [static_lib, shared_lib, cmd]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: build ${{matrix.target}}
run: |
${{matrix.target}}/build.bat ${{matrix.config}}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
name: upload ${{matrix.target}}
with:
name: win32_x64-${{matrix.target}}-${{matrix.config}}
Expand All @@ -155,7 +155,7 @@ jobs:
matrix:
config: [debug, release]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: build test
run: |
test/build.bat ${{matrix.config}}
Expand All @@ -170,14 +170,14 @@ jobs:
needs: build-win32
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: build/artifacts
- name: build dist
run: |
./dist.bat
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: dist-win32-x64
path: dist
38 changes: 19 additions & 19 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}

Expand All @@ -23,12 +23,12 @@ jobs:
target: [static_lib, shared_lib, cmd]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: build ${{matrix.target}}
run: |
${{matrix.target}}/build.sh ${{matrix.config}}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
name: upload ${{matrix.target}}
with:
name: linux_x64-${{matrix.target}}-${{matrix.config}}
Expand All @@ -44,7 +44,7 @@ jobs:
matrix:
config: [debug, release]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: build test
run: |
test/build.sh ${{matrix.config}}
Expand All @@ -59,14 +59,14 @@ jobs:
needs: build-linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: build/artifacts
- name: build dist
run: |
./dist.sh
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: dist-linux-x64
path: dist
Expand All @@ -81,12 +81,12 @@ jobs:
arch: [x64, arm64]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: build ${{matrix.target}}
run: |
${{matrix.target}}/build.sh ${{matrix.config}} ${{matrix.arch}}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
name: upload ${{matrix.target}}
with:
name: darwin_${{matrix.arch}}-${{matrix.target}}-${{matrix.config}}
Expand All @@ -103,7 +103,7 @@ jobs:
config: [debug, release]
arch: [arm64, x64]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: build test
run: |
test/build.sh ${{matrix.config}} ${{matrix.arch}}
Expand All @@ -122,14 +122,14 @@ jobs:
matrix:
arch: [x64, arm64]
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: build/artifacts
- name: build dist
run: |
./dist.sh ${{matrix.arch}}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: dist-darwin-${{matrix.arch}}
path: dist
Expand All @@ -143,12 +143,12 @@ jobs:
target: [static_lib, shared_lib, cmd]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: build ${{matrix.target}}
run: |
${{matrix.target}}/build.bat ${{matrix.config}}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
name: upload ${{matrix.target}}
with:
name: win32_x64-${{matrix.target}}-${{matrix.config}}
Expand All @@ -165,7 +165,7 @@ jobs:
matrix:
config: [debug, release]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: build test
run: |
test/build.bat ${{matrix.config}}
Expand All @@ -180,14 +180,14 @@ jobs:
needs: build-win32
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: build/artifacts
- name: build dist
run: |
./dist.bat
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: dist-win32-x64
path: dist

0 comments on commit 201ca8d

Please sign in to comment.