fix: summoner spell cooldown should be f64 #98
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
branches: [ master ] | |
env: | |
CARGO_INCREMENTAL: 0 | |
name: test | |
jobs: | |
test: | |
name: unit + integration tests (${{ matrix.runner }}, ${{ matrix.toolchain }}, ${{ matrix.target }}, ${{ matrix.async-feature }}) | |
runs-on: ${{ matrix.runner }} | |
strategy: | |
matrix: | |
toolchain: [1.65.0, stable, beta, nightly] | |
runner: [ubuntu-latest, macos-latest] | |
target: [x86_64-unknown-linux-gnu, x86_64-unknown-linux-musl, x86_64-apple-darwin] | |
async-feature: [async,async-rustls] | |
exclude: | |
# don't run async for musl builds | |
- target: x86_64-unknown-linux-musl | |
async-feature: async | |
# don't run async-rustls on macOS to limit parallel macOS jobs | |
- runner: macos-latest | |
async-feature: async-rustls | |
# don't run when target <-> runner pair is invalid | |
- target: x86_64-apple-darwin | |
runner: ubuntu-latest | |
- target: x86_64-unknown-linux-gnu | |
runner: macos-latest | |
- target: x86_64-unknown-linux-musl | |
runner: macos-latest | |
steps: | |
- if: matrix.target == 'x86_64-unknown-linux-musl' | |
name: Add musl dependencies | |
run: | | |
set -ex | |
sudo apt-get update | |
sudo apt-get install -y musl-tools | |
- uses: actions/checkout@v3 | |
- id: toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
targets: ${{ matrix.target }} | |
components: rustfmt | |
- name: Cache Dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: Check formatting | |
run: cargo fmt --all -- --check | |
- name: Build tests | |
run: cargo test --no-default-features --features "sync image ${{ matrix.async-feature }}" --target ${{ matrix.target }} --no-run --lib | |
- name: Test | |
run: | | |
cargo test --no-default-features --features "sync image ${{ matrix.async-feature }}" --target ${{ matrix.target }} --lib | |
cargo test --no-default-features --features "sync image ${{ matrix.async-feature }}" --target ${{ matrix.target }} --doc |