Skip to content

feat(modules): use package set for port sources #713

feat(modules): use package set for port sources

feat(modules): use package set for port sources #713

Workflow file for this run

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