-
Notifications
You must be signed in to change notification settings - Fork 0
98 lines (78 loc) · 3.32 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: check
on:
pull_request:
branches: [main]
push:
branches: [main]
permissions:
pull-requests: write
checks: write
jobs:
check:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ macos-14 ]
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- 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.treefmt
- name: audit
if: matrix.os == 'ubuntu-latest'
run: nix build -L --no-link --show-trace .#checks.x86_64-linux.audit
- name: lint
if: matrix.os == 'ubuntu-latest'
run: nix build -L --no-link --show-trace .#checks.x86_64-linux.lint
- name: coverage
if: matrix.os == 'ubuntu-latest'
run: nix build -L --out-link coverage-result --show-trace .#checks.x86_64-linux.coverage-report
- name: report coverage
if: matrix.os == 'ubuntu-latest'
uses: 5monkeys/cobertura-action@v13
with:
path: coverage-result/cobertura.xml
minimum_coverage: 60
- name: kairos-contracts x86_64-linux
if: matrix.os == 'ubuntu-latest'
run: nix build -L --no-link --show-trace .#packages.x86_64-linux.kairos-contracts
- name: kairos-contracts x86_64-darwin
if: matrix.os == 'macos-latest'
run: nix build -L --no-link --show-trace .#packages.x86_64-darwin.kairos-contracts
- name: kairos-contracts aarch64-darwin
if: matrix.os == 'macos-14'
run: nix build -L --no-link --show-trace .#packages.aarch64-darwin.kairos-contracts
- name: kairos x86_64-linux
if: matrix.os == 'ubuntu-latest'
run: nix build -L --no-link --show-trace .#packages.x86_64-linux.kairos
- name: kairos aarch64-darwin
if: matrix.os == 'macos-14'
run: nix build -L --no-link --show-trace .#packages.aarch64-darwin.kairos
- name: kairos-tx-no-std x86_64-linux
if: matrix.os == 'ubuntu-latest'
run: nix build -L --no-link --show-trace .#packages.x86_64-linux.kairos-tx-no-std
- name: kairos-tx-no-std aarch64-darwin
if: matrix.os == 'macos-14'
run: nix build -L --no-link --show-trace .#packages.aarch64-darwin.kairos-tx-no-std
- name: kairos-prover x86_64-linux
if: matrix.os == 'ubuntu-latest'
run: nix build -L --no-link --show-trace .#packages.x86_64-linux.kairos-prover
- name: kairos-prover aarch64-darwin
if: matrix.os == 'macos-14'
run: nix build -L --no-link --show-trace .#packages.aarch64-darwin.kairos-prover
- name: kairos-prover x86_64-linux
if: matrix.os == 'ubuntu-latest'
run: nix build -L --no-link --show-trace .#packages.x86_64-linux.kairos-prover
- name: verify-kairos-host-configuration-test x86_64-linux
if: matrix.os == 'ubuntu-latest'
run: nix build -L --no-link --show-trace .#checks.x86_64-linux.verify-kairos-host-configuration-test
- name: kairos-end-to-end-test x86_64-linux
if: matrix.os == 'ubuntu-latest'
run: nix build -L --no-link --show-trace .#checks.x86_64-linux.kairos-end-to-end-test