-
Notifications
You must be signed in to change notification settings - Fork 48
60 lines (48 loc) · 1.7 KB
/
macos-latest.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
name: macOS latest
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master, devel ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
mirror: http://mirrors.ocf.berkeley.edu/qt/
- name: Download cisstNetlib
run: |
cmake -E make_directory ${{github.workspace}}/cisstNetlib-build
git clone https://github.com/jhu-cisst/cisstNetlib ${{github.workspace}}/cisstNetlib-source
- name: Build cisstNetlib
working-directory: ${{github.workspace}}/cisstNetlib-build
run: |
cmake ${{github.workspace}}/cisstNetlib-source -DcisstNetlib_LANGUAGE=C
cmake --build . --config Release
sudo cmake --build . --target install
- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}/build
run: cmake ${{github.workspace}} -DCMAKE_BUILD_TYPE=Release -C ${{github.workspace}}/.github/workflows/cmake-macos-cache.cmake
- name: Build
working-directory: ${{github.workspace}}/build
shell: bash
run: |
source cisstvars.sh
cmake --build . --config Release
- name: Test
working-directory: ${{github.workspace}}/build
shell: bash
run: |
source cisstvars.sh
cisstCommonTests -r
cisstVectorTests -r
cisstNumericalTests -r
cisstOSAbstractionTests -r
cisstParameterTypesTests -r