Update nixci #76
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CI" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@main | |
with: | |
extra-conf: | | |
trusted-public-keys = cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= | |
substituters = https://cache.garnix.io?priority=41 https://cache.nixos.org/ | |
# disko VM test requires a system with support for: {kvm, nixos-test} | |
# See https://github.com/nix-community/nixos-generators/issues/83#issuecomment-973294478 | |
system-features = nixos-test benchmark big-parallel kvm | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- uses: yaxitech/nix-install-pkgs-action@v3 | |
with: | |
packages: "github:srid/nixci" | |
- run: nixci | |
# Run disko VM test (test partition creation and whether the VM boots up later) | |
# TODO: Do this for every configuration? | |
# - run: nix build .#nixosConfigurations.vanjaram.config.system.build.installTest |