Skip to content

Commit 3bdb1d6

Browse files
committed
Try building on windows
1 parent 61286b4 commit 3bdb1d6

File tree

1 file changed

+25
-12
lines changed

1 file changed

+25
-12
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ 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}
17+
1218

1319
jobs:
1420
lint:
@@ -65,7 +71,9 @@ jobs:
6571
os: ["ubuntu-latest"]
6672
include:
6773
- os: "macos-latest"
68-
python-version: 3.8
74+
python-version: 3.6
75+
- os: "windows-latest"
76+
python-version: 3.6
6977
steps:
7078
- uses: actions/[email protected]
7179
with:
@@ -80,8 +88,11 @@ jobs:
8088
run: sudo apt install yasm
8189
if: runner.os == 'Linux'
8290
- name: Install build dependencies (Macos)
83-
run: brew install yasm automake autoconf
91+
run: brew install nasm automake autoconf
8492
if: runner.os == 'macOS'
93+
- name: install build dependencies (Windows)
94+
run: choco install nasm
95+
if: runner.os == 'Windows'
8596
- name: Run tests
8697
run: tox -e py3
8798
- name: Upload coverage report
@@ -92,21 +103,23 @@ jobs:
92103
needs: lint
93104
strategy:
94105
matrix:
95-
python-version:
96-
- 3.6
97-
os: ["ubuntu-20.04"]
106+
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
98107
steps:
99108
- uses: actions/[email protected]
100109
with:
101110
submodules: recursive
102-
- name: Set up Python ${{ matrix.python-version }}
103-
uses: actions/setup-python@v2.2.1
111+
- name: Install miniconda.
112+
uses: conda-incubator/setup-miniconda@v2.0.1 # https://github.com/conda-incubator/setup-miniconda.
104113
with:
105-
python-version: ${{ matrix.python-version }}
106-
- name: Install isal
107-
run: sudo apt-get install libisal-dev
108-
- name: Install tox and upgrade setuptools and pip
109-
run: pip install --upgrade tox setuptools pip
114+
channels: conda-forge,bioconda,defaults
115+
- name: Install requirements (universal)
116+
run: conda install nasm isa-l python tox
117+
- name: Install requirements (unix)
118+
run: conda install make automake autoconf libtool
119+
if: runner.os != 'Windows'
120+
- name: install requirements (Windows)
121+
if: runner.os == 'Windows'
122+
run: conda install vs2019_win-64
110123
- name: Run tests (dynamic link)
111124
run: tox -e py3
112125
env:

0 commit comments

Comments
 (0)