Implement core::error::Error when std feature is disabled
#265
Workflow file for this run
This file contains hidden or 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
| 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: Tidy Code | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: hecrj/setup-rust-action@v1 | |
| with: | |
| rust-version: stable | |
| components: rustfmt | |
| - uses: taiki-e/install-action@v2 | |
| with: | |
| tool: typos-cli | |
| - name: Check Formatting | |
| run: cargo fmt --all -- --check | |
| - name: Run Typos | |
| run: typos | |
| tests: | |
| name: Tests | |
| needs: fmt | |
| # `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.85", 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 | |
| - uses: taiki-e/install-action@wasm-pack | |
| - 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 | |
| - name: Run tests inside of Chrome | |
| run: wasm-pack test --chrome --headless | |
| if: matrix.rust_version != '1.85' | |
| apple: | |
| name: Apple | |
| needs: fmt | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: rustup target add aarch64-apple-ios-macabi | |
| - name: macOS (doc) tests | |
| run: cargo test | |
| - name: iOS (doc) tests using Mac Catalyst | |
| run: cargo test --target aarch64-apple-ios-macabi |