Skip to content

Commit

Permalink
Add workflows for cmake build on Mac and Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Oct 15, 2020
1 parent eaf9aa9 commit ecad7d5
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/cmake-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CMake build on OS X
on: workflow_dispatch
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Setup
run: |
brew install boost
- name: Compile
env:
CXXFLAGS: -O2 -stdlib=libc++ -mmacosx-version-min=10.9
run: |
cmake .
make -j 2
- name: Test
run: |
./test-suite/quantlib-test-suite --log_level=message
21 changes: 21 additions & 0 deletions .github/workflows/cmake-win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CMake build on Windows
on: workflow_dispatch
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup
run: |
echo "::set-env name=BOOST_ROOT::$env:BOOST_ROOT_1_72_0"
echo "::set-env name=BOOST_INCLUDEDIR::${{ env.BOOST_ROOT }}\boost\include"
echo "::set-env name=BOOST_LIBRARYDIR::${{ env.BOOST_ROOT }}\lib"
- name: Compile
env:
CXXFLAGS: -O2
run: |
cmake .
cmake --build . --config Release
- name: Test
run: |
.\test-suite\Release\quantlib-test-suite --log_level=message

0 comments on commit ecad7d5

Please sign in to comment.