oscuro/.gitea/workflows/nix.yml
L-Nafaryus 8326742271
Some checks failed
Test, build and push caches / test (push) Failing after 52s
Test, build and push caches / build (push) Has been skipped
test ci 2
2024-05-02 14:55:54 +05:00

37 lines
880 B
YAML

name: "Test, build and push caches"
on:
push:
branches:
- master
jobs:
test:
runs-on: debian-latest
steps:
- uses: actions/checkout@v4
- 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