Merge pull request #259 from sci-visus/enabling-idx2-3 #660
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-openvisus | |
on: [push] | |
env: | |
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} | |
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | |
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }} | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }} | |
jobs: | |
build-windows-cpython: | |
runs-on: windows-2022 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ '3.9' , '3.10', '3.11', '3.12'] | |
steps: | |
- name: git clone OpenVisus | |
uses: actions/checkout@v2 | |
- name: install cpython | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Compile (cpython) | |
shell: bash | |
run: | | |
set -ex | |
export PYTHON_VERSION=${{ matrix.python-version }} | |
source ./scripts/cpython.windows.sh | |
build-windows-conda: | |
runs-on: windows-2022 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ '3.9', '3.10' ] # TODO: getting conflicts '3.11', '3.12' | |
steps: | |
- name: git clone OpenVisus | |
uses: actions/checkout@v2 | |
- name: Compile (cpython) | |
shell: bash | |
run: | | |
set -ex | |
export PYTHON_VERSION=${{ matrix.python-version }} | |
source ./scripts/conda.windows.sh | |
build-macos-cpython: | |
runs-on: macos-11 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ '3.9' , '3.10', '3.11', '3.12' ] | |
steps: | |
- name: git clone OpenVisus | |
uses: actions/checkout@v2 | |
- name: install cpython | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Compile (cpython) | |
shell: bash | |
run: | | |
set -ex | |
export PYTHON_VERSION=${{ matrix.python-version }} | |
source ./scripts/cpython.macos.sh | |
build-macos-conda: | |
runs-on: macos-11 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ '3.9', '3.10' ] # todo '3.11', '3.12' getting conflicts | |
steps: | |
- name: git clone OpenVisus | |
uses: actions/checkout@v2 | |
- name: Compile (cpython) | |
shell: bash | |
run: | | |
set -ex | |
export PYTHON_VERSION=${{ matrix.python-version }} | |
source ./scripts/conda.macos.sh | |
build-ubuntu: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ '3.9', '3.10'] # , TODO '3.11' and 3.12 WE DON"T HAVE IT IN THE DOCKER IMAGE | |
steps: | |
- name: git clone OpenVisus | |
uses: actions/checkout@v2 | |
- name: Compile cpython | |
shell: bash | |
run: | | |
set -ex | |
export PYTHON_VERSION=${{ matrix.python-version }} | |
export DOCKER_IMAGE=visus/portable-linux-binaries_x86_64:4.1 | |
# choose an old version, otherwise it will try to build numpy from scratch | |
export NUMPY_VERSION=1.21.6 | |
if [[ "${{ matrix.python-version }}" == "3.6" ]] ; then | |
export NUMPY_VERSION=1.19.5 | |
fi | |
source scripts/ubuntu.sh | |