Switch to rustls for reqwest for musl target #31
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: Cargo Build & Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUSTFLAGS: "-Dwarnings" | |
| jobs: | |
| # Run `cargo check` first to verify that things are working at a basic | |
| # level, before doing more expensive tests. | |
| # | |
| # TL;DR If `cargo check` fails, there's no point in continuing. | |
| check: | |
| name: Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - name: cargo check | |
| run: cargo check | |
| lint: | |
| needs: [check] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: nightly,stable | |
| components: rustfmt, clippy | |
| - name: Check formatting | |
| run: cargo +nightly fmt --all --check | |
| - name: Run Clippy | |
| run: cargo clippy --all-targets --all-features | |
| build: | |
| needs: [check] | |
| name: Build | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| toolchain: | |
| - stable | |
| - beta | |
| - nightly | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: ${{ matrix.toolchain }} | |
| - name: cargo build | |
| run: cargo build --verbose | |
| test: | |
| needs: [check] | |
| name: Test | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| toolchain: | |
| - nightly,stable | |
| - nightly,beta | |
| - nightly | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: ${{ matrix.toolchain }} | |
| components: rustfmt | |
| - name: cargo test | |
| run: cargo test --verbose |