mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 08:48:34 -05:00
61 lines
1.5 KiB
YAML
61 lines
1.5 KiB
YAML
on:
|
|
push:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- os: ubuntu-latest
|
|
hostname: wash
|
|
arch: x86_64-linux
|
|
- os: macos-latest
|
|
hostname: MAC-C57KK2TC69
|
|
arch: aarch64-darwin
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
continue-on-error: false
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: install nix
|
|
uses: DeterminateSystems/determinate-nix-action
|
|
with:
|
|
extra-conf: "lazy-trees = true"
|
|
|
|
- name: Maximize build space
|
|
if: runner.os == 'Linux'
|
|
uses: ./.github/actions/disk_space
|
|
|
|
- uses: cachix/cachix-action@v16
|
|
with:
|
|
name: tmayoff
|
|
authToken: '${{ secrets.CACHIX_AUTH }}'
|
|
|
|
- uses: workflow/nix-shell-action@v3
|
|
if: runner.os == 'Linux'
|
|
name: build nixos
|
|
with:
|
|
packages: nh
|
|
script: |
|
|
nh os build ./dot_config/flake#nixosConfigurations.${{matrix.hostname}} --no-nom -- --cores 1 -j1
|
|
|
|
- uses: workflow/nix-shell-action@v3
|
|
if: runner.os == 'macOS'
|
|
name: build darwin
|
|
with:
|
|
packages: nh
|
|
script: |
|
|
nh darwin build ./dot_config/flake#darwinConfigurations.${{matrix.hostname}} --no-nom -- --cores 1 -j1
|
|
|
|
- name: Upload artifact
|
|
uses: actions/cache@v4
|
|
with:
|
|
key: ${{ matrix.hostname }}-${{ matrix.arch }}
|
|
path: |
|
|
result
|