Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add zig-setup workflow #159

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
Loading