refactor(ci): replace magic-nix-cache with cache-nix-action #893
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: 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 |