Add firmware image updates from emegency mode #518
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: Build euphonium | |
on: | |
pull_request: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: cachix/install-nix-action@v24 | |
with: | |
nix_path: nixpkgs=channel:nixos-23.05 | |
# Usually, this would be called as 'nix build ".?submodules=1#app-esp32" ' | |
# However, Nix 2.19 has a regression with submodule path handling, hence the odd syntax | |
# See https://github.com/NixOS/nix/issues/9530 | |
- run: nix build "git+file://$(pwd)?shallow=1&submodules=1#app-esp32" -L | |
- name: Upload built package | |
uses: actions/upload-artifact@v4 | |
with: | |
name: euphonium.gk_pkg | |
path: | | |
./result/euphonium.gk_pkg | |
- name: Upload package to muvox-api (develop) | |
if: github.event_name == 'push' && github.ref == 'refs/heads/develop' | |
run: | | |
nix develop --command gk-flasher upload --package ./result/euphonium.gk_pkg --api-key ${{ secrets.MUVOX_API_KEY }} --url https://dashboard.gkindustries.pl |