From b2ca40cd810f5420f261f01ccb4f04fade2e3a8a Mon Sep 17 00:00:00 2001 From: Benjamin Pannell Date: Thu, 22 Sep 2022 15:40:27 +0100 Subject: [PATCH] ci: Switch to testing on only Linux for faster PRs --- .github/workflows/rust.yml | 44 +------------------------------------- 1 file changed, 1 insertion(+), 43 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index afb2208..6d2486f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -3,7 +3,7 @@ name: Rust jobs: test-linux: - name: Test (Linux) + name: Test runs-on: ubuntu-latest steps: @@ -38,48 +38,6 @@ jobs: - name: grcov run: grcov . --binary-path target/debug/deps/ -s . -t lcov --ignore-not-existing --ignore '../**' --ignore '/*' --ignore 'C:/' -o ./lcov.info - - name: codecov upload - uses: codecov/codecov-action@v3 - with: - files: ./lcov.info - - - test-windows: - name: Test (Windows) - runs-on: windows-latest - - steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - components: llvm-tools-preview - - - name: install protoc - run: | - Invoke-WebRequest -OutFile protoc.zip -Uri https://github.com/protocolbuffers/protobuf/releases/download/v3.20.2/protoc-3.20.2-win64.zip - Expand-Archive protoc.zip -DestinationPath ../tools - Add-Content -Path $env:GITHUB_PATH -Value "$((get-item ./).parent.fullname)/tools/bin" - Get-Content $env:GITHUB_PATH - shell: pwsh - - - name: cargo install grcov - uses: SierraSoftworks/setup-grcov@v1 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - - - name: Run tests - uses: actions-rs/cargo@v1 - with: - command: test - args: --all-features --no-fail-fast - env: - RUSTFLAGS: -Cinstrument-coverage - - - name: grcov - run: grcov . --binary-path target/debug/deps/ -s . -t lcov --ignore-not-existing --ignore '../**' --ignore '/*' --ignore 'C:/' -o ./lcov.info - - name: codecov upload uses: codecov/codecov-action@v3 with: