Skip to content

Commit

Permalink
Add zig-setup workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonatan Chaverri committed Oct 4, 2024
1 parent bf53548 commit 190462c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,16 @@ on:
pull_request:
branches: [main]

env:
ZIG_VERSION: 0.13.0

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: goto-bus-stop/setup-zig@v2
with:
version: ${{ env.ZIG_VERSION }}

- name: Setup Zig
uses: ./.github/workflows/zig-setup.yml@main

- name: Unit testing
run: zig build test --summary all
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,17 @@ on:

permissions: write-all

env:
ZIG_VERSION: 0.13.0

jobs:
docs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: goto-bus-stop/setup-zig@v2
with:
version: ${{ env.ZIG_VERSION }}

- name: Setup Zig
uses: ./.github/workflows/zig-setup.yml@main

- run: zig build docs

- name: Deploy
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/zig-setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Zig Setup
on: workflow_call

env:
ZIG_VERSION: 0.13.0

jobs:
setup-zig:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: goto-bus-stop/setup-zig@v2
with:
version: ${{ env.ZIG_VERSION }}

0 comments on commit 190462c

Please sign in to comment.