Skip to content

Commit 27eb6c1

Browse files
author
Farah Khashman
committed
MacOS x86 workflow
1 parent 3b82c42 commit 27eb6c1

2 files changed

Lines changed: 53 additions & 1 deletion

File tree

.github/workflows/macos_ARM64_build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: C/C++ MacOS
1+
name: C/C++ MacOS ARM64
22

33
on:
44
push:
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: C/C++ MacOS x86
2+
3+
on:
4+
push:
5+
branches: [master]
6+
tags:
7+
- 'v*'
8+
release:
9+
types: [published]
10+
pull_request:
11+
branches: [master]
12+
types: [ready_for_review, opened, synchronize, reopened]
13+
paths:
14+
- .github/workflows/macos_ARM64_build.yaml
15+
- ./App/**
16+
- ./OREAnalytics/**
17+
- '!./OREAnalytics/doc/**'
18+
- ./OREData/**
19+
- '!./OREData/doc/**'
20+
- ./ORETest/**
21+
- ./QuantExt/**
22+
- '!./QuantExt/doc/**'
23+
- CMakeLists.txt
24+
workflow_dispatch:
25+
26+
jobs:
27+
build:
28+
runs-on: macos-11
29+
steps:
30+
- uses: actions/checkout@v4
31+
- name: get QuantLib
32+
run: |
33+
git submodule update --init
34+
- name: Install Boost
35+
run: |
36+
curl -O -L https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1_80_0.tar.gz
37+
tar xfz boost_1_80_0.tar.gz
38+
cd boost_1_80_0
39+
./bootstrap.sh
40+
./b2 toolset=clang-darwin target-os=darwin architecture=x86 cxxflags="-arch x86_64" cflags="-arch x86_64" linkflags="-arch x86_64" abi=sysv binary-format=mach-o install
41+
- name: cmake configure and build
42+
run: |
43+
mkdir build
44+
cd build
45+
cmake .. -DCMAKE_OSX_ARCHITECTURES=x86_64 -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 ..
46+
cmake --build . -j4
47+
cmake --install .
48+
- name: Save executables as artifacts
49+
uses: actions/upload-artifact@v4
50+
with:
51+
name: ore-macos-x86
52+
path: /Users/runner/work/Engine/Engine/build/App/ore

0 commit comments

Comments
 (0)