Skip to content

Commit 0936d26

Browse files
authored
Merge pull request #45 from pycompression/fixstaticbuild
Rework static install and build not to use conda
2 parents 7339b39 + e4b3acd commit 0936d26

File tree

1 file changed

+26
-28
lines changed

1 file changed

+26
-28
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ 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-
1812
jobs:
1913
lint:
2014
runs-on: ubuntu-20.04
@@ -77,22 +71,24 @@ jobs:
7771
- uses: actions/[email protected]
7872
with:
7973
submodules: recursive
80-
- name: Install miniconda.
81-
uses: conda-incubator/setup-miniconda@v2.0.1 # https://github.com/conda-incubator/setup-miniconda.
74+
- name: Set up Python ${{ matrix.python-version }}
75+
uses: actions/setup-python@v2.2.1
8276
with:
83-
channels: conda-forge,defaults
84-
- name: Install requirements (MacOS)
85-
run: conda install python=${{ matrix.python-version }} tox make automake autoconf libtool nasm
86-
if: runner.os == 'macOS'
87-
- name: Install requirements (Linux)
88-
run: conda install python=${{ matrix.python-version }} tox make automake autoconf libtool yasm # Yasm in pypa/manylinux images.
77+
python-version: ${{ matrix.python-version }}
78+
- name: Install tox and upgrade setuptools
79+
run: pip install --upgrade tox setuptools
80+
- name: Install build dependencies (Linux) # Yasm in pypa/manylinux images.
81+
run: sudo apt install yasm
8982
if: runner.os == 'Linux'
90-
- name: install requirements (Windows)
91-
run: conda install python=${{ matrix.python-version }} tox nasm
92-
if: runner.os == 'Windows'
83+
- name: Install build dependencies (Macos)
84+
run: brew install nasm automake autoconf
85+
if: runner.os == 'macOS'
9386
- name: Set MSVC developer prompt
9487
uses: ilammy/[email protected]
9588
if: runner.os == 'Windows'
89+
- name: Install nasm (Windows)
90+
uses: ilammy/[email protected]
91+
if: runner.os == 'Windows'
9692
- name: Run tests
9793
run: tox -e py3
9894
- name: Upload coverage report
@@ -102,6 +98,11 @@ jobs:
10298
# dynamically to the conda isa-l package.
10399
test-dynamic:
104100
runs-on: ${{ matrix.os }}
101+
defaults:
102+
run:
103+
# This is needed for miniconda, see:
104+
# https://github.com/marketplace/actions/setup-miniconda#important.
105+
shell: bash -l {0}
105106
needs: lint
106107
strategy:
107108
matrix:
@@ -135,22 +136,19 @@ jobs:
135136
- uses: actions/[email protected]
136137
with:
137138
submodules: recursive
138-
- name: Install miniconda.
139-
uses: conda-incubator/[email protected] # https://github.com/conda-incubator/setup-miniconda.
140-
with:
141-
channels: conda-forge,defaults
142-
- name: Install build dependencies (Linux)
143-
run: conda install python
144-
if: runner.os == 'Linux'
139+
- uses: actions/setup-python@v2
140+
name: Install Python
141+
- name: Install cibuildwheel twine
142+
run: python -m pip install cibuildwheel twine
145143
- name: Install build dependencies (Macos)
146-
run: conda install nasm automake autoconf python
144+
run: brew install nasm automake autoconf
147145
if: runner.os == 'macOS'
148-
- name: Install build dependencies (Windows)
149-
run: conda install nasm python
150-
if: runner.os == 'Windows'
151146
- name: Set MSVC developer prompt
152147
uses: ilammy/[email protected]
153148
if: runner.os == 'Windows'
149+
- name: Install nasm (Windows)
150+
uses: ilammy/[email protected]
151+
if: runner.os == 'Windows'
154152
- name: Install cibuildwheel twine wheel
155153
run: python -m pip install cibuildwheel twine wheel
156154
- name: Build wheels

0 commit comments

Comments
 (0)