-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 962 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
41
name: Nix qmk env
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "**.nix"
- "flake.lock"
- "firmware/*"
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
target: x86_64-linux
- os: macos-latest
target: aarch64-darwin
runs-on: ${{ matrix.os }}
steps:
- name: Setup | Checkout
uses: actions/checkout@v4
- name: Setup | Install nix
uses: cachix/install-nix-action@v23
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Setup | Install cachix
uses: cachix/cachix-action@v12
with:
name: edeneast-qmk-firmware
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Build | Environment
run: nix build --accept-flake-config .#devShells.${{ matrix.target }}.default