refactor: use gnu stow to manage qmk symlinks #11
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 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: x86_64-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 |