oscuro/.gitea/workflows/nix.yml

24 lines
592 B
YAML
Raw Normal View History

2024-05-02 13:09:35 +05:00
name: "Test, build and push caches"
on:
push:
branches:
- master
jobs:
build:
2024-05-02 15:52:04 +05:00
runs-on: ubuntu-latest
2024-05-02 13:09:35 +05:00
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
2024-05-02 16:38:57 +05:00
- run: nix flake check --accept-flake-config
2024-05-02 13:09:35 +05:00
- uses: cachix/cachix-action@v14
with:
name: bonfire
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
2024-05-02 16:38:57 +05:00
- run: nix build -L --accept-flake-config