mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 20:57:55 +00:00
fb0a760a71
closes #1404
49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
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-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@master
|
|
|
|
- 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 install --cask xquartz
|
|
brew install swig udunits openmotif maven
|
|
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.6/clang+llvm-14.0.6-x86_64-apple-darwin.tar.xz
|
|
tar -xvf clang+llvm-14.0.6-x86_64-apple-darwin.tar.xz
|
|
- name: Build Trick
|
|
run: |
|
|
export MAKEFLAGS=-j4
|
|
./configure --with-llvm=${GITHUB_WORKSPACE}/clang+llvm-14.0.6-x86_64-apple-darwin
|
|
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/upload-artifact@v3.0.0
|
|
if: success() || failure() # run this step even if previous step failed
|
|
with:
|
|
name: Trick_macos
|
|
path: trick_test/*.xml
|
|
retention-days: 1
|