trick/.github/workflows/test_macos.yml

39 lines
949 B
YAML
Raw Normal View History

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'
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 /
brew install --cask xquartz
2020-11-10 19:14:35 +00:00
brew install llvm swig udunits openmotif maven
- name: Build Trick
run: |
export MAKEFLAGS=-j4
./configure
make
- name: Run tests
run: |
export MAKEFLAGS=-j4
make test