Skip to content

Commit 82f5e61

Browse files
committed
workflow update
1 parent 6fcba65 commit 82f5e61

7 files changed

Lines changed: 20 additions & 20 deletions

File tree

.github/workflows/build_macosx86.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ jobs:
3636
run: |
3737
pwd
3838
python -m pip install setuptools
39-
cp ORE-SWIG/wheels/oreanalytics-config.macos ORE-SWIG/oreanalytics-config
39+
cp ORE-SWIG/Wheels/oreanalytics-config.macos ORE-SWIG/oreanalytics-config
40+
chmod +x ORE-SWIG/oreanalytics-config
4041
cd ORE-SWIG/OREAnalytics-SWIG/SWIG
4142
chmod +x oreanalytics.i
4243
cd ..
@@ -46,10 +47,10 @@ jobs:
4647
- name: Build Wheels
4748
uses: pypa/cibuildwheel@v2.22.0
4849
env:
49-
CIBW_SKIP: cp36-*
50+
CIBW_SKIP: cp36-* pp*
5051
CIBW_ARCHS_MACOS: x86_64
5152
MACOSX_DEPLOYMENT_TARGET: "13.7"
52-
CXXFLAGS: -std=c++17 -g0 -O3 -mmacosx-version-min=13
53+
CXXFLAGS: -std=c++17 -g0 -O3 -mmacosx-version-min=13.7
5354
CIBW_BUILD_VERBOSITY: 2
5455
CIBW_REPAIR_WHEEL_COMMAND_MACOS: >
5556
DYLD_LIBRARY_PATH=/usr/local/lib delocate-listdeps {wheel} &&

.github/workflows/build_windows.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,8 @@ jobs:
7272
SET Eigen3_DIR=C:\local\eigen-3.4.0
7373
mkdir build
7474
cd build
75-
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Vc\Auxiliary\Build\vcvarsall.bat" ${{ matrix.arch }} -vcvars_ver=14.2 || exit 1
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
77-
cmake --build . -j 2 --verbose
75+
cmake -DORE_BUILD_DOC=OFF -DORE_BUILD_EXAMPLES=OFF -DORE_BUILD_SWIG=false -DORE_BUILD_TESTS=OFF -DORE_BUILD_APP=OFF -DQL_BUILD_BENCHMARK=OFF -DQL_BUILD_EXAMPLES=OFF -DQL_BUILD_TEST_SUITE=OFF -DCMAKE_BUILD_TYPE=Release -DMSVC_LINK_DYNAMIC_RUNTIME=OFF -DORE_USE_ZLIB=ON -DQL_ENABLE_SESSIONS=ON -DZLIB_LIBRARY=C:\local\zlib-1.3.1\build\Release\zlibstatic.lib -DZLIB_INCLUDE_DIR=C:\local\zlib-1.3.1 -G "Visual Studio 17 2022" -A ${{ matrix.platform }} ..
76+
cmake --build . --config Release --verbose
7877
- name: Wrap ORE-SWIG for Python Wheels
7978
run: |
8079
SET BOOST=C:\local\boost

.github/workflows/linux_manylinux_wheels_01.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,13 @@ jobs:
4141
run: |
4242
pwd
4343
cp ORE-SWIG/Wheels/oreanalytics-config.linux ORE-SWIG/oreanalytics-config
44+
chmod +x ORE-SWIG/oreanalytics-config
4445
cd ORE-SWIG/Wheels
4546
chmod +x before_all_linux.sh
4647
- name: Build ORE wheels
4748
uses: pypa/cibuildwheel@v2.22.0
4849
env:
49-
CIBW_BUILD: "*-manylinux*"
50+
CIBW_BUILD: "*-manylinux_x86_64"
5051
CIBW_SKIP: cp*
5152
#CIBW_BUILD: cp37-manylinux_x86_64
5253
#CIBW_BUILD: cp38-manylinux_x86_64

.github/workflows/linux_manylinux_wheels_02.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,13 @@ jobs:
4747
run: |
4848
pwd
4949
cp ORE-SWIG/Wheels/oreanalytics-config.linux ORE-SWIG/oreanalytics-config
50+
chmod +x ORE-SWIG/oreanalytics-config
5051
cd ORE-SWIG/Wheels
5152
chmod +x before_all_linux.sh
5253
- name: Build ORE wheels
5354
uses: pypa/cibuildwheel@v2.22.0
5455
env:
55-
#CIBW_BUILD: "*-manylinux*"
56+
CIBW_BUILD: "*-manylinux_x86_64"
5657
CIBW_SKIP: cp36-* pp*
5758
#CIBW_BUILD: cp39-manylinux_x86_64 cp310-manylinux_x86_64 cp311-manylinux_x86_64
5859
#CIBW_BUILD: cp37-manylinux_x86_64

.github/workflows/macos_ARM64_build.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ jobs:
2727
- name: Install Swig
2828
run: |
2929
sudo brew install swig
30-
swig -version
3130
- name: cmake configure and build
3231
run: |
3332
mkdir build
@@ -40,8 +39,9 @@ jobs:
4039
pwd
4140
cd ORE-SWIG
4241
sudo python -m pip install setuptools
43-
cp ORE-SWIG/wheels/oreanalytics-config.macos ORE-SWIG/oreanalytics-config
44-
cd ORE-SWIG/OREAnalytics-SWIG
42+
cp Wheels/oreanalytics-config.macos oreanalytics-config
43+
chmod +x oreanalytics-config
44+
cd OREAnalytics-SWIG
4545
ls -al
4646
cd SWIG
4747
ls -al

ORE-SWIG/Wheels/README.md

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

33
| | macOS Intel | macOS Apple Silicon | Windows 64bit | manylinux x86_64 |
4-
|----------------|----|-----|-----|-----|----|
4+
|----------------|----|-----|-----|-----|
55
| CPython 3.7 || N/A | N/A ||
66
| CPython 3.8 |||||
77
| CPython 3.9 |||||
88
| CPython 3.10 |||||
99
| CPython 3.11 |||||
1010
| 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 |
15-
16-
<sup>¹ PyPy is only supported for manylinux wheels, not musllinux.</sup><br>
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 |

ORE-SWIG/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ def finalize_options(self):
208208

209209
elif compiler == 'unix':
210210
ql_compile_args = \
211-
os.popen('../oreanalytics-config --cflags').read()[:-1].split()
211+
os.popen('./oreanalytics-config --cflags').read()[:-1].split()
212212
ql_link_args = \
213-
os.popen('../oreanalytics-config --libs').read()[:-1].split()
213+
os.popen('./oreanalytics-config --libs').read()[:-1].split()
214214

215215
self.define += [ (arg[2:],None) for arg in ql_compile_args
216216
if arg.startswith('-D') ]

0 commit comments

Comments
 (0)