diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index fd7f4b5..3374b67 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -21,8 +21,7 @@ jobs: persist-credentials: false - name: Set up Rust toolchain run: | - rustup toolchain install stable --profile minimal - rustup default stable + rustup toolchain install - name: Publish the crate run: cargo publish env: @@ -63,8 +62,7 @@ jobs: - name: Set up Rust toolchain shell: bash run: | - rustup toolchain install stable --profile minimal - rustup default stable + rustup toolchain install - name: Build run: cargo build --release - name: Upload Release Asset diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index af73f45..9c67a97 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -25,8 +25,7 @@ jobs: persist-credentials: false - name: Set up Rust toolchain run: | - rustup toolchain install stable --profile minimal --component clippy - rustup default stable + rustup toolchain install - uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3 - name: Run tests run: cargo test --verbose diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..48f98e3 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,7 @@ +# Pinned because rustc 1.100.0 rejects git-url-parse 0.6.0 (E0038: nom's +# `Parser` trait is not dyn compatible). Move back to "stable" once +# git-url-parse ships a fix. +[toolchain] +channel = "1.99.1" +profile = "minimal" +components = ["clippy"]