Skip to content

Commit

Permalink
Use Zig v0.13.0 with the workflow and add build as a job.
Browse files Browse the repository at this point in the history
  • Loading branch information
Makosai committed Aug 18, 2024
1 parent 37ec2b7 commit 4c5b4c7
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/zig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
paths:
- zig/**

env:
VERSION: 0.13.0

jobs:
test:
strategy:
Expand All @@ -15,14 +18,22 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v2
- name: Test
working-directory: ./zig
run: zig build test
with:
version: ${{env.VERSION}}
- run: zig build test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v2
- name: Lint
working-directory: ./zig
run: zig fmt --check .
with:
version: ${{env.VERSION}}
- run: zig fmt --check .
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v2
with:
version: ${{env.VERSION}}
- run: zig build

0 comments on commit 4c5b4c7

Please sign in to comment.