Bump cachix/install-nix-action from 23 to 25 #41
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: | |
branches: | |
- 'main' | |
- 'reboot' | |
tags: | |
- '*' | |
pull_request: | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v25 | |
- name: Install Nix Dependencies | |
run: nix develop --command true | |
- name: Build Software | |
run: nix develop --command make | |
- name: Check Sync of Files | |
run: | | |
if [ -n "$(git status --porcelain)" ]; then | |
printf 'Files are not in sync: building changed some:\n' | |
git diff | |
exit 1 | |
fi | |
- name: Test Software | |
run: nix develop --command make test |