-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 924 Bytes
/
nix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Nix qmk env
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "**.nix"
- "flake.lock"
- "firmware/*"
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: ubunto-latest
target: x86_64-linux
- os: macos-latest
target: x86_64-darwin
runs-on: ${{ matrix.os }}
steps:
- name: Setup | Checkout
uses: actions/checkout@v4
- name: Setup | Install nix
uses: cachix/install-nix-actions@23
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Setup | Install cachix
uses: cachix/cachix-action@12
with:
name: edeneast
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Build | Environment
run: nix build .#devShells.${{ matrix.target }}.default