-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (48 loc) · 2.1 KB
/
Copy pathc-cpp.yml
File metadata and controls
59 lines (48 loc) · 2.1 KB
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
name: C/C++ CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: macos-26
steps:
- uses: actions/checkout@v4
# arm64 is the primary target. x86_64 is built too, as the compile baseline
# and reference implementation it is (README, "Status"), but it cannot be
# executed on Apple Silicon.
- name: make ARCH=arm64
run: make ARCH=arm64
# The one assertion worth making about a build.
#
# Everything lands in out/ under a name with no architecture in it, so
# before the Makefile grew a per-architecture stamp, `make ARCH=x86_64`
# after `make ARCH=arm64` found the binary newer than every source, printed
# "Nothing to be done", and left the previous architecture's build in place.
# This job did exactly that and went green having compiled arm64 twice. A
# green tick that means nothing is worse than a red one.
- name: Verify the binary is arm64
run: file out/nabi | grep -q 'arm64'
- name: make check (arm64)
run: make ARCH=arm64 check
- name: make ARCH=x86_64
run: make ARCH=x86_64
- name: Verify the binary is x86_64
run: file out/nabi | grep -q 'x86_64'
- name: make check (x86_64)
run: make ARCH=x86_64 check
# Two things this deliberately does not do.
#
# `make distcheck` is not run, because this repository has no such target.
# mSL/FHS and mSL/ProcFS build installer payloads and check them; NABI installs
# from `make install` and has nothing to verify a payload against, so the step
# only ever produced "No rule to make target 'distcheck'".
#
# Nothing here needs a working hypervisor. Every test that does - the aarch64
# backend unit tests, the end-to-end smoke suite, the guest suite - asks the
# host whether it can create a VM and skips with a reason when it cannot, which
# a runner that is itself a VM generally cannot. What still runs everywhere is
# the compile of both architectures, the instruction decoder, the arena and the
# checkpoint format. If this machine ever does gain a usable hypervisor, the
# rest starts running with no change here.