.dotfiles/.forgejo/workflows/main.yml
Renovate Bot e670a1036f
Some checks are pending
build flakes / build (x86_64-linux, wash, linux) (push) Waiting to run
Renovate / renovate (push) Waiting to run
chore(deps): update actions/checkout action to v6
2025-11-29 04:41:09 +00:00

62 lines
1.6 KiB
YAML

name: build flakes
on:
push:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: linux
hostname: wash
arch: x86_64-linux
# - os: darwin
# hostname: MAC-C57KK2TC69
# arch: aarch64-darwin
runs-on: kaylee
continue-on-error: false
steps:
- uses: actions/checkout@v6
- name: Install Nix
uses: https://github.com/DeterminateSystems/nix-installer-action@main
- name: build nixos
if: ${{ matrix.os }} == 'linux'
run: |
nix build -L ./dot_config/flake#nixosConfigurations.${{matrix.hostname}}.config.system.build.toplevel --cores 4 -j4
# - name: build darwin
# if: runner.os == 'macOS'
# run: |
# nix build ./dot_config/flake#darwinConfigurations.${{matrix.hostname}}.config.system.build.topLevel --cores 1 -j1
# - name: download last artifact
# uses: dawidd6/action-download-artifact@v11
# with:
# workflow: main.yml
# workflow_conclusion: success
# name: ${{ matrix.os }}-${{ matrix.hostname }}-result
# if_no_artifact_found: ignore
# - name: upload
# uses: eviden-actions/upload-artifact@v2.0.0
# with:
# name: ${{ matrix.os }}-${{ matrix.hostname }}-result
# path:
# result
# - name: extract result
# run: |
# tar -xvf ${{ matrix.os }}-${{ matrix.hostname }}-result.tar.gz last-result || true
# - name: diff
# run: |
# nix run nixpkgs#nvd -- diff last-result result || true