Skip to content

Commit

Permalink
ci: Switch to testing on only Linux for faster PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Sep 22, 2022
1 parent 8bf21b4 commit b2ca40c
Showing 1 changed file with 1 addition and 43 deletions.
44 changes: 1 addition & 43 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Rust

jobs:
test-linux:
name: Test (Linux)
name: Test
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b2ca40c

Please sign in to comment.