Try to fix CI #21
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: "compile-check-blink" | |
on: | |
pull_request: | |
paths-ignore: | |
- 'README.md' | |
push: | |
paths-ignore: | |
- 'README.md' | |
jobs: | |
nix-flake-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v29 | |
with: | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: DeterminateSystems/magic-nix-cache-action@v8 | |
# Work around https://github.com/containers/bubblewrap/issues/632 | |
- name: Disable apparmor | |
run: | | |
sudo systemctl stop apparmor.service | |
sudo systemctl disable apparmor.service | |
sudo systemctl status apparmor.service || true | |
- name: Compile test | |
run: | | |
sudo systemctl status apparmor.service || true | |
nix develop --command make -C blink compile | |
- name: Formatter check | |
run: | | |
nix fmt | |
git diff --exit-code |