build(deps): update rust crate sysinfo to 0.33.1 #446
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
# nightly build | |
schedule: | |
- cron: "0 0 * * *" | |
env: | |
# for now don't make the build fail on warnings | |
# RUSTFLAGS: "-D warnings" | |
# prevents out of disk space error | |
CARGO_INCREMENTAL: 0 | |
CARGO_PROFILE_DEV_DEBUG: 0 | |
# enable caching for faster compilation | |
SCCACHE_GHA_ENABLED: "true" | |
RUSTC_WRAPPER: "sccache" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install mold linker | |
uses: rui314/setup-mold@v1 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- name: Run sccache-cache | |
uses: mozilla-actions/[email protected] | |
- name: Setup Rust cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Install cargo-llvm-cov and nextest | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: cargo-llvm-cov,nextest | |
- name: Check formatting | |
run: cargo fmt --check --all | |
- name: Check sources | |
run: cargo check --workspace --all-features | |
- name: Perform linting | |
run: cargo clippy --all-targets --all-features | |
- name: Run doctests | |
run: cargo test --doc --all-features --workspace | |
- name: Run tests and generate coverage | |
run: | | |
cargo llvm-cov --codecov --output-path coverage.cov nextest --all-features --workspace | |
- name: Upload Coverage Report to Codecov | |
uses: codecov/[email protected] | |
with: | |
files: coverage.cov | |
token: ${{ secrets.CODECOV_TOKEN }} | |
nightly: | |
if: github.event.schedule == '0 0 * * *' && github.ref == 'refs/heads/master' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install mold linker | |
uses: rui314/setup-mold@v1 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
- name: Run sccache-cache | |
uses: mozilla-actions/[email protected] | |
- name: Setup Rust cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Nightly build | |
run: cargo build -p preload-rs --all-features --release | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: preload-nightly | |
path: target/release/preload-rs |