mirror of
https://github.com/fafhrd91/actix-net
synced 2024-12-05 02:11:56 +01:00
46 lines
998 B
YAML
46 lines
998 B
YAML
name: CI (Windows-mingw)
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
push:
|
|
branches:
|
|
- master
|
|
- '1.0'
|
|
|
|
jobs:
|
|
build_and_test:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
version:
|
|
- stable
|
|
- nightly
|
|
|
|
name: ${{ matrix.version }} - x86_64-pc-windows-gnu
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install ${{ matrix.version }}
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: ${{ matrix.version }}-x86_64-pc-windows-gnu
|
|
profile: minimal
|
|
override: true
|
|
|
|
- name: Install MSYS2
|
|
uses: msys2/setup-msys2@v2
|
|
|
|
- name: Install packages
|
|
run: |
|
|
msys2 -c 'pacman -Sy --noconfirm pacman'
|
|
msys2 -c 'pacman --noconfirm -S base-devel pkg-config'
|
|
|
|
- name: check build
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: check
|
|
args: --workspace --bins --examples --tests
|