From 9352e82219c513552750833d55cd1979eba037f1 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 18 Nov 2024 11:18:32 -0600 Subject: [PATCH] modernize build ci --- .github/workflows/build.yml | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ae2552b..5da91b5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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,16 +52,16 @@ 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: # name: daylin # authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - + - name: write lock file if: "${{ inputs.lockFile != '' }}" run: | @@ -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