mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-14 07:57:53 -06:00
13b47f8281
Bumps [DeterminateSystems/nix-installer-action](https://github.com/determinatesystems/nix-installer-action) from 14 to 15. - [Release notes](https://github.com/determinatesystems/nix-installer-action/releases) - [Commits](https://github.com/determinatesystems/nix-installer-action/compare/v14...v15) --- 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>
82 lines
2.1 KiB
YAML
82 lines
2.1 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
|
|
|
|
# needed to access ghostty repo for now
|
|
- name: Setup SSH
|
|
uses: MrSquaare/ssh-setup-action@v3
|
|
with:
|
|
host: github.com
|
|
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
|
|
- uses: ./.github/actions/clean-disk
|
|
with:
|
|
purge-packages: 'true'
|
|
|
|
- uses: DeterminateSystems/nix-installer-action@v15
|
|
with:
|
|
source-url: https://install.lix.systems/lix/lix-installer-x86_64-linux
|
|
extra-conf: |
|
|
experimental-features = pipe-operator
|
|
accept-flake-config = true
|
|
|
|
- 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 }}"
|
|
|
|
# - 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: Pre-build Oizys
|
|
run: nix build . --print-build-logs
|
|
|
|
- name: Build
|
|
run: |
|
|
nix run . \
|
|
-- \
|
|
build --minimal \
|
|
--host,="${{ inputs.hosts }}" \
|
|
--flake . \
|
|
--debug \
|
|
-- \
|
|
--keep-going \
|
|
--print-build-logs
|