can we build machines

This commit is contained in:
cy 2025-01-19 19:54:35 -05:00
parent 8cf5db6c43
commit 3e716ad68f
2 changed files with 34 additions and 10 deletions

View file

@ -3,7 +3,7 @@ on:
workflow_dispatch:
push:
jobs:
build:
build packages:
strategy:
matrix:
package:
@ -28,3 +28,27 @@ jobs:
cache: ${{ vars.ATTIC_CACHE }}
token: ${{ secrets.ATTIC_TOKEN }}
- run: nix build -L '${{ matrix.package }}'
build machines:
strategy:
matrix:
machine:
- chunk
- ytnix
- titan
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
continue-on-error: true
steps:
- uses: DeterminateSystems/nix-installer-action@main
with:
logger: pretty
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Setup Attic cache
uses: ryanccn/attic-action@v0
with:
endpoint: ${{ vars.ATTIC_ENDPOINT }}
cache: ${{ vars.ATTIC_CACHE }}
token: ${{ secrets.ATTIC_TOKEN }}
- run: nix build -L .#nixosConfigurations.${{ matrix.machine }}$.config.system.build.toplevel