mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
chore: update CI configuration and Rust settings
- Added support for `lld-link` as the linker for both x86_64 and aarch64 Windows targets in `.cargo/config.toml`. - Updated CI workflows to use `Swatinem/rust-cache` for caching Rust dependencies, improving build efficiency. - Consolidated build and test steps in CI workflows, enhancing clarity and reducing redundancy. - Introduced a step to disable Windows Defender during CI runs on Windows to prevent interference with builds.
This commit is contained in:
parent
7e3e58a003
commit
1f5dacd218
3 changed files with 33 additions and 75 deletions
27
.github/workflows/release.yml
vendored
27
.github/workflows/release.yml
vendored
|
|
@ -135,6 +135,10 @@ jobs:
|
|||
env:
|
||||
BIN: atlas
|
||||
steps:
|
||||
- name: Disable Windows Defender
|
||||
if: runner.os == 'Windows'
|
||||
run: Set-MpPreference -DisableRealtimeMonitoring $true
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
|
|
@ -144,26 +148,15 @@ jobs:
|
|||
with:
|
||||
targets: ${{ matrix.target }}
|
||||
|
||||
- name: Restore Rust Cache
|
||||
uses: actions/cache/restore@v4
|
||||
- name: Rust Cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
key: ${{ matrix.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
shared-key: release-${{ matrix.target }}
|
||||
|
||||
- name: Build Release
|
||||
run: cargo build --release --locked --verbose --target ${{ matrix.target }}
|
||||
|
||||
- name: Save Rust Cache
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
key: ${{ matrix.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
env:
|
||||
CARGO_TERM_VERBOSE: ${{ runner.debug && 'true' || 'false' }}
|
||||
run: cargo build --release --locked --target ${{ matrix.target }}
|
||||
|
||||
- name: Generate Artifact Name
|
||||
shell: bash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue