WIP add Nix flake #1
Workflow file for this run
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 | |
on: | |
pull_request: | |
push: | |
branches: | |
- dev | |
- release | |
- nix-flake | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
nix-test: | |
runs-on: ubuntu-latest | |
steps: | |
# Prepare, install tools | |
- name: Checkout | |
uses: actions/checkout@v3 | |
#- name: Pull musl | |
# run: | | |
# git submodule update --init lib/musl | |
- uses: cachix/install-nix-action@v22 | |
- name: Test | |
run: | | |
nix develop --ignore-environment --keep HOME --command bash -c "go install && ~/go/bin/tinygo version && ~/go/bin/tinygo build examples/serial" |