Add windows & osx jobs

This commit is contained in:
Paul Woolcock
2020-09-25 23:54:42 -04:00
parent f25574154e
commit cfe810be4e
2 changed files with 7 additions and 31 deletions
+7 -2
View File
@@ -11,13 +11,18 @@ env:
jobs:
ci:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
rust:
- stable
- beta
- nightly
os:
- ubuntu-latest
- windows-latest
- macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
@@ -36,7 +41,7 @@ jobs:
command: test
args: --features all --verbose
- uses: actions-rs/cargo@v1
if: ${{ matrix.rust == 'nightly' }}
if: ${{ matrix.rust == 'nightly' && matrix.os == 'ubuntu-latest' }}
with:
command: fmt
args: --verbose --all -- --check
-29
View File
@@ -1,29 +0,0 @@
environment:
matrix:
- TARGET: x86_64-pc-windows-msvc
OTHER_TARGET: i686-pc-windows-msvc
MAKE_TARGETS: test-unit-x86_64-pc-windows-msvc
TOOLCHAIN: stable
- TARGET: x86_64-pc-windows-msvc
OTHER_TARGET: i686-pc-windows-msvc
MAKE_TARGETS: test-unit-x86_64-pc-windows-msvc
TOOLCHAIN: beta
- TARGET: x86_64-pc-windows-msvc
OTHER_TARGET: i686-pc-windows-msvc
MAKE_TARGETS: test-unit-x86_64-pc-windows-msvc
TOOLCHAIN: nightly
install:
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain %TOOLCHAIN%
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- rustup target add %OTHER_TARGET%
- rustc -V
- cargo -V
clone_depth: 1
build: false
test_script:
- cargo test --features all