Skip to content

Build all the pkgs in one go so we can use our system more efficiently #171

Build all the pkgs in one go so we can use our system more efficiently

Build all the pkgs in one go so we can use our system more efficiently #171

Workflow file for this run

name: Run Zero to Nix site tests
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-22.04
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
id-token: "write"
contents: "read"
steps:
- name: git checkout
uses: actions/checkout@v4
- name: Check Nixpkgs input
uses: DeterminateSystems/flake-checker-action@main
with:
fail-mode: true
- name: Restore Lychee cache
uses: actions/cache@v3
with:
path: .lycheecache
key: lychee-link-check
restore-keys: cache-lychee-
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/flakehub-cache-action@main
- name: Run Nix CI suite
run: nix develop --command ci
- name: Check external links
uses: lycheeverse/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: >-
--cache
--verbose
--no-progress
./dist
fail: false
- name: Check templates
run: |
./scripts/check-templates.sh
build-pkg-templates:
runs-on: ${{ matrix.systems.runner }}
needs: test
permissions:
id-token: "write"
contents: "read"
strategy:
matrix:
systems:
- nix-system: "aarch64-darwin"
runner: "macos-latest-xlarge"
- nix-system: "x86_64-darwin"
runner: "macos-13-large"
- nix-system: "x86_64-linux"
runner: "ubuntu-22.04"
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/flakehub-cache-action@main
- name: Build packages in pkg templates
run: ./scripts/build-pkg-templates.sh