Skip to content

Commit 9fb253b

Browse files
committed
Add windows build options
1 parent 88f149a commit 9fb253b

File tree

1 file changed

+21
-18
lines changed

1 file changed

+21
-18
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ on:
99
tags:
1010
- "*"
1111

12+
defaults:
13+
run:
14+
# This is needed for miniconda, see:
15+
# https://github.com/marketplace/actions/setup-miniconda#important.
16+
shell: bash -l {0}
1217

1318
jobs:
1419
lint:
@@ -55,11 +60,6 @@ jobs:
5560
test-static:
5661
needs: lint
5762
runs-on: ${{ matrix.os }}
58-
defaults:
59-
run:
60-
# This is needed for miniconda, see:
61-
# https://github.com/marketplace/actions/setup-miniconda#important.
62-
shell: bash -l {0}
6363
strategy:
6464
matrix:
6565
python-version:
@@ -80,7 +80,7 @@ jobs:
8080
- name: Install miniconda.
8181
uses: conda-incubator/[email protected] # https://github.com/conda-incubator/setup-miniconda.
8282
with:
83-
channels: conda-forge,bioconda,defaults
83+
channels: conda-forge,defaults
8484
- name: Install requirements (MacOS)
8585
run: conda install python=${{ matrix.python-version }} tox make automake autoconf libtool nasm
8686
if: runner.os == 'macOS'
@@ -103,11 +103,6 @@ jobs:
103103
test-dynamic:
104104
runs-on: ${{ matrix.os }}
105105
needs: lint
106-
defaults:
107-
run:
108-
# This is needed for miniconda, see:
109-
# https://github.com/marketplace/actions/setup-miniconda#important.
110-
shell: bash -l {0}
111106
strategy:
112107
matrix:
113108
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
@@ -118,7 +113,7 @@ jobs:
118113
- name: Install miniconda.
119114
uses: conda-incubator/[email protected] # https://github.com/conda-incubator/setup-miniconda.
120115
with:
121-
channels: conda-forge,bioconda,defaults
116+
channels: conda-forge,defaults
122117
- name: Install requirements (universal)
123118
run: conda install isa-l python tox
124119
- name: Set MSVC developer prompt
@@ -135,18 +130,26 @@ jobs:
135130
needs: [lint, package-checks, test-static, test-dynamic]
136131
strategy:
137132
matrix:
138-
os: [ "macos-latest", "ubuntu-latest" ]
133+
os: ["macos-latest", "ubuntu-latest", "windows-latest"]
139134
steps:
140135
- uses: actions/[email protected]
141136
with:
142137
submodules: recursive
143-
- uses: actions/setup-python@v2
144-
name: Install Python
145-
- name: Install cibuildwheel twine
146-
run: python -m pip install cibuildwheel twine
138+
- name: Install miniconda.
139+
uses: conda-incubator/[email protected] # https://github.com/conda-incubator/setup-miniconda.
140+
with:
141+
channels: conda-forge,defaults
147142
- name: Install build dependencies (Macos)
148-
run: brew install yasm automake autoconf
143+
run: conda install nasm automake autoconf python
149144
if: runner.os == 'macOS'
145+
- name: Install build dependencies (Windows)
146+
run: conda install nasm python
147+
if: runner.os == 'Windows'
148+
- name: Set MSVC developer prompt
149+
uses: ilammy/[email protected]
150+
if: runner.os == 'Windows'
151+
- name: Install cibuildwheel twine
152+
run: python -m pip install cibuildwheel twine
150153
- name: Build wheels
151154
run: cibuildwheel --output-dir dist
152155
env:

0 commit comments

Comments
 (0)