Skip to content

refactor(ci): replace magic-nix-cache with cache-nix-action #894

refactor(ci): replace magic-nix-cache with cache-nix-action

refactor(ci): replace magic-nix-cache with cache-nix-action #894

Workflow file for this run

name: Build
on:
push:
branches: [ main ]
pull_request:
merge_group:
branches: [ main ]
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nixbuild/nix-quick-install-action@v29
- uses: hsel-netsys/cache-nix-action@main
with:
primary-key: nix-${{ runner.os }}-${{ hashFiles('flake.nix', 'flake.lock') }}
- name: Generate CMake Build Files
run: nix develop --impure .#ci -c cmake -DBUILD_TESTS=ON .
- name: Verify Formatting
run: nix develop --impure .#ci -c make check-format
- name: Lint Codebase
run: nix develop --impure .#ci -c make lint
- name: Build IceFlow Example Applications and Tests
run: nix develop --impure .#ci -c make
- name: Run Tests
run: nix develop --impure .#ci -c make test
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: nixbuild/nix-quick-install-action@v29
- uses: hsel-netsys/cache-nix-action@main
with:
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix') }}
- name: Generate CMake Build Files
run: nix develop --impure .#ci -c cmake -DBUILD_TESTS=ON .
- name: Verify Formatting
run: nix develop --impure .#ci -c make check-format
- name: Lint Codebase
run: nix develop --impure .#ci -c make lint
- name: Build IceFlow Example Applications and Tests
run: nix develop --impure .#ci -c make
- name: Run Tests
run: nix develop --impure .#ci -c make test