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

Clean up actions #43

Merged
merged 1 commit into from
Oct 6, 2019
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
41 changes: 11 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,55 +3,36 @@ name: CI
on: [push, pull_request]

jobs:
build_and_test_stable:
name: Stable - Build and test on ${{ matrix.os }}
build_and_test:
name: ${{ matrix.version }} - Build and test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
version: [stable, nightly]

steps:
- uses: actions/checkout@master

- name: Install stable
- name: Install ${{ matrix.version }}
uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: ${{ matrix.version }}
override: true

- name: check
- name: check nightly
if: matrix.version == 'nightly'
uses: actions-rs/cargo@v1
with:
command: check
args: --all --bins --examples --tests

- name: tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all

build_and_test_nightly:
name: Nightly - Build and test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: actions/checkout@master

- name: Install nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
args: --all --benches --bins --examples --tests

- name: check
- name: check stable
if: matrix.version == 'stable'
uses: actions-rs/cargo@v1
with:
command: check
args: --all --benches --bins --examples --tests
args: --all --bins --examples --tests

- name: tests
uses: actions-rs/cargo@v1
Expand Down