Merge pull request #13 from peterkogo/fix-example-docs #42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- name: checkout sources | |
uses: actions/checkout@v2 | |
- name: install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: build default | |
run: cargo build --verbose --release | |
test-linux: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: checkout sources | |
uses: actions/checkout@v2 | |
- name: test | |
run: cargo test --release |