oizys/.github/workflows/build.yml
dependabot[bot] 5393698e82 Bump DeterminateSystems/nix-installer-action from 12 to 13
Bumps [DeterminateSystems/nix-installer-action](https://github.com/determinatesystems/nix-installer-action) from 12 to 13.
- [Release notes](https://github.com/determinatesystems/nix-installer-action/releases)
- [Commits](https://github.com/determinatesystems/nix-installer-action/compare/v12...v13)

---
updated-dependencies:
- dependency-name: DeterminateSystems/nix-installer-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-29 11:39:57 -05:00

64 lines
1.4 KiB
YAML

name: Build NixOS (on demand)
on:
workflow_dispatch:
inputs:
hosts:
description: 'list of hosts to build'
required: true
default: 'othalan algiz'
type: string
lockFile:
description: 'flake.lock file'
type: string
workflow_call:
inputs:
hosts:
description: 'list of hosts to build'
default: 'othalan algiz'
type: string
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.host }}
# cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# - uses: ./.github/actions/clean-disk
- uses: DeterminateSystems/nix-installer-action@v13
with:
extra-conf: |
accept-flake-config = true
- uses: DeterminateSystems/magic-nix-cache-action@v7
- uses: cachix/cachix-action@v15
with:
name: daylin
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 . \
-- \
build --minimal \
--host "${{ inputs.hosts }}" \
--flake . \
--verbose \
--debug \
-- \
--print-build-logs