-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github/workflows: Improve pipeline with some parallel steps
TODO
- Loading branch information
Showing
1 changed file
with
28 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,28 +7,43 @@ on: | |
- staging | ||
|
||
jobs: | ||
tests: | ||
check: | ||
name: Check Flake Outputs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Free Disk Space | ||
uses: jlumbroso/[email protected] | ||
with: | ||
tool-cache: true | ||
|
||
- name: Checkout Repository | ||
uses: actions/[email protected] | ||
|
||
- name: Install Nix | ||
uses: cachix/install-nix-action@v30 | ||
with: | ||
extra_nix_config: | | ||
allow-import-from-derivation = false | ||
eval-cache = false | ||
- name: Run Flake Check | ||
- name: Flake Check | ||
run: nix flake check | ||
|
||
- name: Build NixOS Configurations | ||
build: | ||
name: Build Flake Outputs | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
outputs: ['nixosConfigurations.LAPTOP-3DT4F02.config.system.build.toplevel', | ||
'nixosConfigurations.DESKTOP-3DT4F02.config.system.build.toplevel', | ||
'nixosConfigurations.ISO-3DT4F02.config.system.build.isoImage'] | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/[email protected] | ||
|
||
- name: Install Nix | ||
uses: cachix/install-nix-action@v30 | ||
with: | ||
extra_nix_config: | | ||
allow-import-from-derivation = false | ||
eval-cache = false | ||
- name: Flake Build | ||
run: | | ||
nix build '.#nixosConfigurations.LAPTOP-3DT4F02.config.system.build.toplevel' | ||
nix build '.#nixosConfigurations.DESKTOP-3DT4F02.config.system.build.toplevel' | ||
nix build '.#nixosConfigurations.ISO-3DT4F02.config.system.build.isoImage' | ||
nix build '.#${{ matrix.outputs }}' |