diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index 9f68344..419e8b5 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -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)