-
Notifications
You must be signed in to change notification settings - Fork 7
52 lines (43 loc) · 1.59 KB
/
macos-build.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
name: MacOS
on:
workflow_dispatch
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- { title: "macos" , os: "macos-latest", cc: "clang" , arch: "x64", build_type: "Debug" , defs: "KTHOOK_TEST=ON" }
- { title: "macos" , os: "macos-latest", cc: "clang" , arch: "x64", build_type: "Release", defs: "KTHOOK_TEST=ON" }
name: "${{matrix.title}} (${{matrix.cc}}, ${{matrix.arch}}, ${{matrix.build_type}})"
runs-on: "${{matrix.os}}"
steps:
- name: Check out the repo
uses: actions/checkout@v2
with:
submodules: recursive
path: "source"
- name: "Checkout build-actions"
run: git clone https://github.com/build-actions/build-actions.git build-actions --depth=1
- name: "Python"
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: "Prepare"
run: python build-actions/action.py
--step=prepare
--compiler=${{matrix.cc}}
--architecture=${{matrix.arch}}
- name: "Configure"
run: python build-actions/action.py
--step=configure
--config=source/.github/workflows/build-config.json
--source-dir=source
--compiler=${{matrix.cc}}
--architecture=${{matrix.arch}}
--build-type=${{matrix.build_type}}
--build-defs=${{matrix.defs}}
- name: "Build"
run: python build-actions/action.py --step=build
- name: "Test"
run: python build-actions/action.py --step=test