Skip to content

.github/workflows: Improve pipeline with some parallel steps #27

.github/workflows: Improve pipeline with some parallel steps

.github/workflows: Improve pipeline with some parallel steps #27

Workflow file for this run

name: Exhaustive Flake Test
on:
workflow_dispatch:
push:
branches:
- staging
jobs:
prepare:
name: Prepare Environment
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4.2.2
- name: Free Disk Space
uses: jlumbroso/free-disk-space@v1.3.1
with:
tool-cache: true
- name: Install Nix
uses: cachix/install-nix-action@v30
with:
extra_nix_config: |
allow-import-from-derivation = false
eval-cache = false
check:
name: Check Flake Outputs
runs-on: ubuntu-latest
needs: ['prepare']
steps:
- name: Flake Check
run: nix flake check
build:
name: Build Flake Outputs
runs-on: ubuntu-latest
needs: ['prepare']
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: Flake Build
run: |
nix build '.#${{ matrix.outputs }}'