Skip to content

Commit

Permalink
Merge pull request #43 from JohnTitor/clean-up-actions
Browse files Browse the repository at this point in the history
Clean up actions
  • Loading branch information
vertexclique authored Oct 6, 2019
2 parents 11bfafd + 80ec900 commit 408cc63
Showing 1 changed file with 11 additions and 30 deletions.
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

0 comments on commit 408cc63

Please sign in to comment.