-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.04 KB
/
main.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
name: CI
on: [push]
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
# os: [ubuntu-latest, macos-latest]
os: [macos-latest]
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
- uses: cachix/cachix-action@v14
with:
name: yuanwang-wf
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
extraPullNames: yuanwang-wf,nix-community
- name: Nix build
run: nix flake update svalboard_firmware && nix build .#shijushichishi
# NOTE Workaround for artifacts and deploy not liking symlinks to
# read-only paths.
- name: "Copy artifacts"
run: "mkdir dist && cp -r result/* dist/ && chmod +w dist/"
- name: Archive Production Artifact
uses: actions/upload-artifact@master
with:
name: firmware.uf2
path: dist/share/*.uf2
- name: Archive Production Artifact
uses: actions/upload-artifact@master
with:
name: keymap.json
path: dist/share/reiryoku.json