-
Notifications
You must be signed in to change notification settings - Fork 12
90 lines (89 loc) · 2.5 KB
/
ci.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
# SPDX-License-Identifier: Apache-2.0
name: CI
on:
push:
branches: ["*"]
pull_request:
branches: ["main"]
jobs:
build_kat:
strategy:
fail-fast: false
matrix:
external:
- ${{ github.repository_owner != 'pq-code-package' }}
target:
- runner: macos-latest
name: 'MacOS'
arch: 'arm64'
cross-prefix: ' '
cflags: '-DFORCE_AARCH64'
nix-shell: ci
- runner: pqcp-arm64
name: 'ubuntu-latest (aarch64)'
arch: 'aarch64'
cross-prefix: ' '
cflags: '-DFORCE_AARCH64'
nix-shell: 'ci'
- runner: ubuntu-latest
name: 'ubuntu-latest (x86_64, cross)'
arch: 'x86_64'
cross-prefix: 'aarch64-unknown-linux-gnu-'
cflags: '-DFORCE_AARCH64'
nix-shell: 'x86_64-linux-cross-ci'
- runner: ubuntu-latest
name: 'ubuntu-latest (x86_64, native)'
arch: 'x86_64'
cross-prefix: ''
nix-shell: 'ci'
exclude:
- {external: true,
target: {
runner: 'pqcp-arm64',
name: 'ubuntu-latest (aarch64)',
arch: 'aarch64',
cross-prefix: ' ',
cflags: '-DFORCE_AARCH64',
nix-shell: 'ci'
}}
name: Functional tests (${{ matrix.target.name }})
runs-on: ${{ matrix.target.runner }}
steps:
- uses: actions/checkout@v4
- name: functest opt
uses: ./.github/actions/functest
with:
nix-shell: ${{ matrix.target.nix-shell }}
cflags: ${{ matrix.target.cflags }}
cross-prefix: ${{ matrix.target.cross-prefix }}
opt: true
- name: functest non-opt
uses: ./.github/actions/functest
with:
nix-shell: ${{ matrix.target.nix-shell }}
cflags: ${{ matrix.target.cflags }}
cross-prefix: ${{ matrix.target.cross-prefix }}
opt: false
lint:
strategy:
matrix:
system: [ubuntu-latest]
name: Linting
runs-on: ${{ matrix.system }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/lint
with:
nix-shell: ci-linter
cross-prefix: "aarch64-unknown-linux-gnu-"
cbmc:
strategy:
matrix:
system: [macos-latest]
name: CBMC
runs-on: ${{ matrix.system }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/cbmc
with:
nix-shell: ci-cbmc