oscuro/.gitea/workflows/nix.yml
L-Nafaryus 9c5e29ce1f
Some checks failed
Test, build and push caches / test (push) Failing after 1m49s
Test, build and push caches / build (push) Has been skipped
test ci
2024-05-02 13:09:35 +05:00

39 lines
921 B
YAML

name: "Test, build and push caches"
on:
push:
branches:
- master
jobs:
test:
runs-on: debian-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: "0"
- uses: cachix/install-nix-action@v26
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
experimental-features = nix-command flakes
- run: nix flake check
build:
runs-on: debian-latest
needs: test
steps:
- uses: actions/checkout@v4
with:
fetch-depth: "0"
- uses: cachix/install-nix-action@v26
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
experimental-features = nix-command flakes
- uses: cachix/cachix-action@v14
with:
name: bonfire
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- run: nix build -L