2021-01-29 00:48:18 +00:00
|
|
|
name: macOS
|
2020-11-10 19:14:35 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- 'docs/**'
|
2021-02-05 05:55:19 +00:00
|
|
|
- '.github/workflows/**'
|
|
|
|
- '!.github/workflows/test_macos.yml'
|
2021-05-27 03:01:10 +00:00
|
|
|
pull_request:
|
2020-11-10 19:14:35 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
macOS:
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@master
|
|
|
|
|
|
|
|
- name: Install gtest
|
|
|
|
run: |
|
|
|
|
wget https://github.com/google/googletest/archive/release-1.8.0.tar.gz
|
|
|
|
tar xzvf release-1.8.0.tar.gz
|
|
|
|
cd googletest-release-1.8.0/googletest
|
|
|
|
cmake .
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
# sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.15.pkg -target /
|
2021-01-27 23:18:06 +00:00
|
|
|
brew install --cask xquartz
|
2021-05-27 02:56:22 +00:00
|
|
|
brew install llvm@11 swig udunits openmotif maven
|
2020-11-10 19:14:35 +00:00
|
|
|
- name: Build Trick
|
|
|
|
run: |
|
|
|
|
export MAKEFLAGS=-j4
|
2022-05-24 16:09:38 +00:00
|
|
|
./configure --with-llvm=/usr/local/opt/llvm@11
|
2020-11-10 19:14:35 +00:00
|
|
|
make
|
|
|
|
- name: Run tests
|
|
|
|
run: |
|
|
|
|
export MAKEFLAGS=-j4
|
|
|
|
make test
|