mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 08:48:34 -05:00
Fixup CI Setup dependency dashboard more renovate config Set repo in workflow remove trailing comma Setup Github token and ignore FlakeHub in flake.nix Add magic nix cache Skip FlakeHub add cache permissions . cache? cache? more env vars renovate.json
62 lines
1.6 KiB
YAML
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@v4
|
|
|
|
- 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
|