modernize build ci

This commit is contained in:
Daylin Morgan 2024-11-18 11:18:32 -06:00
parent b851d4ae01
commit 9352e82219
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -16,7 +16,9 @@ on:
inputs:
hosts:
description: 'list of hosts to build'
default: ',othalan,algiz'
default: 'othalan'
# TODO: accept , style sep in hwylcli
# default: ',othalan,algiz'
type: string
# concurrency:
@ -50,10 +52,10 @@ jobs:
- uses: DeterminateSystems/magic-nix-cache-action@v8
# - name: Install and login to attic cache
# run: |
# nix profile install "nixpkgs#attic-client"
# attic login oizys https://attic.dayl.in "${{ secrets.ATTIC_TOKEN }}"
- name: Install and login to attic cache
run: |
nix profile install "nixpkgs#attic-client"
attic login oizys https://attic.dayl.in "${{ secrets.ATTIC_TOKEN }}"
# - uses: cachix/cachix-action@v15
# with:
@ -70,13 +72,12 @@ jobs:
run: nix build . --print-build-logs
- name: Build
run: |
nix run . \
-- \
build --minimal \
--host,="${{ inputs.hosts }}" \
--flake . \
--debug \
-- \
--keep-going \
--print-build-logs
run: >
nix run .
--
cache
--host "${{ inputs.hosts }}"
--flake
--debug
--
--keep-going