From 3f887fc2392ce978d149055f90518b3ef7e6be12 Mon Sep 17 00:00:00 2001 From: "Christopher L. Crutchfield" Date: Fri, 15 Nov 2024 16:25:10 -0800 Subject: [PATCH] feat: speed up build time by not downloading all targets --- .github/workflows/rust.yml | 6 ++++++ rust-toolchain.toml | 7 ------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f1cfb25..c0d84b0 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -20,6 +20,8 @@ jobs: run: | sudo apt-get update sudo apt-get install -y gcc-aarch64-linux-gnu + - name: Install Rust Toolchains + run: rustup target add x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu - name: Run tests run: cargo test --verbose - name: Build @@ -33,6 +35,8 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Install Rust Toolchains + run: rustup target add x86_64-pc-windows-msvc - name: Run tests run: cargo test --verbose - name: Build @@ -45,6 +49,8 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Install Rust Toolchains + run: rustup target add x86_64-apple-darwin aarch64-apple-darwin - name: Run tests run: cargo test --verbose - name: Build diff --git a/rust-toolchain.toml b/rust-toolchain.toml index fd741d3..749f19c 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -2,11 +2,4 @@ # The default profile includes rustc, rust-std, cargo, rust-docs, rustfmt and clippy. # https://rust-lang.github.io/rustup/concepts/profiles.html profile = "default" -targets = [ - "x86_64-unknown-linux-gnu", - "aarch64-unknown-linux-gnu", - "x86_64-pc-windows-msvc", - "aarch64-apple-darwin", - "x86_64-apple-darwin" -] channel = "1.82"