environment:
RUST_TEST_THREADS: 1
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: macOS
CHANNEL: stable
TARGET: x86_64-apple-darwin
- APPVEYOR_BUILD_WORKER_IMAGE: macOS
CHANNEL: 1.36.0
TARGET: x86_64-apple-darwin
- APPVEYOR_BUILD_WORKER_IMAGE: macOS
CHANNEL: beta TARGET: aarch64-apple-darwin
DISABLE_TESTS: 1
- APPVEYOR_BUILD_WORKER_IMAGE: macOS
CHANNEL: stable
TARGET: aarch64-apple-ios
DISABLE_TESTS: 1
- APPVEYOR_BUILD_WORKER_IMAGE: macOS
CHANNEL: stable
TARGET: x86_64-apple-ios
DISABLE_TESTS: 1
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
CHANNEL: stable
TARGET: x86_64-pc-windows-msvc
BITS: 64
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
CHANNEL: stable
TARGET: i686-pc-windows-msvc
BITS: 32
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
CHANNEL: stable
TARGET: x86_64-pc-windows-gnu
BITS: 64
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
CHANNEL: stable
TARGET: i686-pc-windows-gnu
BITS: 32
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
CHANNEL: 1.36.0
TARGET: x86_64-pc-windows-msvc
BITS: 64
install:
- sh: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain ${CHANNEL} --profile minimal -y
- sh: source $HOME/.cargo/env
- sh: rustup target add ${TARGET}
- cmd: IF "%BITS%" == "32" SET ARCH=i686
- cmd: IF "%BITS%" == "64" SET ARCH=x86_64
- cmd: appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- cmd: rustup-init -yv --default-toolchain %CHANNEL% --profile minimal
- cmd: set PATH=C:\msys64\mingw%BITS%\bin;C:\msys64\usr\bin;%USERPROFILE%\.cargo\bin;%PATH%
- cmd: rustup target add %TARGET%
build_script:
- sh: cargo build --target ${TARGET}
- cmd: cargo build --target %TARGET%
test_script:
- sh: if [[ -n $DISABLE_TESTS ]]; then echo "Skipping tests"; else cargo test --target ${TARGET} --no-fail-fast; fi
- cmd: if defined DISABLE_TESTS (echo "Skipping tests") else (cargo test --target %TARGET% --no-fail-fast)