Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better coverage in github CI #37

Merged
merged 2 commits into from
Jul 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 42 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ on:
- master

jobs:
test:
name: Test
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
build: [linux, macos, windows]
toolchain: ["1.48.0", "stable", "beta", "nightly"]
Expand All @@ -28,9 +29,47 @@ jobs:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: ${{ matrix.toolchain }}
- name: Install toolchains (aarch64)
uses: actions-rs/toolchain@v1
if: contains(matrix.os, 'ubuntu')
with:
toolchain: ${{ matrix.toolchain }}
target: aarch64-linux-android
- name: Install toolchains (i686)
uses: actions-rs/toolchain@v1
if: contains(matrix.os, 'ubuntu')
with:
toolchain: ${{ matrix.toolchain }}
target: i686-unknown-linux-gnu

- uses: actions-rs/cargo@v1
name: Cargo build
with:
command: build
toolchain: ${{ matrix.toolchain }}

- name: cargo build (aarch64)
run: cargo +${{ matrix.toolchain }} check --target aarch64-linux-android
if: contains(matrix.os, 'ubuntu')
- name: cargo build (i686)
run: cargo +${{ matrix.toolchain }} check --target i686-unknown-linux-gnu
if: contains(matrix.os, 'ubuntu')

test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
name: Install faketty
with:
command: install
args: faketty

- name: Cargo test (under faketty)
run: faketty cargo test -- --nocapture