Skip to content

ci(wasm): disable MS Defender for faster build? (experimental) #789

ci(wasm): disable MS Defender for faster build? (experimental)

ci(wasm): disable MS Defender for faster build? (experimental) #789

Workflow file for this run

name: Rust
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
CI_RUST_CACHE_VERSION: v1
permissions:
contents: read
jobs:
build:
strategy:
matrix:
os: [ubuntu-24.04, windows-2022]
rustc_channel: [stable, nightly]
include:
- rustc_channel: stable
# renovate: rustc-stable
rustc_version: '1.78.0'
- rustc_channel: nightly
# renovate: rustc-nightly
rustc_version: '2023-09-30'
runs-on: ${{ matrix.os }}
steps:
- name: Disable Microsoft Defender for faster build (experimental)
run: |
Set-MpPreference -DisableRealtimeMonitoring $True
shell: powershell
if: ${{ matrix.os == 'windows-2022' }}
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- name: Install compiler ${{ matrix.rustc_channel }} ( ${{ matrix.rustc_version }} )
run: |
if [[ "${{ matrix.rustc_channel }}" == nightly ]]; then
rustup install nightly-${{ matrix.rustc_version }}
rustup component add clippy --toolchain nightly-${{ matrix.rustc_version }}
rustup override set nightly-${{ matrix.rustc_version }}
else
rustup install ${{ matrix.rustc_version }}
rustup component add clippy --toolchain ${{ matrix.rustc_version }}
rustup override set ${{ matrix.rustc_version }}
fi
rustup show
shell: bash
- name: Rust Cache
uses: Swatinem/[email protected]
with:
prefix-key: ${{ matrix.os }}-${{ matrix.rustc_version }}-${{ env.CI_RUST_CACHE_VERSION }}-${{ hashFiles('**/Cargo.lock') }}
# See rust-wasm.yml for CI details about those package
- name: Build package
run: cargo build --workspace --exclude origlang-interop --exclude origlang-interop-frontend-webserver --verbose
- name: Lint with clippy
run: cargo clippy --workspace --exclude origlang-interop --exclude origlang-interop-frontend-webserver --verbose
- name: Run tests
run: cargo test --workspace --exclude origlang-interop --exclude origlang-interop-frontend-webserver --verbose
env:
RUST_BACKTRACE: 1
RUST_LOG: debug
- name: Run compile test
run: cargo run -p origlang-testsuite
env:
RUST_BACKTRACE: 1
RUST_LOG: debug