name: "linux build"

on:
    push:
        branches: [ master ]
    pull_request:
        branches: [ master ]

env:
    CARGO_TERM_COLOR: always

jobs:
    "linux_build":
        runs-on: ubuntu-latest

        steps:
        - uses: actions/checkout@v2
        - name: cleanAfterRun
          run: cargo clean
        - name: buildRelease
          run: cargo build --release --verbose
        - name: cleanAfterBuildRelease
          run: cargo clean
        - name: Build
          run: cargo build --verbose
        - name: Run tests
          run: cargo test --verbose
