Add nix CI for pull request

This commit is contained in:
Charlotte 🦝 Delenk 2022-04-16 10:55:01 +01:00
parent f98d8fa66c
commit c01fda5fe0
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

16
.github/workflows/pulls.yml vendored Normal file
View file

@ -0,0 +1,16 @@
name: Build pull request
on: pull_request
jobs:
build_pr:
name: Build Pull
strategy:
matrix:
target:
- nixosConfigurations.nixos-8gb-fsn1-1.config.system.build.toplevel
- nixosConfigurations.nutty-noon.config.system.build.toplevel
- nixosConfigurations.thinkrac.config.system.build.toplevel
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v12
- run: nix build --no-out-link '.#${{ matrix.target }}' --extra-experimental-features "nix-command flakes" --option substituters "https://f000.backblazeb2.com/file/cache-chir-rs/ https://cache.nixos.org/" --option trusted-public-keys "nixcache:8KKuGz95Pk4UJ5W/Ni+pN+v+LDTkMMFV4yrGmAYgkDg= hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs="