Skip to content

Commit

Permalink
Allow change REPO
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Jun 24, 2024
1 parent fc0ca0a commit b4e2a3b
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,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 master ${{ matrix.abi }}
docker run --rm -e MAKEFLAGS='-j2' -v `pwd`:/io openturns/manylinux2014_x86_64 /io/build-wheels-linux.sh openturns master ${{ matrix.abi }}
- id: getfilename
run: echo "file=$(ls wheelhouse/*.whl)" >> $GITHUB_OUTPUT
- name: Archive
Expand All @@ -43,7 +43,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 master ${{ matrix.abi }}
docker run --rm -e MAKEFLAGS='-j2' -v `pwd`:/io openturns/archlinux-mingw /io/build-wheels-mingw.sh openturns master ${{ matrix.abi }}
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
Expand All @@ -63,7 +63,7 @@ jobs:
- name: Build
env:
MAKEFLAGS: -j3
run: ./build-wheels-macos.sh master ${{ matrix.abi }}
run: ./build-wheels-macos.sh openturns master ${{ matrix.abi }}
- id: getfilename
run: echo "file=$(ls wheelhouse/*.whl)" >> $GITHUB_OUTPUT
- name: Archive
Expand Down
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.23 ${{ matrix.abi }}
docker run --rm -e MAKEFLAGS='-j2' -v `pwd`:/io openturns/manylinux2014_x86_64 /io/build-wheels-linux.sh openturns v1.23 ${{ matrix.abi }}
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
Expand All @@ -35,7 +35,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.23 ${{ matrix.abi }}
docker run --rm -e MAKEFLAGS='-j2' -v `pwd`:/io openturns/archlinux-mingw /io/build-wheels-mingw.sh openturns v1.23 ${{ matrix.abi }}
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
Expand All @@ -59,7 +59,7 @@ jobs:
- name: Build
env:
MAKEFLAGS: -j3
run: ./build-wheels-macos.sh v1.23 ${{ matrix.abi }}
run: ./build-wheels-macos.sh openturns v1.23 ${{ matrix.abi }}
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
Expand Down
9 changes: 5 additions & 4 deletions build-wheels-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

set -e -x

test $# = 2 || exit 1
test $# = 3 || exit 1

GIT_VERSION="$1"
ABI="$2"
REPO="$1"
GIT_VERSION="$2"
ABI="$3"

PLATFORM=manylinux2014_x86_64
PYTAG=${ABI/m/}
Expand All @@ -17,7 +18,7 @@ SCRIPTPATH=`dirname "$SCRIPT"`
export PATH=/opt/python/${PYTAG}-${ABI}/bin/:$PATH

cd /tmp
git clone --depth 1 -b ${GIT_VERSION} https://github.com/openturns/openturns.git
git clone --depth 1 -b ${GIT_VERSION} https://github.com/${REPO}/openturns.git
cd openturns
VERSION=`cat VERSION`

Expand Down
9 changes: 5 additions & 4 deletions build-wheels-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

set -e -x

test $# = 2 || exit 1
test $# = 3 || exit 1

GIT_VERSION="$1"
ABI="$2"
REPO="$1"
GIT_VERSION="$2"
ABI="$3"

env
uname -a
Expand All @@ -27,7 +28,7 @@ SCRIPT=`greadlink -f "$0"`
SCRIPTPATH=`dirname "$SCRIPT"`

cd /tmp
git clone --depth 1 -b ${GIT_VERSION} https://github.com/openturns/openturns.git
git clone --depth 1 -b ${GIT_VERSION} https://github.com/${REPO}/openturns.git
cd openturns
git diff
VERSION=`cat VERSION`
Expand Down
9 changes: 5 additions & 4 deletions build-wheels-mingw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

set -e -x

test $# = 2 || exit 1
test $# = 3 || exit 1

GIT_VERSION="$1"
ABI="$2"
REPO="$1"
GIT_VERSION="$2"
ABI="$3"

ARCH=x86_64
MINGW_PREFIX=/usr/${ARCH}-w64-mingw32
Expand All @@ -16,7 +17,7 @@ PYVER=${PYTAG:2}
TAG=${PYTAG}-${ABI}-${PLATFORM}

cd /tmp
git clone --depth 1 -b ${GIT_VERSION} https://github.com/openturns/openturns.git
git clone --depth 1 -b ${GIT_VERSION} https://github.com/${REPO}/openturns.git
cd openturns
VERSION=`cat VERSION`

Expand Down

0 comments on commit b4e2a3b

Please sign in to comment.