ci: separate checking outputs from building them

This commit is contained in:
Gabriel Arazas 2023-01-13 16:16:15 +08:00
parent 6fe30acf2b
commit 2f34656ee7
2 changed files with 19 additions and 12 deletions

View File

@ -5,18 +5,6 @@ env:
NIXPKGS_ALLOW_BROKEN: "1"
NIXPKGS_ALLOW_UNFREE: "1"
jobs:
check-outputs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v16
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
keep-going = true
- name: Check flake outputs
run: nix flake check --impure
build-custom-packages:
runs-on: ubuntu-latest
steps:

19
.github/workflows/check.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: "Check flake outputs"
on: [pull_request, push]
env:
NIXPKGS_ALLOW_INSECURE: "1"
NIXPKGS_ALLOW_BROKEN: "1"
NIXPKGS_ALLOW_UNFREE: "1"
jobs:
check-outputs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v16
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
keep-going = true
- name: Check flake outputs
run: nix flake check --impure