Merge pull request #15 from yuanw/emacs #179
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: 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 |