Skip to content

Commit

Permalink
ci: add ubuntu-latest test on ci,
Browse files Browse the repository at this point in the history
OSX code corverage block on rust-lang/rust#63047, so add ubuntu support
advance
  • Loading branch information
M-Adoo committed May 14, 2020
1 parent 1bff419 commit 3fb5b01
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/grcov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name: Code coverage with grcov

jobs:
grcov:
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

Expand All @@ -29,7 +29,7 @@ jobs:
args: --all
env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests"
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off"

- name: Gather coverage data
id: coverage
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name: base check
jobs:
check:
name: Check
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v1
Expand All @@ -26,7 +26,10 @@ jobs:

test:
name: Test Suite
runs-on: macos-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- name: Checkout sources
uses: actions/checkout@v1
Expand All @@ -45,7 +48,7 @@ jobs:

rustfmt:
name: rust code format style check
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v1
Expand All @@ -65,7 +68,7 @@ jobs:
args: --all -- --check

clippy_check:
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
Expand Down
10 changes: 10 additions & 0 deletions configs/grcov.config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
branch: true
ignore-not-existing: true
llvm: true
output-type: lcov
output-file: ./lcov.info
ignore:
- "/*"
- "../*"
- "**/main_thread_tests/**"
- "**/examples/**"

0 comments on commit 3fb5b01

Please sign in to comment.