Add windows & osx jobs

master
Paul Woolcock 4 years ago
parent f25574154e
commit cfe810be4e
  1. 9
      .github/workflows/rust.yml
  2. 29
      appveyor.yml

@ -11,13 +11,18 @@ env:
jobs: jobs:
ci: ci:
runs-on: ubuntu-latest runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
rust: rust:
- stable - stable
- beta - beta
- nightly - nightly
os:
- ubuntu-latest
- windows-latest
- macos-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1 - uses: actions-rs/toolchain@v1
@ -36,7 +41,7 @@ jobs:
command: test command: test
args: --features all --verbose args: --features all --verbose
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
if: ${{ matrix.rust == 'nightly' }} if: ${{ matrix.rust == 'nightly' && matrix.os == 'ubuntu-latest' }}
with: with:
command: fmt command: fmt
args: --verbose --all -- --check args: --verbose --all -- --check

@ -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
Loading…
Cancel
Save