-
Notifications
You must be signed in to change notification settings - Fork 1
71 lines (64 loc) · 2.13 KB
/
macos.yml
File metadata and controls
71 lines (64 loc) · 2.13 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
60
61
62
63
64
65
66
67
68
69
70
71
# reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
# workflow name
name: macOS CI
# events that trigger workflow
on: [push, pull_request]
# default settings that apply to all jobs in workflow
defaults:
# default settings that apply to all run steps in workflow
run:
shell: bash
# jobs run in parallel by default
# each job runs in a fresh instance of the virtual runner environments
# each step of a job runs in its own process in the runner environment
# a matrix allows creating multiple jobs with different configurations while using one job definition (same steps)
jobs:
# unique job ID
ci:
# skip running the job if '[ci skip]' or '[skip ci]' is placed in the commit message
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
# job name
name: ${{ matrix.config.name }}
# virtual runner environments
runs-on: ${{ matrix.config.os }}
strategy:
# prevent one failing matrix job from cancelling the rest that are in-progress
fail-fast: false
matrix:
config:
# default config
- {
name: macos-latest-cc-alias,
os: macos-latest,
cc: cc,
cxx: c++
}
- {
name: macos-latest-gcc-alias,
os: macos-latest,
cc: gcc,
cxx: g++
}
- {
name: macos-latest-clang-alias,
os: macos-latest,
cc: clang,
cxx: clang++
}
# set environment variables for all steps in this job
env:
CC: ${{ matrix.config.cc }}
CXX: ${{ matrix.config.cxx }}
# sequential steps of this job...
steps:
- name: Checkout
# reference: https://github.com/marketplace/actions/checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Build
run: ./scripts/dev/build/unix-makefiles/dev-build-all.sh --no-pause
- name: Test
run: |
./scripts/dev/test/unix-makefiles/run-internal-tests.sh --no-pause
./scripts/dev/test/unix-makefiles/run-external-tests.sh --no-pause