This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (51 loc) · 1.61 KB
/
check.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: check
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
check:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-14]
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@v2
- uses: cachix/cachix-action@v12
with:
name: risc0pkgs
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: System Info
run: |
uname -a
nix --version
- name: format
if: matrix.os == 'ubuntu-latest'
run: nix build -L --no-link --show-trace .#checks.x86_64-linux.format
- name: r0vm
if: matrix.os == 'ubuntu-latest'
run: nix build -L --no-link --show-trace .#packages.x86_64-linux.r0vm
- name: template
if: matrix.os == 'ubuntu-latest'
run: |
git config --global init.defaultBranch main
./scripts/use-template.sh
- name: r0vm
if: matrix.os == 'macos-latest'
run: nix build -L --no-link --show-trace .#packages.x86_64-darwin.r0vm
- name: template
if: matrix.os == 'macos-latest'
run: |
git config --global init.defaultBranch main
./scripts/use-template.sh
- name: r0vm
if: matrix.os == 'macos-14'
run: nix build -L --no-link --show-trace .#packages.aarch64-darwin.r0vm
- name: template
if: matrix.os == 'macos-14'
run: |
git config --global init.defaultBranch main
./scripts/use-template.sh