Merge pull request #33 from flokli/add-fonts #76
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: | |
pull_request: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
spec: | |
- { os: ubuntu-22.04, platform: linux, arch: x64 } | |
- { os: ubuntu-22.04, platform: linux, arch: aarch64 } | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v27 | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- run: nix-build nix -A fossbeamer | |
# These are cross-builds if executed on x64, native builds on aarch64 | |
# Disabled for now as they get rate-limited by github, and builds without any cache take too long. | |
# - run: nix-build nix -A machine.toplevel | |
# - run: nix-build nix -A machine.sdImage | |
checks: | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v27 | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Install env | |
run: nix-env -iA env -f nix/ | |
- name: Check treefmt | |
run: treefmt --fail-on-change | |
- name: Check crate2nix | |
run: crate2nix generate --all-features && treefmt Cargo.nix && git diff --exit-code Cargo.nix |