Update ctor requirement from 0.10.0 to 1.0.5 #116
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 | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| env: | |
| CARGO_INCREMENTAL: 0 | |
| CARGO_NET_GIT_FETCH_WITH_CLI: true | |
| CARGO_NET_RETRY: 10 | |
| CARGO_TERM_COLOR: always | |
| RUST_BACKTRACE: 1 | |
| RUSTFLAGS: -D warnings | |
| RUSTDOCFLAGS: -D warnings | |
| RUSTUP_MAX_RETRIES: 10 | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| rust: [nightly, beta, stable] | |
| steps: | |
| - uses: taiki-e/checkout-action@v1 | |
| - name: Install Rust | |
| run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }} | |
| - run: sudo apt update -y && sudo apt install -y libx11-xcb-dev | |
| - run: cargo build --all --all-features --all-targets | |
| - name: Run cargo check (without dev-dependencies to catch missing feature flags) | |
| if: startsWith(matrix.rust, 'nightly') | |
| run: cargo check -Z features=dev_dep | |
| - run: xvfb-run cargo test --all --jobs 1 | |
| - run: xvfb-run cargo test --all --no-default-features --jobs 1 | |
| - run: xvfb-run cargo test --all --features dlopen --jobs 1 | |
| msrv: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| # When updating this, the reminder to update the minimum supported | |
| # Rust version in Cargo.toml. | |
| rust: ['1.70'] | |
| steps: | |
| - uses: taiki-e/checkout-action@v1 | |
| - name: Use minimal dependency versions | |
| # By downgrading all our dependency versions, we ensure that our minimum | |
| # version bounds are actually adequate (i.e. users can build `tiny-xlib` | |
| # with minimal versions themselves) and opt-out of any unexpected MSRV | |
| # bumps in semver-compatible releases of downstream crates. | |
| # | |
| # RUSTC_BOOTSTRAP=1 is kind of a hack, but it's cumbersome and slow to | |
| # install the nightly toolchain. | |
| run: RUSTC_BOOTSTRAP=1 cargo -Zminimal-versions generate-lockfile | |
| - name: Install Rust | |
| run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }} | |
| - run: sudo apt update -y && sudo apt install -y libx11-xcb-dev | |
| - run: cargo build --all | |
| - run: cargo build --all --no-default-features | |
| - run: cargo build --all --features dlopen | |
| env: | |
| RUSTFLAGS: '' | |
| clippy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: taiki-e/checkout-action@v1 | |
| - name: Install Rust | |
| run: rustup update stable | |
| - run: cargo clippy --all --all-features --all-targets | |
| fmt: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: taiki-e/checkout-action@v1 | |
| - name: Install Rust | |
| run: rustup update stable | |
| - run: cargo fmt --all --check |