-
Notifications
You must be signed in to change notification settings - Fork 18
121 lines (98 loc) · 3.07 KB
/
build-openvisus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
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