Skip to content

Commit 8a52369

Browse files
committed
Use setup-rust-toolchain to resolve depreciation warnings and toolchain toml
1 parent 21fba98 commit 8a52369

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

.github/workflows/test_and_deploy.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,14 @@ jobs:
4141
python-version: ${{ matrix.python-version }}
4242

4343
# Configure Rust for 32-bit builds
44+
#
45+
# NOTE: Refer to install_loader/toolchain.toml for the installed toolchain and target architecture
4446
# Please use fixed versions of rust so that installs build consistently
4547
# (So they don't randomly trigger Windows Defender)
48+
#
49+
# CACHE NOTE: This action also provides Github Actions caching of rust builds (uses Swatinem/rust-cache internally)
4650
- name: Install and configure rust for 32-bit builds
47-
uses: actions-rs/toolchain@v1
48-
with:
49-
toolchain: 1.66.0
50-
target: i686-pc-windows-msvc
51-
default: true
52-
53-
# Caching for Rust
54-
- name: Cache rust builds
55-
uses: Swatinem/rust-cache@v2
56-
with:
57-
workspaces: install_loader
51+
uses: actions-rust-lang/setup-rust-toolchain@v1
5852

5953
# Run Python Deploy Script
6054
# This also installs and scans .exe with virustotal on Windows (to try prevent .exe virus false positives)

install_loader/rust-toolchain.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[toolchain]
2+
channel = "1.66.0"
3+
components = [ ]
4+
targets = [ "i686-pc-windows-msvc" ]
5+
profile = "minimal"

0 commit comments

Comments
 (0)