-
Notifications
You must be signed in to change notification settings - Fork 109
53 lines (51 loc) · 1.44 KB
/
windows-build.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
name: PyOptSparse Windows Actions
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-windows:
runs-on: windows-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
numpy_version: ["1.21.6", "1.25.2", "2.0.0"]
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: "3.10"
channels: conda-forge,defaults
channel-priority: strict
activate-environment: pyos-build
environment-file: .github/environment.yml
- name: Install libpgmath
shell: bash -l {0}
run: |
conda activate pyos-build
conda install libpgmath
- name: Build and install pyoptsparse
shell: cmd /C CALL {0}
run: |
call conda activate pyos-build
set IPOPT_DIR=%CONDA_PREFIX%\Library
set CC=cl
set FC=flang
set CC_LD=link
python -m build -n -x .
pip install --no-deps --no-index --find-links dist pyoptsparse
- name: Install runtime numpy ${{ matrix.numpy_version }}
shell: bash -l {0}
run: |
conda activate pyos-build
conda install numpy==${{ matrix.numpy_version }}
- name: Run tests
shell: bash -l {0}
run: |
conda activate pyos-build
cd tests
testflo --pre_announce -v -n 1 .