Skip to content

Commit

Permalink
bump zig version
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed Aug 5, 2024
1 parent 54d095c commit f321a95
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ on:
- '**.zig'
- '.github/workflows/CI.yml'

env:
ZIG_VERSION: 0.12.0

jobs:
test:
timeout-minutes: 10
Expand All @@ -26,13 +23,14 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
zig-version: [master, 0.13.0]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: goto-bus-stop/setup-zig@v2
- uses: mlugg/setup-zig@v1
with:
version: ${{ env.ZIG_VERSION }}
version: ${{ matrix.zig-version }}
- name: fmt and test(windows)
if: matrix.os == 'windows-latest'
run: |
Expand All @@ -58,7 +56,7 @@ jobs:
- uses: actions/checkout@v4
- uses: goto-bus-stop/setup-zig@v2
with:
version: ${{ env.ZIG_VERSION }}
version: 0.13.0
- name: Build
run: |
zig build -Dtarget=${{ matrix.targets }} -Dis_ci
6 changes: 3 additions & 3 deletions .github/workflows/binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
- ".github/workflows/binary.yml"

env:
ZIG_VERSION: 0.12.0
ZIG_VERSION: 0.13.0

jobs:
build:
Expand All @@ -35,7 +35,7 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- uses: goto-bus-stop/setup-zig@v2
- uses: mlugg/setup-zig@v1
with:
version: ${{ env.ZIG_VERSION }}
- name: Set Environment Variables
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- uses: goto-bus-stop/setup-zig@v2
- uses: mlugg/setup-zig@v1
with:
version: ${{ env.ZIG_VERSION }}

Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/simargs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ on:
- 'src/mod/simargs.zig'
- ".github/workflows/simargs.yml"

env:
ZIG_VERSION: 0.12.0

jobs:
memory-leak:
Expand All @@ -24,11 +22,12 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
zig-version: [master, 0.13.0]
steps:
- uses: actions/checkout@v4
- uses: goto-bus-stop/setup-zig@v2
- uses: mlugg/setup-zig@v1
with:
version: ${{ env.ZIG_VERSION }}
version: ${{ matrix.zig-version }}
- name: Memory leak detect
run: |
sudo apt update && sudo apt install -y valgrind
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/zig-out
/zig-cache
/.zig-cache
*lock
docs/resources

0 comments on commit f321a95

Please sign in to comment.