forked from torrust/torrust-index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
21 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,8 +18,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
env: | ||
CARGO_INCREMENTAL: "0" | ||
RUSTFLAGS: "-Z profile -C codegen-units=1 -C inline-threshold=0 -C link-dead-code -C overflow-checks=off -C panic=abort -Z panic_abort_tests" | ||
RUSTDOCFLAGS: "-Z profile -C codegen-units=1 -C inline-threshold=0 -C link-dead-code -C overflow-checks=off -C panic=abort -Z panic_abort_tests" | ||
RUSTFLAGS: "-Z profile -C codegen-units=1 -C opt-level=0 -C link-dead-code -C overflow-checks=off -Z panic_abort_tests -C panic=abort" | ||
RUSTDOCFLAGS: "-Z profile -C codegen-units=1 -C opt-level=0 -C link-dead-code -C overflow-checks=off -Z panic_abort_tests -C panic=abort" | ||
|
||
steps: | ||
- id: checkout_push | ||
|
@@ -36,7 +36,7 @@ jobs: | |
|
||
- id: setup | ||
name: Setup Toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
uses: dtolnay/rust-toolchain@nightly | ||
with: | ||
toolchain: nightly | ||
components: llvm-tools-preview | ||
|
@@ -45,40 +45,39 @@ jobs: | |
name: Enable Workflow Cache | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
# Temporary Cleaning to avoid Rust Compiler Bug | ||
- id: clean | ||
name: Make Build Clean | ||
run: cargo clean | ||
|
||
- id: tools | ||
name: Install Tools | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: cargo-llvm-cov, cargo-nextest, grcov | ||
|
||
- id: imdl | ||
name: Install Intermodal | ||
run: cargo install imdl | ||
tool: grcov | ||
|
||
- id: check | ||
name: Run Build Checks | ||
run: cargo check --tests --benches --examples --workspace --all-targets --all-features | ||
|
||
- id: clean | ||
name: Clean Build Directory | ||
run: cargo clean | ||
|
||
- id: build | ||
name: Pre-build Main Project | ||
run: cargo build --workspace --all-targets --all-features --jobs 2 | ||
|
||
- id: build_tests | ||
name: Pre-build Tests | ||
run: cargo build --workspace --all-targets --all-features --tests --jobs 2 | ||
|
||
- id: test | ||
name: Run Unit Tests | ||
run: cargo test --tests --benches --examples --workspace --all-targets --all-features | ||
|
||
- id: coverage-llvm | ||
name: Generate Coverage Report with LLVM | ||
run: cargo llvm-cov nextest --tests --benches --examples --workspace --all-targets --all-features | ||
run: cargo test --tests --workspace --all-targets --all-features | ||
|
||
- id: coverage-grcov | ||
name: Generate Coverage Report with grcov | ||
- id: coverage | ||
name: Generate Coverage Report | ||
uses: alekitto/[email protected] | ||
|
||
- id: upload | ||
name: Upload Coverage Report | ||
uses: codecov/codecov-action@v4 | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ${{ steps.coverage.outputs.report }} | ||
|