Skip to content

Commit

Permalink
Disable coverage for now
Browse files Browse the repository at this point in the history
  • Loading branch information
laggui committed Feb 28, 2025
1 parent 4339c2e commit 30b4e22
Showing 1 changed file with 23 additions and 52 deletions.
75 changes: 23 additions & 52 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ jobs:
include:
- rust: stable
toolchain: stable
# coverage: --enable-coverage
- rust: prev
toolchain: ${{ needs.prepare-checks.outputs.rust-prev-version }}
steps:
Expand All @@ -160,8 +161,28 @@ jobs:
mesa-ci-build-version: ${{ env.MESA_CI_BINARY_BUILD }}
cargo-package-to-clean: burn-tch
# --------------------------------------------------------------------------------
# - name: Install grcov
# if: matrix.rust == 'stable'
# shell: bash
# run: |
# curl -L "$GRCOV_LINK/v$GRCOV_VERSION/grcov-x86_64-unknown-linux-musl.tar.bz2" |
# tar xj -C $HOME/.cargo/bin
# cargo xtask coverage install
# --------------------------------------------------------------------------------
- name: Tests
run: cargo xtask test --ci
run: cargo xtask ${{ matrix.coverage }} test --ci
# --------------------------------------------------------------------------------
# - name: Generate lcov.info
# if: matrix.rust == 'stable'
# # /* is to exclude std library code coverage from analysis
# run: cargo xtask coverage generate --ignore "/*,xtask/*,examples/*"
# --------------------------------------------------------------------------------
# - name: Codecov upload lcov.info
# if: matrix.rust == 'stable'
# uses: codecov/codecov-action@v5
# with:
# files: lcov.info
# token: ${{ secrets.CODECOV_TOKEN }}

linux-no-std-tests:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -243,54 +264,4 @@ jobs:
cache-key: ${{ matrix.rust }}-macos
# --------------------------------------------------------------------------------
- name: Tests
run: cargo xtask test --ci

coverage:
runs-on: ubuntu-22.04
needs: linux-std-tests
env:
DISABLE_WGPU_SPIRV: '1'
strategy:
matrix:
rust: [stable]
include:
- rust: stable
toolchain: stable
coverage: --enable-coverage
steps:
- name: Setup Rust
uses: tracel-ai/github-actions/setup-rust@v1
with:
rust-toolchain: ${{ matrix.toolchain }}
cache-key: ${{ matrix.rust }}-linux-coverage
# --------------------------------------------------------------------------------
- name: Setup Linux runner
uses: tracel-ai/github-actions/setup-linux@v1
with:
vulkan-sdk-version: ${{ env.VULKAN_SDK_VERSION }}
mesa-version: ${{ env.MESA_VERSION }}
mesa-ci-build-version: ${{ env.MESA_CI_BINARY_BUILD }}
cargo-package-to-clean: burn-tch
# --------------------------------------------------------------------------------
- name: Install grcov
if: matrix.rust == 'stable'
shell: bash
run: |
curl -L "$GRCOV_LINK/v$GRCOV_VERSION/grcov-x86_64-unknown-linux-musl.tar.bz2" |
tar xj -C $HOME/.cargo/bin
cargo xtask coverage install
# --------------------------------------------------------------------------------
- name: Crates Build
run: cargo xtask ${{ matrix.coverage }} build --ci
# --------------------------------------------------------------------------------
- name: Generate lcov.info
if: matrix.rust == 'stable'
# /* is to exclude std library code coverage from analysis
run: cargo xtask coverage generate --ignore "/*,xtask/*,examples/*"
# --------------------------------------------------------------------------------
- name: Codecov upload lcov.info
if: matrix.rust == 'stable'
uses: codecov/codecov-action@v5
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
run: cargo xtask test --ci

0 comments on commit 30b4e22

Please # to comment.