ci: add nix ci that uploads build result to cachix #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nix | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Check flake and upload build cache | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v22 | |
with: | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Authenticate with Cachix | |
uses: cachix/cachix-action@v13 | |
with: | |
name: mrnossiom | |
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
- name: Check flake structure | |
run: nix flake check | |
- name: Build nix package | |
run: nix build --print-build-logs |