From 3e8255d5b70f5f67921a11338ea59db2a4cc6059 Mon Sep 17 00:00:00 2001 From: epi Date: Thu, 14 Apr 2022 06:11:38 -0500 Subject: [PATCH] reverted ci back to normal --- .github/workflows/check.yml | 19 +++++++--------- .github/workflows/coverage.yml | 41 ++++++++++++++++++++++------------ 2 files changed, 35 insertions(+), 25 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index a957ced..7ce9a88 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -22,17 +22,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - # - uses: actions-rs/toolchain@v1 - # with: - # profile: minimal - # override: true - - name: Install latest nextest release - uses: taiki-e/install-action@nextest - - name: Test with latest nextest release - uses: actions-rs/cargo@v1 + - uses: actions-rs/toolchain@v1 with: - command: nextest - args: run --all-targets --all-features + profile: minimal + toolchain: stable + override: true + - uses: actions-rs/cargo@v1 + with: + command: test fmt: name: Rust fmt @@ -64,4 +61,4 @@ jobs: - uses: actions-rs/cargo@v1 with: command: clippy - args: --all-targets --all-features -- -D warnings + args: --all-targets --all-features -- -D warnings -A clippy::deref_addrof -A clippy::mutex-atomic \ No newline at end of file diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 605e19a..96ec012 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -3,8 +3,7 @@ on: [push] name: Code Coverage Pipeline jobs: - coverage: - name: LLVM Coverage + upload-coverage: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 @@ -12,20 +11,34 @@ jobs: with: toolchain: nightly override: true - - name: Update rust - run: rustup update - - name: Install llvm-tools-preview - run: rustup component add llvm-tools-preview - - name: Install cargo-llvm-cov - uses: taiki-e/install-action@cargo-llvm-cov - uses: actions-rs/cargo@v1 with: - command: llvm-cov - args: clean --workspace - - run: cargo llvm-cov --all-features --no-fail-fast --lcov --output-path lcov.info - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 + command: clean + - uses: actions-rs/cargo@v1 + with: + command: test + args: --all-features --no-fail-fast + env: + CARGO_INCREMENTAL: '0' + RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort' + RUSTDOCFLAGS: '-Cpanic=abort' + - uses: actions-rs/grcov@v0.1 + - uses: actions/upload-artifact@v2 + with: + name: lcov.info + path: lcov.info + - name: Convert lcov to xml + run: | + curl -O https://raw.githubusercontent.com/eriwen/lcov-to-cobertura-xml/master/lcov_cobertura/lcov_cobertura.py + chmod +x lcov_cobertura.py + ./lcov_cobertura.py ./lcov.info + - uses: codecov/codecov-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }} - files: lcov.info + file: ./coverage.xml + name: codecov-umbrella fail_ci_if_error: true + - uses: actions/upload-artifact@v2 + with: + name: coverage.xml + path: ./coverage.xml \ No newline at end of file