-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (39 loc) · 1.26 KB
/
CI.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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