mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-05 01:53:15 -06:00
update on-demand definition
This commit is contained in:
parent
fe4730b82c
commit
85ed8b7f78
3 changed files with 19 additions and 7 deletions
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
|
@ -14,7 +14,10 @@ jobs:
|
|||
strategy:
|
||||
max-parallel: 1
|
||||
matrix:
|
||||
host: ["othalan", "mannaz", "algiz"]
|
||||
host:
|
||||
- othalan
|
||||
# - mannaz
|
||||
# - algiz
|
||||
steps:
|
||||
# free up some space
|
||||
- run: sudo rm -rf /opt&
|
||||
|
|
19
.github/workflows/on-demand.yml
vendored
19
.github/workflows/on-demand.yml
vendored
|
@ -10,11 +10,19 @@ on:
|
|||
type: string
|
||||
lockFile:
|
||||
description: 'flake.lock file'
|
||||
required: true
|
||||
type: string
|
||||
|
||||
workflow_call:
|
||||
inputs:
|
||||
host:
|
||||
description: 'host name to build'
|
||||
required: true
|
||||
default: 'othalan'
|
||||
type: string
|
||||
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.host }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
|
@ -23,10 +31,9 @@ jobs:
|
|||
steps:
|
||||
# free up some space
|
||||
- run: sudo rm -rf /opt&
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@main
|
||||
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
- uses: DeterminateSystems/magic-nix-cache-action@v2
|
||||
|
||||
- uses: cachix/cachix-action@v14
|
||||
|
@ -35,11 +42,11 @@ jobs:
|
|||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||
|
||||
- name: write lock file
|
||||
if: "${{ inputs.lockFile != '' }}"
|
||||
run: |
|
||||
echo '${{ inputs.lockFile }}' > flake.lock
|
||||
git diff
|
||||
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
nix run . --accept-flake-config -- cache --host "${{ inputs.host }}" --flake .
|
||||
|
|
2
todo.md
2
todo.md
|
@ -12,4 +12,6 @@
|
|||
|
||||
- [ ] find out why pixi on GHA is different from local (possibly from the fetch git step?)
|
||||
|
||||
- [ ] rework CI so it's not building all systems on every pull
|
||||
|
||||
<!-- generated with <3 by daylinmorgan/todo -->
|
||||
|
|
Loading…
Reference in a new issue