Add note on Nix and open source #34
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: 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/magic-nix-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-12" | |
- nix-system: "x86_64-linux" | |
runner: "ubuntu-22.04" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@main | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Build packages in pkg templates | |
run: ./scripts/build-pkg-templates.sh |