update CI

This commit is contained in:
Lokathor
2020-08-06 16:08:40 -06:00
parent 6d41ca997d
commit 7540862f63
4 changed files with 34 additions and 94 deletions
+29 -16
View File
@@ -1,22 +1,35 @@
name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
on: [push]
jobs:
build:
build_test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.34.0
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
- name: Test The Basics Everywhere
uses: actions-rs/cargo@v1
with:
command: test
- name: Test Stable and Later Features
if: matrix.rust != '1.34.0'
uses: actions-rs/cargo@v1
with:
command: test
args: --features=alloc --features=grab_spare_slice --features=rustc_1_40
- name: Test Nightly Features
if: matrix.rust == 'nightly'
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features