2021-01-29 00:48:18 +00:00
|
|
|
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:
|
2022-11-22 19:03:03 +00:00
|
|
|
workflow_dispatch:
|
2020-11-10 19:14:35 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
macOS:
|
2024-04-25 15:17:40 +00:00
|
|
|
runs-on: macos-13
|
2020-11-10 19:14:35 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2024-04-25 15:17:40 +00:00
|
|
|
uses: actions/checkout@v3
|
2020-11-10 19:14:35 +00:00
|
|
|
- name: Install gtest
|
|
|
|
run: |
|
2022-08-11 20:10:29 +00:00
|
|
|
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 /
|
2021-01-27 23:18:06 +00:00
|
|
|
brew install --cask xquartz
|
2024-02-15 19:36:05 +00:00
|
|
|
brew install udunits openmotif maven
|
2024-04-25 15:17:40 +00:00
|
|
|
brew install swig
|
|
|
|
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.7/clang+llvm-15.0.7-x86_64-apple-darwin21.0.tar.xz
|
|
|
|
tar -xvf clang+llvm-15.0.7-x86_64-apple-darwin21.0.tar.xz
|
2020-11-10 19:14:35 +00:00
|
|
|
- name: Build Trick
|
|
|
|
run: |
|
|
|
|
export MAKEFLAGS=-j4
|
2024-04-25 15:17:40 +00:00
|
|
|
./configure --with-llvm=${GITHUB_WORKSPACE}/clang+llvm-15.0.7-x86_64-apple-darwin21.0
|
2020-11-10 19:14:35 +00:00
|
|
|
make
|
2022-11-17 21:43:29 +00:00
|
|
|
- name: Test
|
2020-11-10 19:14:35 +00:00
|
|
|
run: |
|
2022-11-17 21:43:29 +00:00
|
|
|
cd share/trick/trickops/
|
|
|
|
python3 -m venv .venv && source .venv/bin/activate && pip3 install -r requirements.txt
|
2020-11-10 19:14:35 +00:00
|
|
|
export MAKEFLAGS=-j4
|
2022-11-17 21:43:29 +00:00
|
|
|
cd ../../../; make test
|
2022-11-22 19:03:03 +00:00
|
|
|
- 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
|