Skip to content

Commit

Permalink
feat: speed up build time by not downloading all targets
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrutchf committed Nov 16, 2024
1 parent 6e9d831 commit 3f887fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
7 changes: 0 additions & 7 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 3f887fc

Please sign in to comment.