@@ -2,238 +2,19 @@ name: continuous-integration
2
2
3
3
# syntax https://help.github.com/en/articles/workflow-syntax-for-github-actions
4
4
on :
5
- # Run at 2am every night.
6
- schedule :
7
- - cron : ' 0 2 * * *'
8
5
pull_request :
9
6
branches :
10
7
- ' *'
11
8
push :
12
9
branches :
13
10
- master
14
- jobs :
15
- windows38 :
16
- runs-on : windows-latest
17
-
18
- steps :
19
- - uses : actions/checkout@v1
20
-
21
- - name : Install Python packages
22
- uses : actions/setup-python@v2
23
- with :
24
- python-version : ' 3.8'
25
-
26
- - name : Install numpy
27
- # Need numpy to use SWIG numpy typemaps.
28
- run : python -m pip install numpy==1.20
29
-
30
- - uses : conda-incubator/setup-miniconda@v2
31
- with :
32
- auto-update-conda : true
33
- miniconda-version : " latest"
34
- - name : Install conda-build
35
- run : conda install conda-build
36
-
37
- - name : Conda build
38
- run : |
39
- chdir $env:GITHUB_WORKSPACE
40
- conda build .
41
-
42
- - name : upload artifact
43
- uses : actions/upload-artifact@v2
44
- with :
45
- name : win64-opensim-4.4-py38np120.tar.bz2
46
- path : C:/Miniconda3/envs/test/conda-bld/win-64/opensim-4.4-py38np120.tar.bz2
47
- windows39 :
48
- runs-on : windows-latest
49
-
50
- steps :
51
- - uses : actions/checkout@v1
52
-
53
- - name : Install Python packages
54
- uses : actions/setup-python@v2
55
- with :
56
- python-version : ' 3.9'
57
-
58
- - name : Install numpy
59
- # Need numpy to use SWIG numpy typemaps.
60
- run : python -m pip install numpy==1.20
61
-
62
- - uses : conda-incubator/setup-miniconda@v2
63
- with :
64
- auto-update-conda : true
65
- miniconda-version : " latest"
66
- - name : Install conda-build
67
- run : conda install conda-build
68
-
69
- - name : Conda build
70
- run : |
71
- chdir $env:GITHUB_WORKSPACE
72
- conda build .
73
-
74
- - name : upload artifact
75
- uses : actions/upload-artifact@v2
76
- with :
77
- name : win64-opensim-4.4-py39np120.tar.bz2
78
- path : C:/Miniconda3/envs/test/conda-bld/win-64/opensim-4.4-py39np120.tar.bz2
79
-
80
- windows310 :
81
- runs-on : windows-latest
82
-
83
- steps :
84
- - uses : actions/checkout@v1
85
-
86
- - name : Install Python packages
87
- uses : actions/setup-python@v2
88
- with :
89
- python-version : ' 3.10'
90
-
91
- - name : Install numpy
92
- # Need numpy to use SWIG numpy typemaps.
93
- run : python -m pip install numpy==1.21.4
94
-
95
- - uses : conda-incubator/setup-miniconda@v2
96
- with :
97
- auto-update-conda : true
98
- miniconda-version : " latest"
99
- - name : Install conda-build
100
- run : conda install conda-build
101
-
102
- - name : Conda build
103
- run : |
104
- chdir $env:GITHUB_WORKSPACE
105
- conda build .
106
-
107
- - name : upload artifact
108
- uses : actions/upload-artifact@v2
109
- with :
110
- name : win64-opensim-4.4-py310np121.tar.bz2
111
- path : C:/Miniconda3/envs/test/conda-bld/win-64/opensim-4.4-py310np121.tar.bz2
112
-
113
- windows311 :
114
- runs-on : windows-latest
115
-
116
- steps :
117
- - uses : actions/checkout@v1
118
-
119
- - name : Install Python packages
120
- uses : actions/setup-python@v2
121
- with :
122
- python-version : ' 3.11'
123
-
124
- - name : Install numpy
125
- # Need numpy to use SWIG numpy typemaps.
126
- run : python -m pip install numpy==1.23
127
-
128
- - uses : conda-incubator/setup-miniconda@v2
129
- with :
130
- auto-update-conda : true
131
- miniconda-version : " latest"
132
- - name : Install conda-build
133
- run : conda install conda-build
134
-
135
- - name : Conda build
136
- run : |
137
- chdir $env:GITHUB_WORKSPACE
138
- conda build .
139
-
140
- - name : upload artifact
141
- uses : actions/upload-artifact@v2
142
- with :
143
- name : win64-opensim-4.4-py311np123.tar.bz2
144
- path : C:/Miniconda3/envs/test/conda-bld/win-64/opensim-4.4-py311np123.tar.bz2
145
-
146
- ubuntu38 :
147
- runs-on : ubuntu-20.04
148
-
149
- steps :
150
- - uses : actions/checkout@v2
151
- - uses : conda-incubator/setup-miniconda@v2
152
- with :
153
- auto-update-conda : true
154
- python-version : 3.8
155
- channels : conda-forge,defaults
156
- miniconda-version : " latest"
157
-
158
- - name : Install Python packages
159
- uses : actions/setup-python@v4
160
- with :
161
- python-version : ' 3.8'
162
-
163
- - name : Install packages
164
- run : sudo apt-get update && sudo apt-get install --yes build-essential libtool autoconf pkg-config gfortran libopenblas-dev liblapack-dev freeglut3-dev libxi-dev libxmu-dev doxygen python3.8 python3-dev python3-numpy python3-setuptools
165
-
166
- - name : Install SWIG
167
- run : |
168
- mkdir ~/swig-source && cd ~/swig-source
169
- wget https://github.com/swig/swig/archive/refs/tags/rel-4.0.2.tar.gz
170
- tar xzf rel-4.0.2.tar.gz && cd swig-rel-4.0.2
171
- sh autogen.sh && ./configure --prefix=$HOME/swig --disable-ccache
172
- make && make -j4 install
173
-
174
- - name : Install conda-build
175
- run : conda install conda-build
176
-
177
- - name : Conda build
178
- run : |
179
- cd $GITHUB_WORKSPACE/opensim
180
- conda build .
181
-
182
- - name : upload artifact
183
- uses : actions/upload-artifact@v2
184
- with :
185
- name : linux64-opensim-4.4-py38np120.tar.bz2
186
- path : /usr/share/miniconda3/conda-bld/linux-64/opensim-4.4-py38np120.tar.bz2
187
- ubuntu39 :
188
- runs-on : ubuntu-20.04
189
-
190
- steps :
191
- - uses : actions/checkout@v2
192
- - uses : conda-incubator/setup-miniconda@v2
193
- with :
194
- auto-update-conda : true
195
- python-version : 3.9
196
- channels : conda-forge,defaults
197
- miniconda-version : " latest"
198
-
199
- - name : Install Python packages
200
- uses : actions/setup-python@v4
201
- with :
202
- python-version : ' 3.9'
203
-
204
- - name : Install numpy
205
- # Need numpy to use SWIG numpy typemaps.
206
- run : python3 -m pip install numpy==1.20.2
207
11
208
- - name : Install packages
209
- run : sudo apt-get update && sudo apt-get install --yes build-essential libtool autoconf pkg-config gfortran libopenblas-dev liblapack-dev freeglut3-dev libxi-dev libxmu-dev doxygen python3 python3-dev python3-numpy python3-setuptools
210
-
211
- - name : Install SWIG
212
- run : |
213
- mkdir ~/swig-source && cd ~/swig-source
214
- wget https://github.com/swig/swig/archive/refs/tags/rel-4.0.2.tar.gz
215
- tar xzf rel-4.0.2.tar.gz && cd swig-rel-4.0.2
216
- sh autogen.sh && ./configure --prefix=$HOME/swig --disable-ccache
217
- make && make -j4 install
218
-
219
- - name : Install conda-build
220
- run : conda install conda-build
221
-
222
- - name : Conda build
223
- run : |
224
- cd $GITHUB_WORKSPACE/opensim
225
- conda build .
226
-
227
- - name : upload artifact
228
- uses : actions/upload-artifact@v2
229
- with :
230
- name : linux64-opensim-4.4-py39np120.tar.bz2
231
- path : /usr/share/miniconda3/conda-bld/linux-64/opensim-4.4-py39np120.tar.bz2
12
+ jobs :
232
13
ubuntu310 :
233
14
runs-on : ubuntu-20.04
234
15
235
16
steps :
236
- - uses : actions/checkout@v2
17
+ - uses : actions/checkout@v4
237
18
- uses : conda-incubator/setup-miniconda@v2
238
19
with :
239
20
auto-update-conda : true
@@ -248,62 +29,16 @@ jobs:
248
29
249
30
- name : Install numpy
250
31
# Need numpy to use SWIG numpy typemaps.
251
- run : python3 -m pip install numpy==1.21
252
-
253
- - name : Install packages
254
- run : sudo apt-get update && sudo apt-get install --yes build-essential libtool autoconf pkg-config gfortran libopenblas-dev liblapack-dev freeglut3-dev libxi-dev libxmu-dev doxygen python3 python3-dev python3-numpy python3-setuptools
255
-
256
- - name : Install SWIG
257
- run : |
258
- mkdir ~/swig-source && cd ~/swig-source
259
- wget https://github.com/swig/swig/archive/refs/tags/rel-4.0.2.tar.gz
260
- tar xzf rel-4.0.2.tar.gz && cd swig-rel-4.0.2
261
- sh autogen.sh && ./configure --prefix=$HOME/swig --disable-ccache
262
- make && make -j4 install
263
-
264
- - name : Install conda-build
265
- run : conda install conda-build
266
-
267
- - name : Conda build
268
- run : |
269
- cd $GITHUB_WORKSPACE/opensim
270
- conda build .
271
-
272
- - name : upload artifact
273
- uses : actions/upload-artifact@v2
274
- with :
275
- name : linux64-opensim-4.4-py310np121.tar.bz2
276
- path : /usr/share/miniconda3/conda-bld/linux-64/opensim-4.4-py310np121.tar.bz2
277
-
278
- ubuntu311 :
279
- runs-on : ubuntu-20.04
280
-
281
- steps :
282
- - uses : actions/checkout@v2
283
- - uses : conda-incubator/setup-miniconda@v2
284
- with :
285
- auto-update-conda : true
286
- python-version : ' 3.11'
287
- channels : conda-forge,defaults
288
- miniconda-version : " latest"
289
-
290
- - name : Install Python packages
291
- uses : actions/setup-python@v4
292
- with :
293
- python-version : ' 3.11'
294
-
295
- - name : Install numpy
296
- # Need numpy to use SWIG numpy typemaps.
297
- run : python3 -m pip install numpy==1.23
32
+ run : python3 -m pip install numpy==1.25
298
33
299
34
- name : Install packages
300
35
run : sudo apt-get update && sudo apt-get install --yes build-essential libtool autoconf pkg-config gfortran libopenblas-dev liblapack-dev freeglut3-dev libxi-dev libxmu-dev doxygen python3 python3-dev python3-numpy python3-setuptools
301
36
302
37
- name : Install SWIG
303
38
run : |
304
39
mkdir ~/swig-source && cd ~/swig-source
305
- wget https://github.com/swig/swig/archive/refs/tags/rel-4.0.2 .tar.gz
306
- tar xzf rel-4.0.2 .tar.gz && cd swig-rel-4.0.2
40
+ wget https://github.com/swig/swig/archive/refs/tags/v4.1.1 .tar.gz
41
+ tar xzf v4.1.1 .tar.gz && cd swig-4.1.1
307
42
sh autogen.sh && ./configure --prefix=$HOME/swig --disable-ccache
308
43
make && make -j4 install
309
44
@@ -316,10 +51,10 @@ jobs:
316
51
conda build .
317
52
318
53
- name : upload artifact
319
- uses : actions/upload-artifact@v2
54
+ uses : actions/upload-artifact@v4
320
55
with :
321
- name : linux64-opensim-4.4-py311np123 .tar.bz2
322
- path : /usr/share/miniconda3/conda-bld/linux-64/opensim-4.4-py311np123 .tar.bz2
56
+ name : linux64-opensim-4.5.99-py310np125 .tar.bz2
57
+ path : /usr/share/miniconda3/conda-bld/linux-64/opensim-4.5.99-py310np125 .tar.bz2
323
58
324
59
style :
325
60
name : Style
0 commit comments