-
Notifications
You must be signed in to change notification settings - Fork 8
36 lines (34 loc) · 918 Bytes
/
ci.yaml
File metadata and controls
36 lines (34 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: CI
on:
pull_request:
push:
branches: [ "main" ]
jobs:
build_linux_x64:
name: Build and run (Linux x64)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Install Nix
uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Test
run: nix develop -c bash -c 'zig build test -Dtarget=x86_64-linux-musl'
build_macos_arm64:
name: Build and run (macOS ARM64)
runs-on: macos-14
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Install Nix
uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Test
run: nix develop -c bash -c 'zig build test'