Skip to content

Commit eaa021a

Browse files
farahkhashmanpcaspers
authored andcommitted
workflows for public repo
1 parent f055581 commit eaa021a

6 files changed

Lines changed: 42 additions & 32 deletions

File tree

.github/workflows/build_macosx86.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
uses: actions/checkout@v4
1212
with:
1313
submodules: recursive
14-
token: ${{ secrets.ORG_ACTIONS_ACCESS }}
1514
#- name: get QuantLib
1615
# run: |
1716
# git submodule update --init --recursive

.github/workflows/build_windows.yaml

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,30 @@ jobs:
1111
name: building
1212
runs-on: windows-2022
1313
strategy:
14+
fail-fast: false
1415
matrix:
1516
include:
16-
- arch: x86
17-
platform: Win32
18-
boost-lib: 32
1917
- arch: AMD64
2018
platform: x64
2119
boost-lib: 64
2220
steps:
2321
- uses: actions/checkout@v4
2422
with:
2523
submodules: recursive
26-
token: ${{ secrets.ORG_ACTIONS_ACCESS }}
27-
#- name: get QuantLib and QuantLib-SWIG
28-
# run: |
29-
# git submodule update --init --recursive
24+
- name: uninstall SWIG 4.1.1
25+
run: |
26+
choco uninstall swig
27+
- name: install SWIG (4.3.0)
28+
run: |
29+
curl -L -o swigwin-4.3.0.zip https://sourceforge.net/projects/swig/files/swigwin/swigwin-4.3.0/swigwin-4.3.0.zip
30+
Expand-Archive -Path swigwin-4.3.0.zip -DestinationPath $env:GITHUB_WORKSPACE
31+
echo "$env:GITHUB_WORKSPACE\swigwin-4.3.0" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
32+
cd swigwin-4.3.0
33+
.\swig.exe -version
34+
- name: check
35+
run: |
36+
swig -version
37+
swig -help
3038
- name: zlib
3139
run: |
3240
$Url = "https://www.zlib.net/zlib131.zip"
@@ -48,7 +56,7 @@ jobs:
4856
cmake ..
4957
- name: Set up Boost
5058
run: |
51-
$Url = "https://archives.boost.io/release/1.80.0/binaries/boost_1_80_0-msvc-14.2-${{ matrix.boost-lib }}.exe"
59+
$Url = "https://archives.boost.io/release/1.80.0/binaries/boost_1_80_0-msvc-14.3-${{ matrix.boost-lib }}.exe"
5260
(New-Object System.Net.WebClient).DownloadFile($Url, "$env:TEMP\boost.exe")
5361
Start-Process -Wait -FilePath "$env:TEMP\boost.exe" "/SILENT","/SP-","/SUPPRESSMSGBOXES","/DIR=C:\local\boost"
5462
choco install -y ninja
@@ -60,31 +68,34 @@ jobs:
6068
SET ORE_DIR=%cd%
6169
SET ORE=%cd%
6270
SET ZLIB_ROOT=C:\local\zlib-1.3.1
71+
SET ZLIB_INCLUDE_DIR=C:\local\zlib-1.3.1
6372
SET Eigen3_DIR=C:\local\eigen-3.4.0
6473
mkdir build
6574
cd build
6675
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Vc\Auxiliary\Build\vcvarsall.bat" ${{ matrix.arch }} -vcvars_ver=14.2 || exit 1
67-
cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release -DQL_BUILD_EXAMPLES=false -DQL_BUILD_TEST_SUITE=false -DQL_BUILD_BENCHMARK=false -DQL_ENABLE_SESSIONS=true -DORE_BUILD_DOC=false -DORE_BUILD_SWIG=false -DZLIB_LIBRARY=C:\local\zlib-1.3.1\build\Release\zlib.lib -DBOOST_INCLUDEDIR=C:\local\boost -DBOOST_LIBRARYDIR=C:\local\boost\lib${{ matrix.boost-lib }}-msvc-14.2 -L
76+
cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release -DQL_BUILD_EXAMPLES=false -DQL_BUILD_TEST_SUITE=false -DQL_BUILD_BENCHMARK=false -DQL_ENABLE_SESSIONS=true -DORE_BUILD_DOC=false -DORE_BUILD_SWIG=false -DZLIB_LIBRARY=C:\local\zlib-1.3.1\build\Release\zlib.lib -DBOOST_INCLUDEDIR=C:\local\boost -DBOOST_LIBRARYDIR=C:\local\boost\lib${{ matrix.boost-lib }}-msvc-14.3 -L
6877
cmake --build . -j 2 --verbose
6978
- name: Wrap ORE-SWIG for Python Wheels
7079
run: |
80+
SET BOOST=C:\local\boost
81+
SET Boost_ROOT=C:\local\boost
7182
SET BOOST_INCLUDEDIR=C:\local\boost
72-
SET BOOST_LIBRARYDIR=C:\local\boost\lib${{ matrix.boost-lib }}-msvc-14.2
73-
SET BOOST_LIB64=C:\local\boost\lib${{ matrix.boost-lib }}-msvc-14.2
74-
SET BOOST_LIB32=C:\local\boost\lib${{ matrix.boost-lib }}-msvc-14.2
83+
SET BOOST_LIBRARYDIR=C:\local\boost\lib${{ matrix.boost-lib }}-msvc-14.3
84+
SET BOOST_LIB64=C:\local\boost\lib${{ matrix.boost-lib }}-msvc-14.3
85+
SET BOOST_LIB32=C:\local\boost\lib${{ matrix.boost-lib }}-msvc-14.3
7586
cd ${{ github.workspace }}\ORE-SWIG
7687
python setup.py wrap
7788
- name: Build ORE Wheels
7889
uses: pypa/cibuildwheel@v2.22.0
7990
env:
8091
BOOST: C:\local\boost
81-
BOOST_LIB64: C:\local\boost\lib${{ matrix.boost-lib }}-msvc-14.2
82-
BOOST_LIB32: C:\local\boost\lib${{ matrix.boost-lib }}-msvc-14.2
92+
BOOST_LIB64: C:\local\boost\lib${{ matrix.boost-lib }}-msvc-14.3
93+
BOOST_LIB32: C:\local\boost\lib${{ matrix.boost-lib }}-msvc-14.3
8394
ORE: ${{ github.workspace }}
8495
ORE_DIR: ${{ github.workspace }}
8596
ORE_STATIC_RUNTIME: 1
8697
ORE_USE_ZLIB: 1
87-
CIBW_SKIP: cp36-* cp37-*
98+
CIBW_SKIP: cp36-*
8899
#CIBW_BUILD: cp37-win_amd64
89100
#CIBW_BUILD: cp38-win32
90101
#CIBW_BUILD: cp37-*
@@ -93,7 +104,7 @@ jobs:
93104
with:
94105
package-dir: ${{ github.workspace }}\ORE-SWIG
95106
- name: Save wheels as artifacts
96-
if: startsWith(github.ref, 'refs/tags/v')
107+
#if: startsWith(github.ref, 'refs/tags/v')
97108
uses: actions/upload-artifact@v4
98109
with:
99110
name: wheels-windows-${{ matrix.arch }}

