Skip to content

Commit

Permalink
add mingw CI
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Jul 10, 2022
1 parent 9c67fa7 commit a90317a
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -350,3 +350,40 @@ jobs:
CIBW_BUILD_VERBOSITY: 1
with:
package-dir: examples/namespace_package

test-mingw:
runs-on: windows-latest
name: ${{ matrix.python-version }} mingw-${{ matrix.arch }}
strategy:
fail-fast: false
matrix:
include: [
{ msystem: MINGW64, arch: x86_64, path: mingw64, rust_target: x86_64-pc-windows-gnu },
{ msystem: MINGW32, arch: i686, path: mingw32, rust_target: i686-pc-windows-gnu }
]
steps:
- uses: actions/checkout@v2
- name: Install MSys2 and dependencies
uses: msys2/setup-msys2@v2
with:
update: true
msystem: ${{ matrix.msystem }}
install: >-
mingw-w64-${{ matrix.arch }}-python
mingw-w64-${{ matrix.arch }}-python-pip
mingw-w64-${{ matrix.arch }}-openssl
mingw-w64-${{ matrix.arch }}-toolchain
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: ${{ matrix.rust-target }}

- name: Install test dependencies
shell: msys2 {0}
run: python -m pip install --upgrade nox

- name: Test examples
shell: msys2 {0}
run: nox -s test-examples

0 comments on commit a90317a

Please sign in to comment.