diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 594c4ab..f0f8456 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,9 +33,11 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - uses: dtolnay/rust-toolchain@e2a55d2ffb04f378e9626c28d38b36d230d1e12f # master - with: - toolchain: ${{ matrix.toolchain }} + - run: | + rustup toolchain install "$TOOLCHAIN" --profile minimal + rustup default "$TOOLCHAIN" + env: + TOOLCHAIN: ${{ matrix.toolchain }} - run: cargo test --all-targets - run: cargo test --doc @@ -45,10 +47,9 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - uses: dtolnay/rust-toolchain@e2a55d2ffb04f378e9626c28d38b36d230d1e12f # master - with: - toolchain: stable - components: rustfmt, clippy + - run: | + rustup toolchain install stable --profile minimal --component rustfmt,clippy + rustup default stable - run: cargo fmt --check - run: cargo clippy --all-targets -- -D warnings - run: cargo fmt --manifest-path smoke/Cargo.toml --check @@ -68,9 +69,9 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - uses: dtolnay/rust-toolchain@e2a55d2ffb04f378e9626c28d38b36d230d1e12f # master - with: - toolchain: stable + - run: | + rustup toolchain install stable --profile minimal + rustup default stable - run: cargo test --manifest-path fuzz/Cargo.toml scripts: @@ -100,9 +101,9 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - uses: dtolnay/rust-toolchain@e2a55d2ffb04f378e9626c28d38b36d230d1e12f # master - with: - toolchain: stable + - run: | + rustup toolchain install stable --profile minimal + rustup default stable - uses: taiki-e/install-action@f7e5d7c961414b23f5b25b2da9294395d08513ad # v2.87.26 with: tool: cargo-deny@0.20.2 @@ -120,9 +121,9 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - uses: dtolnay/rust-toolchain@e2a55d2ffb04f378e9626c28d38b36d230d1e12f # master - with: - toolchain: stable + - run: | + rustup toolchain install stable --profile minimal + rustup default stable # The consumer runs against the unpacked .crate, which holds only what crates.io would serve. - name: Package and unpack shell: bash @@ -143,11 +144,9 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - uses: dtolnay/rust-toolchain@e2a55d2ffb04f378e9626c28d38b36d230d1e12f # master - with: - toolchain: stable - targets: wasm32-unknown-unknown - components: clippy + - run: | + rustup toolchain install stable --profile minimal --component clippy --target wasm32-unknown-unknown + rustup default stable - uses: taiki-e/install-action@f7e5d7c961414b23f5b25b2da9294395d08513ad # v2.87.26 with: tool: wasm-pack @@ -180,10 +179,9 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - uses: dtolnay/rust-toolchain@e2a55d2ffb04f378e9626c28d38b36d230d1e12f # master - with: - toolchain: stable - targets: wasm32-unknown-unknown + - run: | + rustup toolchain install stable --profile minimal --target wasm32-unknown-unknown + rustup default stable - uses: taiki-e/install-action@f7e5d7c961414b23f5b25b2da9294395d08513ad # v2.87.26 with: tool: wasm-pack @@ -200,9 +198,9 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - uses: dtolnay/rust-toolchain@e2a55d2ffb04f378e9626c28d38b36d230d1e12f # master - with: - toolchain: stable + - run: | + rustup toolchain install stable --profile minimal + rustup default stable - name: Fetch rusqlite and point its sqlite3mc-src at this checkout run: | set -euo pipefail diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 63ecd8a..2e17f82 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,9 +26,9 @@ jobs: fetch-depth: 0 persist-credentials: false - - uses: dtolnay/rust-toolchain@e2a55d2ffb04f378e9626c28d38b36d230d1e12f # master - with: - toolchain: stable + - run: | + rustup toolchain install stable --profile minimal + rustup default stable - id: crate run: | @@ -70,9 +70,9 @@ jobs: with: persist-credentials: false - - uses: dtolnay/rust-toolchain@e2a55d2ffb04f378e9626c28d38b36d230d1e12f # master - with: - toolchain: stable + - run: | + rustup toolchain install stable --profile minimal + rustup default stable - if: needs.verify.outputs.publish == 'yes' id: auth