.github/workflows/linux_manylinux_wheels_01.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
uses: actions/checkout@v4
1212
with:
1313
submodules: recursive
14-
token: ${{ secrets.ORG_ACTIONS_ACCESS }}
1514
#- name: get QuantLib Submodules
1615
# run: |
1716
# git submodule update --init --recursive
@@ -63,6 +62,7 @@ jobs:
6362
with:
6463
package-dir: ${{ github.workspace }}/ORE-SWIG
6564
- name: Save wheels as artifacts
65+
if: always()
6666
uses: actions/upload-artifact@v4
6767
with:
6868
name: wheels-linux-manylinux-x86_64

.github/workflows/linux_manylinux_wheels_02.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
uses: actions/checkout@v4
1212
with:
1313
submodules: recursive
14-
token: ${{ secrets.ORG_ACTIONS_ACCESS }}
1514
#- name: get QuantLib
1615
# run: |
1716
# git submodule update --init --recursive
@@ -70,6 +69,7 @@ jobs:
7069
with:
7170
package-dir: ${{ github.workspace }}/ORE-SWIG
7271
- name: Save wheels as artifacts
72+
if: always()
7373
uses: actions/upload-artifact@v4
7474
with:
7575
name: wheels-linux-manylinux-x86_64

.github/workflows/macos_ARM64_build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: macos-14
11+
runs-on: macos-13
1212
steps:
1313
- uses: actions/checkout@v4
1414
with:
@@ -53,7 +53,7 @@ jobs:
5353
CIBW_SKIP: cp36-*
5454
#CIBW_BUILD: cp311-macosx_arm64
5555
CIBW_ARCHS_MACOS: arm64
56-
CXXFLAGS: -std=c++17 -g0 -O3
56+
CXXFLAGS: -std=c++17 -g0 -O3 -mmacosx-version-min=13.7
5757
CIBW_BUILD_VERBOSITY: 2
5858
CIBW_REPAIR_WHEEL_COMMAND_MACOS: >
5959
DYLD_LIBRARY_PATH=/usr/local/lib delocate-listdeps {wheel} &&

ORE-SWIG/Wheels/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# ore-wheels
22

3-
| | macOS Intel | macOS Apple Silicon | Windows 64bit | Windows 32bit | manylinux x86_64 |
3+
| | macOS Intel | macOS Apple Silicon | Windows 64bit | manylinux x86_64 |
44
|----------------|----|-----|-----|-----|----|
5-
| CPython 3.7 || N/A | N/A | N/A ||
6-
| CPython 3.8 |||| ||
7-
| CPython 3.9 |||| ||
8-
| CPython 3.10 |||| ||
9-
| CPython 3.11 |||| ||
10-
| CPython 3.12 ||||| |
11-
| PyPy 3.7 v7.3 || N/A || N/A | N/A |
12-
| PyPy 3.8 v7.3 || N/A || N/A | N/A |
13-
| PyPy 3.9 v7.3 || N/A || N/A | N/A |
14-
| PyPy 3.10 v7.3 || N/A || N/A | N/A |
5+
| CPython 3.7 || N/A | N/A ||
6+
| CPython 3.8 |||||
7+
| CPython 3.9 |||||
8+
| CPython 3.10 |||||
9+
| CPython 3.11 |||||
10+
| CPython 3.12 |||||
11+
| PyPy 3.7 v7.3 || N/A || N/A |
12+
| PyPy 3.8 v7.3 || N/A || N/A |
13+
| PyPy 3.9 v7.3 || N/A || N/A |
14+
| PyPy 3.10 v7.3 || N/A || N/A |
1515

1616
<sup>¹ PyPy is only supported for manylinux wheels, not musllinux.</sup><br>

0 commit comments

Comments
 (0)