Skip to content

Commit

Permalink
Update for 1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Jan 9, 2024
1 parent 50b3c46 commit 937d6e5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ cirrus_wheels_macos_arm64_task:
PYVER: 3.12
ABI: cp312
build_script:
./build-wheels-macos.sh v1.22rc1 ${ABI}
./build-wheels-macos.sh v1.22 ${ABI}
upload_script:
- ls -l wheelhouse/*.whl
- if test -n "${CIRRUS_TAG}"; then python${PYVER} -m pip install twine && python${PYVER} -m twine upload wheelhouse/*.whl; fi
6 changes: 3 additions & 3 deletions .github/workflows/stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Build
run: |
docker pull openturns/manylinux2014_x86_64
docker run --rm -e MAKEFLAGS='-j2' -v `pwd`:/io openturns/manylinux2014_x86_64 /io/build-wheels-linux.sh v1.22rc1 ${{ matrix.abi }}
docker run --rm -e MAKEFLAGS='-j2' -v `pwd`:/io openturns/manylinux2014_x86_64 /io/build-wheels-linux.sh v1.22 ${{ matrix.abi }}
- uses: conda-incubator/setup-miniconda@v2
with:
auto-activate-base: true
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Build
run: |
docker pull openturns/archlinux-mingw
docker run --rm -e MAKEFLAGS='-j2' -v `pwd`:/io openturns/archlinux-mingw /io/build-wheels-mingw.sh v1.22rc1 ${{ matrix.abi }}
docker run --rm -e MAKEFLAGS='-j2' -v `pwd`:/io openturns/archlinux-mingw /io/build-wheels-mingw.sh v1.22 ${{ matrix.abi }}
- uses: conda-incubator/setup-miniconda@v2
with:
auto-activate-base: true
Expand All @@ -61,7 +61,7 @@ jobs:
- name: Build
env:
MAKEFLAGS: -j3
run: ./build-wheels-macos.sh v1.22rc1 ${{ matrix.abi }}
run: ./build-wheels-macos.sh v1.22 ${{ matrix.abi }}
- id: getfilename
run: echo "file=$(ls wheelhouse/*.whl)" >> $GITHUB_OUTPUT
- name: Archive wheel
Expand Down
6 changes: 3 additions & 3 deletions build-wheels-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ NEW_LIBOT=`basename openturns.libs/libOT-*.so*`
cd -

# modules
for pkgnamever in otfftw-0.14 otmixmod-0.15 otmorris-0.15 otrobopt-0.13 otsvm-0.13
for pkgnamever in otfftw-0.14 otmixmod-0.16 otmorris-0.15 otrobopt-0.13 otsvm-0.13
do
pkgname=`echo ${pkgnamever} | cut -d "-" -f1`
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}.post4
# ./setVersionNumber.sh ${pkgver}
pkgver=${pkgver}.post1
./setVersionNumber.sh ${pkgver}
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=$PWD/install -DCMAKE_INSTALL_LIBDIR=lib \
-DUSE_SPHINX=OFF -DBUILD_DOC=OFF \
Expand Down
7 changes: 4 additions & 3 deletions build-wheels-mingw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ grep -q dev <<< "${VERSION}" && exit 0
sudo pacman -Sy --noconfirm mingw-w64-fftw mingw-w64-agrum # for otfftw, otagrum

# modules
for pkgnamever in otfftw-0.14 otmixmod-0.15 otmorris-0.15 otrobopt-0.13 otsvm-0.13
for pkgnamever in otfftw-0.14 otmixmod-0.16 otmorris-0.15 otrobopt-0.13 otsvm-0.13
do
pkgname=`echo ${pkgnamever} | cut -d "-" -f1`
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}.post4
# ./setVersionNumber.sh ${pkgver}
pkgver=${pkgver}.post1
./setVersionNumber.sh ${pkgver}
PREFIX=$PWD/install
${ARCH}-w64-mingw32-cmake \
-DCMAKE_INSTALL_PREFIX=${PREFIX} \
Expand All @@ -78,6 +78,7 @@ do
cp -v ${PREFIX}/bin/*.dll ${PREFIX}/Lib/site-packages/${pkgname}
if test "${pkgname}" = "otfftw"; then cp -v ${MINGW_PREFIX}/bin/libfftw*.dll ${PREFIX}/Lib/site-packages/${pkgname}; fi
if test "${pkgname}" = "otagrum"; then cp -v ${MINGW_PREFIX}/bin/libagrum.dll ${PREFIX}/Lib/site-packages/${pkgname}; fi
if test "${pkgname}" = "otmixmod"; then cp -v ${MINGW_PREFIX}/bin/libmixmod.dll ${PREFIX}/Lib/site-packages/${pkgname}; fi
cd ${PREFIX}/Lib/site-packages
python /io/write_RECORD.py ${pkgname} ${pkgver}
zip -r ${pkgname}-${pkgver}-${TAG}.whl ${pkgname} ${pkgname}-${pkgver}.dist-info
Expand Down

0 comments on commit 937d6e5

Please sign in to comment.