mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 01:50:44 -06:00
modernize build ci
This commit is contained in:
parent
b851d4ae01
commit
9352e82219
1 changed files with 17 additions and 16 deletions
33
.github/workflows/build.yml
vendored
33
.github/workflows/build.yml
vendored
|
@ -16,7 +16,9 @@ on:
|
||||||
inputs:
|
inputs:
|
||||||
hosts:
|
hosts:
|
||||||
description: 'list of hosts to build'
|
description: 'list of hosts to build'
|
||||||
default: ',othalan,algiz'
|
default: 'othalan'
|
||||||
|
# TODO: accept , style sep in hwylcli
|
||||||
|
# default: ',othalan,algiz'
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
# concurrency:
|
# concurrency:
|
||||||
|
@ -50,16 +52,16 @@ jobs:
|
||||||
|
|
||||||
- uses: DeterminateSystems/magic-nix-cache-action@v8
|
- uses: DeterminateSystems/magic-nix-cache-action@v8
|
||||||
|
|
||||||
# - name: Install and login to attic cache
|
- name: Install and login to attic cache
|
||||||
# run: |
|
run: |
|
||||||
# nix profile install "nixpkgs#attic-client"
|
nix profile install "nixpkgs#attic-client"
|
||||||
# attic login oizys https://attic.dayl.in "${{ secrets.ATTIC_TOKEN }}"
|
attic login oizys https://attic.dayl.in "${{ secrets.ATTIC_TOKEN }}"
|
||||||
|
|
||||||
# - uses: cachix/cachix-action@v15
|
# - uses: cachix/cachix-action@v15
|
||||||
# with:
|
# with:
|
||||||
# name: daylin
|
# name: daylin
|
||||||
# authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
# authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||||
|
|
||||||
- name: write lock file
|
- name: write lock file
|
||||||
if: "${{ inputs.lockFile != '' }}"
|
if: "${{ inputs.lockFile != '' }}"
|
||||||
run: |
|
run: |
|
||||||
|
@ -70,13 +72,12 @@ jobs:
|
||||||
run: nix build . --print-build-logs
|
run: nix build . --print-build-logs
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: >
|
||||||
nix run . \
|
nix run .
|
||||||
-- \
|
--
|
||||||
build --minimal \
|
cache
|
||||||
--host,="${{ inputs.hosts }}" \
|
--host "${{ inputs.hosts }}"
|
||||||
--flake . \
|
--flake
|
||||||
--debug \
|
--debug
|
||||||
-- \
|
--
|
||||||
--keep-going \
|
--keep-going
|
||||||
--print-build-logs
|
|
||||||
|
|
Loading…
Reference in a new issue