|
8 | 8 | - master |
9 | 9 |
|
10 | 10 | 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} |
20 | 16 | steps: |
21 | | - - uses: actions/checkout@v2 |
22 | | - |
23 | | - - uses: actions/setup-python@v2 |
| 17 | + - uses: msys2/setup-msys2@v2 |
24 | 18 | 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 |
26 | 23 |
|
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 |
45 | 25 |
|
46 | 26 | - name: Build and install |
47 | 27 | run: pip install --verbose . |
|
0 commit comments