mirror of
https://github.com/NuschtOS/search.git
synced 2024-11-24 04:19:07 +01:00
42 lines
819 B
YAML
42 lines
819 B
YAML
name: "flake build"
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
tags: [ '*' ]
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target: [ "24.05", "24.11", "unstable" ]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: cachix/install-nix-action@v30
|
|
|
|
- uses: DeterminateSystems/magic-nix-cache-action@v8
|
|
with:
|
|
diagnostic-endpoint: false
|
|
use-flakehub: false
|
|
|
|
- name: build stable
|
|
if: matrix.target != 'unstable'
|
|
run: |
|
|
nix build -L \
|
|
--override-input nixpkgs github:NixOS/nixpkgs/nixos-${{ matrix.target }}
|
|
|
|
- name: build unstable
|
|
if: matrix.target == 'unstable'
|
|
run: |
|
|
nix build -L
|