Skip to content

Commit 1de1dc6

Browse files
committed
test mingw64 build
1 parent 3574dd8 commit 1de1dc6

File tree

1 file changed

+11
-31
lines changed

1 file changed

+11
-31
lines changed

.github/workflows/pip.yml

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,40 +8,20 @@ on:
88
- master
99

1010
jobs:
11-
build:
12-
strategy:
13-
fail-fast: false
14-
matrix:
15-
platform: [windows-latest, macos-latest, ubuntu-latest]
16-
python-version: ["2.7", "3.5", "3.8", "3.9"]
17-
18-
runs-on: ${{ matrix.platform }}
19-
11+
mingw64:
12+
runs-on: windows-latest
13+
defaults:
14+
run:
15+
shell: msys2 {0}
2016
steps:
21-
- uses: actions/checkout@v2
22-
23-
- uses: actions/setup-python@v2
17+
- uses: msys2/setup-msys2@v2
2418
with:
25-
python-version: ${{ matrix.python-version }}
19+
update: true
20+
install: >-
21+
mingw-w64-x86_64-gcc
22+
mingw-w64-x86_64-python-pip
2623
27-
- name: Add requirements
28-
run: python -m pip install --upgrade wheel setuptools
29-
30-
# Eventually Microsoft might have an action for setting up
31-
# MSVC, but for now, this action works:
32-
- name: Prepare compiler environment for Windows 🐍 2.7
33-
if: matrix.python-version == 2.7 && runner.os == 'Windows'
34-
uses: ilammy/msvc-dev-cmd@v1
35-
with:
36-
arch: x64
37-
38-
# This makes two environment variables available in the following step(s)
39-
- name: Set Windows 🐍 2.7 environment variables
40-
if: matrix.python-version == 2.7 && runner.os == 'Windows'
41-
shell: bash
42-
run: |
43-
echo "DISTUTILS_USE_SDK=1" >> $GITHUB_ENV
44-
echo "MSSdk=1" >> $GITHUB_ENV
24+
- uses: actions/checkout@v2
4525

4626
- name: Build and install
4727
run: pip install --verbose .

0 commit comments

Comments
 (0)