Skip to content

feat: add nix flake and GitHub Actions workflow #2

feat: add nix flake and GitHub Actions workflow

feat: add nix flake and GitHub Actions workflow #2

Workflow file for this run

name: "Build"
on:
pull_request:
push:
branches:
- main
- master
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Setup Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build packages
run: |
# Build all packages for the current system
nix build .#
nix build .#web-view
- name: Build devShells
run: |
# Build all devShells for the current system
nix develop .# -c true
nix develop .#web-view -c true
nix develop .#example -c true
- name: Check overlays
run: |
# Test that overlays exist
nix eval .#overlays