feat: add nix support(#80) (#82)

* feat: add nix support(#80)

* chore: nix flake update

* update actions
This commit is contained in:
虢豳
2024-03-16 05:02:18 +08:00
committed by GitHub
parent abf95afb9f
commit 8ff991aefe
9 changed files with 306 additions and 1 deletions

24
.github/workflows/cachix.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: Binary Cache
on: [push, pull_request, workflow_dispatch]
jobs:
nix:
name: "Build"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- uses: DeterminateSystems/nix-installer-action@main
with:
logger: pretty
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: cachix/cachix-action@v14
with:
name: lan-mouse
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build lan-mouse
run: nix build --print-build-logs