Skip to content

Commit f8c461d

Browse files
authored
Use nix flake for env setup
1 parent 2b1f835 commit f8c461d

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,27 @@ on:
55
branches:
66
- master
77
- dev
8+
pull_request:
9+
types: [opened, reopened]
10+
branches:
11+
- master
812
jobs:
913
build:
1014
strategy:
1115
fail-fast: false
1216
matrix:
1317
zig: [ 0.12.0, master ]
14-
os: [ ubuntu-latest, windows-latest, macos-latest ]
18+
os: [ ubuntu-latest, macos-latest ]
1519
runs-on: ${{ matrix.os }}
1620
name: Zig ${{ matrix.zig }} on ${{ matrix.os }}
1721
steps:
1822
- uses: actions/checkout@v3
1923
- name: Setup Zig
20-
uses: korandoru/setup-zig@v1
24+
- uses: cachix/install-nix-action@v19
25+
with:
26+
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
27+
nix_path: nixpkgs=channel:nixos-unstable
28+
- uses: korandoru/setup-zig@v1
2129
with:
2230
zig-version: ${{ matrix.zig }}
23-
- run: make test-img
24-
- run: zig build
31+
- run: nix develop -c zig build

0 commit comments

Comments
 (0)