mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 22:09:16 +01:00
ci: Add nix workflow
This commit is contained in:
parent
9aad2d0b27
commit
082df183d3
1 changed files with 25 additions and 0 deletions
25
.github/workflows/nix-flake.yml
vendored
Normal file
25
.github/workflows/nix-flake.yml
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
name: Nix Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches: ["*"]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
id-token: "write"
|
||||||
|
contents: "read"
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: DeterminateSystems/nix-installer-action@main
|
||||||
|
with:
|
||||||
|
extra-conf: accept-flake-config = true
|
||||||
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||||
|
- uses: DeterminateSystems/flake-checker-action@main
|
||||||
|
- name: Build default package
|
||||||
|
run: nix build .
|
||||||
|
- name: Check flakes
|
||||||
|
run: nix flake check --allow-import-from-derivation
|
||||||
Loading…
Add table
Add a link
Reference in a new issue