mirror of
https://github.com/nasa/trick.git
synced 2024-12-22 14:32:24 +00:00
42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
name: macOS
|
|
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- '.github/workflows/**'
|
|
- '!.github/workflows/test_macos.yml'
|
|
pull_request:
|
|
|
|
jobs:
|
|
macOS:
|
|
python-version: [3.6, 3.7, 3.8, 3.9, pypy2, pypy3]
|
|
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
|
|
brew install llvm@11 swig udunits openmotif maven
|
|
brew link llvm llvm@11
|
|
- name: Build Trick
|
|
run: |
|
|
export MAKEFLAGS=-j4
|
|
./configure
|
|
make
|
|
- name: Run tests
|
|
run: |
|
|
export MAKEFLAGS=-j4
|
|
make test
|