-
Notifications
You must be signed in to change notification settings - Fork 23
50 lines (48 loc) · 1.5 KB
/
test_macos.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
name: macOS
on:
push:
branches:
- master
paths-ignore:
- 'docs/**'
- '.github/workflows/**'
- '!.github/workflows/test_macos.yml'
pull_request:
workflow_dispatch:
jobs:
macOS:
runs-on: macos-13
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install gtest
run: |
brew install googletest
- name: Install dependencies
run: |
# sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.15.pkg -target /
brew update
brew upgrade || true
brew install --cask xquartz
brew install udunits openmotif maven
brew install swig
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.7/clang+llvm-15.0.7-x86_64-apple-darwin21.0.tar.xz
tar -xvf clang+llvm-15.0.7-x86_64-apple-darwin21.0.tar.xz
- name: Build Trick
run: |
export MAKEFLAGS=-j4
./configure --with-llvm=${GITHUB_WORKSPACE}/clang+llvm-15.0.7-x86_64-apple-darwin21.0
make
- name: Test
run: |
cd share/trick/trickops/
python3 -m venv .venv && source .venv/bin/activate && pip3 install -r requirements.txt
export MAKEFLAGS=-j4
cd ../../../; make test
- name: Upload Tests
uses: actions/[email protected]
if: success() || failure() # run this step even if previous step failed
with:
name: Trick_macos
path: trick_test/*.xml
retention-days: 1