2024-04-13 09:32:22 +02:00
|
|
|
name: Nix Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
workflow_run:
|
|
|
|
workflows: []
|
|
|
|
types: [completed]
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-nixos:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: "Install Nix ❄️"
|
2024-10-04 00:01:18 +00:00
|
|
|
uses: cachix/install-nix-action@v30
|
2024-04-13 09:32:22 +02:00
|
|
|
|
2024-05-18 08:11:44 +02:00
|
|
|
# - uses: DeterminateSystems/nix-installer-action@v4
|
2024-09-12 00:02:00 +00:00
|
|
|
- uses: DeterminateSystems/magic-nix-cache-action@v8
|
2024-09-10 00:02:04 +00:00
|
|
|
- uses: DeterminateSystems/flake-checker-action@v9
|
2024-04-21 10:30:42 +02:00
|
|
|
|
2024-04-13 09:32:22 +02:00
|
|
|
- name: "Install Cachix ❄️"
|
2024-05-21 00:01:32 +00:00
|
|
|
uses: cachix/cachix-action@v15
|
2024-04-13 09:32:22 +02:00
|
|
|
with:
|
|
|
|
name: helcel
|
|
|
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
2024-04-21 10:30:42 +02:00
|
|
|
|
2024-04-13 09:32:22 +02:00
|
|
|
|
2024-04-14 22:36:11 +02:00
|
|
|
- name: "Build NixOS CI config ❄️"
|
2024-04-13 09:32:22 +02:00
|
|
|
run: |
|
2024-04-14 22:36:11 +02:00
|
|
|
nix build .#nixosConfigurations.ci.config.system.build.toplevel
|
|
|
|
|
|
|
|
- name: "Build NixOS Sandbox config ❄️"
|
|
|
|
run: |
|
2024-04-21 10:30:42 +02:00
|
|
|
nix build .#nixosConfigurations.sandbox.config.system.build.toplevel
|
|
|
|
|