Skip to content

Commit

Permalink
Update for 1.24
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Nov 25, 2024
1 parent 0d8b90b commit a18a94b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
- name: Build
run: |
docker pull openturns/manylinux2014_x86_64
docker run --rm -e MAKEFLAGS='-j4' -v `pwd`:/io openturns/manylinux2014_x86_64 /io/build-wheels-linux.sh openturns v1.24rc1
docker run --rm -e MAKEFLAGS='-j4' -v `pwd`:/io openturns/manylinux2014_x86_64 /io/build-wheels-linux.sh openturns v1.24
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
Expand All @@ -29,7 +29,7 @@ jobs:
- name: Build
run: |
docker pull openturns/archlinux-mingw
docker run --rm -e MAKEFLAGS='-j4' -v `pwd`:/io openturns/archlinux-mingw /io/build-wheels-mingw.sh openturns v1.24rc1
docker run --rm -e MAKEFLAGS='-j4' -v `pwd`:/io openturns/archlinux-mingw /io/build-wheels-mingw.sh openturns v1.24
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
- name: Build
env:
MAKEFLAGS: -j3
run: ./build-wheels-macos.sh openturns v1.24rc1 14
run: ./build-wheels-macos.sh openturns v1.24 14
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
Expand Down
4 changes: 2 additions & 2 deletions build-wheels-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ do
pkgver=`echo ${pkgnamever} | cut -d "-" -f2`
cd /tmp
git clone --depth 1 -b v${pkgver} https://github.com/openturns/${pkgname}.git && cd ${pkgname}
# pkgver=${pkgver}.post1
# ./utils/setVersionNumber.sh ${pkgver}
pkgver=${pkgver}.post1
./utils/setVersionNumber.sh ${pkgver}
cmake -DCMAKE_INSTALL_PREFIX=$PWD/build/install -DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_UNITY_BUILD=ON \
-DSWIG_COMPILE_FLAGS="-O1 -DPy_LIMITED_API=0x03090000" \
Expand Down
6 changes: 4 additions & 2 deletions build-wheels-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ TAG=${PYTAG}-abi3-${PLATFORM}
PYVER=${PYTAG:2:1}.${PYTAG:3}

# setup brew dependencies
brew install pkgconf --overwrite --force
brew install --overwrite coreutils openblas swig boost python@${PYVER} tbb nlopt cminpack ceres-solver bison flex hdf5 ipopt primesieve spectra pagmo libxml2 nanoflann cuba
export PATH=/Library/Frameworks/Python.framework/Versions/${PYVER}/bin:$PATH
python${PYVER} -m pip install delocate --break-system-packages
Expand Down Expand Up @@ -95,8 +96,9 @@ do
pkgver=`echo ${pkgnamever} | cut -d "-" -f2`
cd /tmp
git clone --depth 1 -b v${pkgver} https://github.com/openturns/${pkgname}.git && cd ${pkgname}
# pkgver=${pkgver}.post1
# ./utils/setVersionNumber.sh ${pkgver}
pkgver=${pkgver}.post1
curl -o utils/setVersionNumber.sh https://raw.githubusercontent.com/openturns/ottemplate/refs/heads/master/utils/setVersionNumber.sh
./utils/setVersionNumber.sh ${pkgver}
cmake -LAH -DCMAKE_INSTALL_PREFIX=$PWD/build/install \
-DCMAKE_UNITY_BUILD=ON \
-DSWIG_COMPILE_FLAGS="-O1 -DPy_LIMITED_API=0x03090000" \
Expand Down
4 changes: 2 additions & 2 deletions build-wheels-mingw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ do
pkgver=`echo ${pkgnamever} | cut -d "-" -f2`
cd /tmp
git clone --depth 1 -b v${pkgver} https://github.com/openturns/${pkgname}.git && cd ${pkgname}
# pkgver=${pkgver}.post1
# ./utils/setVersionNumber.sh ${pkgver}
pkgver=${pkgver}.post1
./utils/setVersionNumber.sh ${pkgver}
PREFIX=$PWD/install
${ARCH}-w64-mingw32-cmake \
-DCMAKE_INSTALL_PREFIX=${PREFIX} \
Expand Down

0 comments on commit a18a94b

Please sign in to comment.