Skip to content

chore: port from zig to go #82

chore: port from zig to go

chore: port from zig to go #82

name: Build/Test
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build-and-test:
name: Build/Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Use magic Nix cache
uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Check for compile errors
run: |
nix develop .# -c make
nix develop .# -c make FLAKE=false
- name: Run tests
run: nix develop .# -c make test
- name: Build Nix packages
run: nix build .#{nixos,nixosLegacy}