Skip to content

Commit

Permalink
[WIP] CI: test on 32-bit and 64-bit Windows (GNU)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri committed Oct 20, 2020
1 parent 0cee7a8 commit 6ba762a
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 12 deletions.
52 changes: 40 additions & 12 deletions .github/workflows/md5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,36 @@ on:
push:
branches: master

defaults:
run:
working-directory: md5

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
test:
linux:
strategy:
matrix:
include:
# 32-bit Linux/x86
- target: i686-unknown-linux-gnu
platform: ubuntu-latest
toolchain: 1.41.0 # MSRV
deps: sudo apt install gcc-multilib
- target: i686-unknown-linux-gnu
platform: ubuntu-latest
toolchain: stable
deps: sudo apt install gcc-multilib

# 64-bit Linux/x86_64
- target: x86_64-unknown-linux-gnu
platform: ubuntu-latest
toolchain: 1.41.0 # MSRV
deps: true
- target: x86_64-unknown-linux-gnu
platform: ubuntu-latest
toolchain: stable
deps: true

runs-on: ${{ matrix.platform }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: ${{ matrix.deps }}
Expand All @@ -47,10 +47,38 @@ jobs:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
override: true
# NOTE: using `marcopolo/cargo` fork to support the `working-directory` attribute
# See: https://github.com/actions-rs/cargo/pull/59
- uses: marcopolo/cargo@master
- run: cargo test --target ${{ matrix.target }} --release

windows:
strategy:
matrix:
include:
# 32-bit Windows (GNU)
- target: i686-pc-windows-gnu
toolchain: 1.41.0 # MSRV
msystem: MINGW32
- target: i686-pc-windows-gnu
toolchain: stable
msystem: MINGW32

# 64-bit Windows (GNU)
- target: x86_64-pc-windows-gnu
toolchain: 1.41.0 # MSRV
msystem: MINGW64
- target: x86_64-pc-windows-gnu
toolchain: stable
msystem: MINGW64

runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.msystem }}
- uses: actions-rs/toolchain@v1
with:
command: test
working-directory: md5
args: --target ${{ matrix.target }} --release
profile: minimal
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
override: true
- run: cargo test --target ${{ matrix.target }} --release
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6ba762a

Please sign in to comment.