Skip to content

Commit

Permalink
Use setup-rust-toolchain to resolve depreciation warnings and toolcha…
Browse files Browse the repository at this point in the history
…in toml
  • Loading branch information
drojf committed Sep 14, 2024
1 parent 21fba98 commit 8a52369
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,14 @@ jobs:
python-version: ${{ matrix.python-version }}

# Configure Rust for 32-bit builds
#
# NOTE: Refer to install_loader/toolchain.toml for the installed toolchain and target architecture
# Please use fixed versions of rust so that installs build consistently
# (So they don't randomly trigger Windows Defender)
#
# CACHE NOTE: This action also provides Github Actions caching of rust builds (uses Swatinem/rust-cache internally)
- name: Install and configure rust for 32-bit builds
uses: actions-rs/toolchain@v1
with:
toolchain: 1.66.0
target: i686-pc-windows-msvc
default: true

# Caching for Rust
- name: Cache rust builds
uses: Swatinem/rust-cache@v2
with:
workspaces: install_loader
uses: actions-rust-lang/setup-rust-toolchain@v1

# Run Python Deploy Script
# This also installs and scans .exe with virustotal on Windows (to try prevent .exe virus false positives)
Expand Down
5 changes: 5 additions & 0 deletions install_loader/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[toolchain]
channel = "1.66.0"
components = [ ]
targets = [ "i686-pc-windows-msvc" ]
profile = "minimal"

0 comments on commit 8a52369

Please sign in to comment.