From 846adb3b9d29503de2d0e54d3d34471bd15f58bd Mon Sep 17 00:00:00 2001 From: "Kevin R. Thornton" Date: Tue, 1 Jul 2025 14:17:38 -0700 Subject: [PATCH] chore: add rust-toolchain.toml --- .github/workflows/test32bit.yml | 3 +++ .github/workflows/tests.yml | 4 ++++ rust-toolchain.toml | 5 +++++ 3 files changed, 12 insertions(+) create mode 100644 rust-toolchain.toml diff --git a/.github/workflows/test32bit.yml b/.github/workflows/test32bit.yml index 035f94ad5..63634f1fc 100644 --- a/.github/workflows/test32bit.yml +++ b/.github/workflows/test32bit.yml @@ -38,6 +38,9 @@ jobs: - name: Install rust tooling for 32 bit builds run: | rustup target install i686-unknown-linux-gnu + - name: Install rust toolchain + run: | + rustup toolchain install - name: cargo check run: | cargo hack check --all-targets --target=i686-unknown-linux-gnu --feature-powerset diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2c48ea04b..c74ff46fe 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -33,6 +33,8 @@ jobs: - uses: taiki-e/install-action@cargo-hack - run: sudo apt-get update -y if: matrix.os == 'ubuntu-24.04' + - name: update toolchain + run: rustup toolchain install - name: cargo check (powerset) run: cargo hack check --feature-powerset --no-dev-deps - name: cargo check examples (powerset) @@ -74,6 +76,8 @@ jobs: components: clippy - uses: Swatinem/rust-cache@v2.7.5 - uses: taiki-e/install-action@cargo-hack + - name: update toolchain + run: rustup toolchain install - name: clippy (all targets, feature powerset) run: cargo hack clippy --all-targets --feature-powerset -- -D warnings diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 000000000..835193559 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,5 @@ +[toolchain] +channel = "1.87.0" +components = [ "rustfmt", "clippy" ] +targets = ["x86_64-unknown-linux-gnu", "i686-unknown-linux-gnu"] +profile = "minimal"