Merge branch 'ore_master_into_ore-github' into 'master' #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C/C++ MacOS | |
on: | |
push: | |
branches: [master] | |
tags: | |
- 'v*' | |
release: | |
types: [published] | |
pull_request: | |
branches: [master] | |
types: [ready_for_review, opened, synchronize, reopened] | |
paths: | |
- .github/workflows/macos_ARM64_build.yaml | |
- ./App/** | |
- ./OREAnalytics/** | |
- '!./OREAnalytics/doc/**' | |
- ./OREData/** | |
- '!./OREData/doc/**' | |
- ./ORETest/** | |
- ./QuantExt/** | |
- '!./QuantExt/doc/**' | |
- CMakeLists.txt | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: macos-11 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: get QuantLib | |
run: | | |
git submodule update --init | |
- name: Install Boost | |
run: | | |
curl -O -L https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1_80_0.tar.gz | |
tar xfz boost_1_80_0.tar.gz | |
cd boost_1_80_0 | |
./bootstrap.sh | |
./b2 architecture=arm address-model=64 -s NO_LZMA=1 -s NO_ZSTD=1 abi=aapcs install | |
- name: cmake configure and build | |
run: | | |
mkdir build | |
cd build | |
cmake .. -DCMAKE_OSX_ARCHITECTURES=arm64 -DORE_USE_ZLIB=ON -DBUILD_SHARED_LIBS=false -DORE_BUILD_DOC=OFF -DORE_BUILD_EXAMPLES=OFF -DORE_BUILD_TESTS=OFF -DORE_BUILD_APP=ON -DQL_BUILD_BENCHMARK=OFF -DQL_BUILD_EXAMPLES=OFF -DQL_BUILD_TEST_SUITE=OFF -DQL_ENABLE_SESSIONS=ON -DCMAKE_BUILD_TYPE=Release .. | |
cmake --build . -j4 | |
cmake --install . | |
- name: Save executables as artifacts | |
if: startsWith(github.ref, 'refs/tags/v') | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ore-macos-arm64 | |
path: /Users/runner/work/Engine/Engine/build/App/ore |