Skip to content

Add MSRV policy regarding wasm-bindgen #116

Add MSRV policy regarding wasm-bindgen

Add MSRV policy regarding wasm-bindgen #116

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [master]
env:
RUST_BACKTRACE: 1
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Cdebuginfo=0 --deny=warnings"
RUSTDOCFLAGS: "--deny=warnings"
jobs:
fmt:
name: Check Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
components: rustfmt
- name: Check Formatting
run: cargo fmt --all -- --check
tests:
name: Tests
# `raw-window-handle` only has `cfg` guards for Android, so we just run Ubuntu
# and manually test Android
runs-on: ubuntu-latest
strategy:
matrix:
rust_version: ["1.64", "1.73", stable, nightly]
steps:
- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust_version }}
- run: rustup target add wasm32-unknown-unknown
- name: Check documentation
run: cargo doc --no-deps --document-private-items
- uses: taiki-e/install-action@cargo-hack
- name: Run tests
run: cargo hack test --feature-powerset
- name: Run tests for wasm32-unknown-unknown
run: cargo hack check --target wasm32-unknown-unknown --feature-powerset
if: matrix.rust_version != "1.64"

Check failure on line 54 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 54, Col: 13): Unexpected symbol: '"1'. Located at position 24 within expression: matrix.rust_version != "1.64" .github/workflows/ci.yml (Line: 58, Col: 13): Unexpected symbol: '-'. Located at position 21 within expression: matrix.rust_version -= "1.64"
- name: Run tests for wasm32-unknown-unknown
run: cargo hack check --target wasm32-unknown-unknown --feature-powerset --skip wasm-bindgen-0-2
if: matrix.rust_version -= "1.64"