feat(modules): use package set for port sources #718
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: CI | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- '**.nix' | |
- 'flake.lock' | |
pull_request: | |
paths: | |
- '**.nix' | |
- 'flake.lock' | |
workflow_dispatch: | |
jobs: | |
packages: | |
name: Build Packages | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ macos-latest, macos-13, ubuntu-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: cachix/install-nix-action@V27 | |
- name: Setup cache | |
uses: DeterminateSystems/magic-nix-cache-action@v8 | |
- name: Run build | |
run: | | |
nix run .#build-outputs -- 'packages' | |
modules: | |
name: Test Modules | |
needs: packages | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ macos-latest, ubuntu-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: cachix/install-nix-action@V27 | |
- name: Setup cache | |
uses: DeterminateSystems/magic-nix-cache-action@v8 | |
- name: Run tests | |
run: | | |
nix run .#build-outputs -- 'checks' | |
release-gate: | |
name: Release Gate | |
needs: [ modules, packages ] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Exit with error | |
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }} | |
run: exit 1 |