2023-01-02 15:04:59 -08:00
|
|
|
on: [push, pull_request]
|
|
|
|
name: Test
|
|
|
|
jobs:
|
|
|
|
build:
|
2025-01-18 17:05:45 +01:00
|
|
|
runs-on: docker
|
2023-01-02 15:04:59 -08:00
|
|
|
steps:
|
2023-10-20 15:54:57 -07:00
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v4
|
2023-01-02 15:04:59 -08:00
|
|
|
|
2025-01-18 17:26:52 +01:00
|
|
|
- uses: https://github.com/cachix/install-nix-action@v30
|
2023-10-20 15:54:57 -07:00
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
2023-01-02 15:04:59 -08:00
|
|
|
|
2023-10-20 15:54:57 -07:00
|
|
|
# Cross-compile the binary. We always use static building for this
|
|
|
|
# because its the only way to access the headers.
|
|
|
|
- name: Test
|
|
|
|
run: nix develop -c zig build test --summary all
|