Skip to content

Commit

Permalink
[CI] Ensure toolchain set before caching applied
Browse files Browse the repository at this point in the history
  • Loading branch information
drojf committed Sep 14, 2024
1 parent 1c8f8ed commit 12a24a6
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,21 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

# Configure Rust for 32-bit builds
# NOTE: install_loader/rust-toolchain.toml now used to set toolchain and target architecture
# To get around setup-rust-toolchain@v1 not detecting install_loader/rust-toolchain.toml
# since it is in a subfolder, copy it out to the root directory
- name: Copy rust-toolchain.toml for actions-rust-lang/setup-rust-toolchain
run: cp ./install_loader/rust-toolchain.toml .

# Caching for Rust
- name: Cache rust builds
uses: Swatinem/rust-cache@v2
with:
workspaces: install_loader
# Configure Rust for 32-bit builds
#
# NOTE: Refer to install_loader/rust-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-rust-lang/setup-rust-toolchain@v1
working-directory: ./install_loader

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

0 comments on commit 12a24a6

Please sign in to comment.