• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: Rust
2
3on:
4  push:
5    branches: [ master ]
6  pull_request:
7    branches: [ master ]
8
9env:
10  CARGO_TERM_COLOR: always
11
12jobs:
13  build:
14    runs-on: ubuntu-latest
15    strategy:
16      matrix:
17        rust:
18          - stable
19          - beta
20          - nightly
21    steps:
22    - uses: actions/checkout@v2
23    - name: Install latest nightly
24      uses: actions-rs/toolchain@v1
25      with:
26          toolchain: ${{ matrix.rust }}
27          override: true
28    - name: Build
29      run: cargo build --verbose
30    - name: Run tests
31      run: cargo test --verbose
32    - name: Run tests without features
33      run: cargo test --verbose --no-default-features
34    - name: Package
35      run: cargo package
36    - name: Test package
37      run: cd $(find target/package/ -maxdepth 1 -mindepth 1 -type d) && cargo test
38    - name: Test package without features
39      run: cd $(find target/package/ -maxdepth 1 -mindepth 1 -type d) && cargo test --no-default-features
40