2024-01-23 16:09:05 -06:00
|
|
|
name: Build NixOS
|
|
|
|
|
2024-01-23 11:51:13 -06:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2024-01-23 12:50:48 -06:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
2024-01-23 11:51:13 -06:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2024-01-30 13:40:15 -06:00
|
|
|
strategy:
|
2024-01-30 13:42:16 -06:00
|
|
|
max-parallel: 1
|
|
|
|
matrix:
|
|
|
|
hosts: ["othalan", "mannaz", "algiz"]
|
2024-01-23 11:51:13 -06:00
|
|
|
steps:
|
2024-01-23 14:51:12 -06:00
|
|
|
# free up some space
|
2024-01-23 13:10:13 -06:00
|
|
|
- run: sudo rm -rf /opt&
|
2024-01-23 14:51:12 -06:00
|
|
|
|
2024-01-23 11:51:13 -06:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: cachix/install-nix-action@v25 # v25
|
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
2024-01-24 12:32:07 -06:00
|
|
|
|
2024-01-23 11:51:13 -06:00
|
|
|
- uses: DeterminateSystems/magic-nix-cache-action@v2
|
|
|
|
- uses: cachix/cachix-action@v14
|
|
|
|
with:
|
|
|
|
name: daylin
|
|
|
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
2024-01-30 13:40:15 -06:00
|
|
|
# - name: Build all flake outputs
|
2024-01-28 11:09:34 -06:00
|
|
|
# run: |
|
2024-01-30 13:40:15 -06:00
|
|
|
# cachix watch-exec daylin -- \
|
|
|
|
# nix build github:srid/devour-flake \
|
|
|
|
# -L --no-link --print-out-paths \
|
|
|
|
# --override-input flake .
|
|
|
|
- name: Build
|
|
|
|
run: |
|
2024-01-30 13:43:47 -06:00
|
|
|
nix run . --accept-flake-config -- cache --host ${{ matrix.host }} --flake .
|