From cfe810be4ee7898cf5cfe39c8af9932f75ea3c59 Mon Sep 17 00:00:00 2001 From: Paul Woolcock Date: Fri, 25 Sep 2020 17:03:21 -0400 Subject: [PATCH] Add windows & osx jobs --- .github/workflows/rust.yml | 9 +++++++-- appveyor.yml | 29 ----------------------------- 2 files changed, 7 insertions(+), 31 deletions(-) delete mode 100644 appveyor.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9fe45a3..f26ac8a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 6087033..0000000 --- a/appveyor.yml +++ /dev/null @@ -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