-
Notifications
You must be signed in to change notification settings - Fork 0
169 lines (144 loc) · 4.59 KB
/
Copy pathci.yml
File metadata and controls
169 lines (144 loc) · 4.59 KB
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
name: Workflow
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
release:
types: [published]
jobs:
generate_linux:
if: "!contains(github.event.head_commit.message, 'skip ci')"
name: Generate (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest']
steps:
- name: "Install OpenGL"
run: |
sudo apt-get update
sudo apt-get -q -y install libglu1-mesa-dev libgl1-mesa-dev libxi-dev libglfw3-dev libgles2-mesa-dev
- name: "Prepare VM"
run: sudo rm -Rf /home/linuxbrew/
- name: "Clone pyOCCT"
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: "Create env"
uses: mamba-org/setup-micromamba@v2
with:
environment-file: binder/environment.yml
cache-environment: true
- name: "Generate bindings"
shell: micromamba-shell {0}
run: python binder/run.py -c binder/config.txt -o src
- name: "Upload bindings"
uses: actions/upload-artifact@v4
with:
name: pyocct_src_${{ matrix.os }}
path: src
generate_win:
if: "!contains(github.event.head_commit.message, 'skip ci')"
name: Generate (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['windows-latest']
steps:
- name: "Clone pyOCCT"
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: "Create env"
uses: mamba-org/setup-micromamba@v2
with:
environment-file: binder/environment.yml
cache-environment: true
- name: "Generate bindings"
shell: bash -l {0}
run: python binder/run.py -c binder/config.txt -o src
- name: "Upload bindings"
uses: actions/upload-artifact@v4
with:
name: pyocct_src_${{ matrix.os }}
path: src
build_linux:
if: "!contains(github.event.head_commit.message, 'skip ci')"
name: Build (${{ matrix.python-version }}, ${{ matrix.os }})
needs: generate_linux
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest']
python-version: ['3.12', '3.13', '3.14']
steps:
- name: "Install OpenGL"
run: |
sudo apt-get update
sudo apt-get -q -y install libglu1-mesa-dev libgl1-mesa-dev libxi-dev libglfw3-dev libgles2-mesa-dev
- name: "Prepare VM"
run: |
sudo rm -Rf /home/linuxbrew/
echo "$CONDA/bin" >> $GITHUB_PATH
- name: "Clone pyOCCT"
uses: actions/checkout@v3
- name: "Download binding sources"
uses: actions/download-artifact@v4
with:
name: pyocct_src_${{ matrix.os }}
path: src
- name: "Create build env"
uses: mamba-org/setup-micromamba@v2
with:
environment-file: environment.yml
cache-environment: true
- name: "Run conda build"
shell: micromamba-shell {0}
run: boa build ci --python ${{ matrix.python-version }}
- name: "Upload conda package"
uses: actions/upload-artifact@v4
with:
name: pyocct-py${{ matrix.python-version }}_${{ matrix.os }}
path: ~/micromamba/envs/pyocct/conda-bld/linux-64
build_win:
if: "!contains(github.event.head_commit.message, 'skip ci')"
name: Build (${{ matrix.python-version }}, ${{ matrix.os }})
needs: generate_win
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['windows-latest']
python-version: ['3.12', '3.13', '3.14']
steps:
- name: "Clone pyOCCT"
uses: actions/checkout@v3
- name: "Download binding sources"
uses: actions/download-artifact@v4
with:
name: pyocct_src_${{ matrix.os }}
path: src
- name: "Prepare VM"
shell: bash -l {0}
run: |
rm -Rf C:/ProgramData/chocolatey/
rm -Rf C:/Program Files/LLVM
- name: "Create build env"
uses: mamba-org/setup-micromamba@v2
with:
environment-file: environment.yml
cache-environment: true
- name: "Run conda build"
shell: bash -l {0}
run: boa build ci --python ${{ matrix.python-version }} -m ci/conda_build_config.yaml
- name: "Upload conda package"
uses: actions/upload-artifact@v4
with:
name: pyocct-py${{ matrix.python-version }}_${{ matrix.os }}
path: ~/micromamba/envs/pyocct/conda-bld/win-64