switch runner

This commit is contained in:
Tyler Mayoff 2025-09-30 15:24:11 -04:00
parent ee9613902b
commit c4475edc98

View file

@ -3,9 +3,9 @@ name: build flakes
on:
push:
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
@ -20,31 +20,15 @@ jobs:
# hostname: MAC-C57KK2TC69
# arch: aarch64-darwin
runs-on: codeberg-tiny
runs-on: kaylee
continue-on-error: false
steps:
- uses: actions/checkout@v4
- name: install nix
uses: https://github.com/DeterminateSystems/nix-installer-action@main
- uses: https://github.com/DeterminateSystems/magic-nix-cache-action@main
with:
use-flakehub: false
# - name: Maximize build space
# if: runner.os == 'Linux'
# uses: ./.github/actions/disk_space
- uses: https://github.com/cachix/cachix-action@v16
with:
name: tmayoff
authToken: '${{ secrets.CACHIX_AUTH }}'
- name: build nixos
if: ${{ matrix.os }} == 'linux'
run: |
nix build ./dot_config/flake#nixosConfigurations.${{matrix.hostname}}.config.system.build.toplevel --cores 1 -j1
nix build -L ./dot_config/flake#nixosConfigurations.${{matrix.hostname}}.config.system.build.toplevel --cores 4 -j4
# - name: build darwin
# if: runner.os == 'macOS'