trick/.github/workflows/test_macos.yml

37 lines
852 B
YAML
Raw Normal View History

name: macOS
2020-11-10 19:14:35 +00:00
on:
push:
2022-10-06 21:06:16 +00:00
branches:
- master
2020-11-10 19:14:35 +00:00
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: |
brew install googletest
2020-11-10 19:14:35 +00:00
- name: Install dependencies
run: |
# sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.15.pkg -target /
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