-
Notifications
You must be signed in to change notification settings - Fork 25
72 lines (61 loc) · 1.84 KB
/
amd64_darwin.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
---
name: AMD64_DARWIN
on:
workflow_call:
inputs:
os:
default: macos-latest
required: false
type: string
release:
default: https://github.com/modula3/cm3/releases/download/d5.11.4
required: false
type: string
bootstrap:
default: cm3-boot-AMD64_LINUX-d5.11.4.tar.xz
required: false
type: string
jobs:
build-and-test:
runs-on: ${{ inputs.os }}
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
backend: [c, gcc]
env:
CM3_TARGET: AMD64_DARWIN
steps:
- name: Install prerequisites
run: |
brew update
brew install libxaw libxft ninja xquartz
- name: Define install location
run: |
echo CM3_INSTALL="$(pwd)/../install" >> $GITHUB_ENV
- name: Install bootstrap release
run: |
mkdir ../bootstrap ../build
curl --location --silent "${{ inputs.release }}/${{ inputs.bootstrap }}" | gtar Jxf - --directory=../bootstrap --strip-components=1
cmake -S ../bootstrap -B ../build -G Ninja -DCMAKE_INSTALL_PREFIX="${CM3_INSTALL}"
cmake --build ../build
cmake --install ../build
echo "${CM3_INSTALL}/bin" >> $GITHUB_PATH
- name: Fetch sources
uses: actions/checkout@v2
- name: Build all the things
run: |
scripts/concierge.py full-upgrade --backend "${{ matrix.backend }}" all
- name: Run compiler validation suite
continue-on-error: true
run: |
cm3 -DHTML
working-directory: m3-sys/m3tests
- name: Generate test report
uses: dorny/test-reporter@v1
with:
name: ${{ format('m3tests ({0}, {1})', env.CM3_TARGET, matrix.backend) }}
fail-on-error: false
max-annotations: 49
path: m3-sys/m3tests/m3tests-results.xml
reporter: java-junit