Merge pull request #694 from ereslibre/update-flake-lock #2014
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: | |
pull_request: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
format: | |
name: Format | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v12 | |
# - name: Setup the magic Nix cache | |
# uses: DeterminateSystems/magic-nix-cache-action@v6 | |
- name: Format | |
run: | | |
nix develop --command just fmt | |
git diff --exit-code | |
flake-check: | |
name: Flake Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Check Nix flake inputs | |
uses: DeterminateSystems/flake-checker-action@v8 | |
build: | |
name: Build | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
host: [hulk, nuc-1, nuc-2, nuc-3] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Free space | |
run: | | |
sudo rm -rf /usr/share/dotnet | |
sudo rm -rf /opt/ghc | |
sudo rm -rf "/usr/local/share/boost" | |
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v12 | |
# - name: Setup the magic Nix cache | |
# uses: DeterminateSystems/magic-nix-cache-action@v6 | |
- name: Build | |
run: | | |
# Force the creation of the profile dir | |
nix profile list | |
# Build | |
nix develop --command just build ${{ matrix.host }} |