name: ci on: push: pull_request: jobs: check: name: Check runs-on: ubuntu-latest steps: - name: Install libunwind-dev run: sudo apt-get install -y libunwind-dev - name: Checkout sources uses: actions/checkout@v2 - name: Install nightly toolchain uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: nightly override: true - name: Run cargo check uses: actions-rs/cargo@v1 with: command: check test: name: Test Suite runs-on: ubuntu-latest steps: - name: Install libunwind-dev run: sudo apt-get install -y libunwind-dev - name: Checkout sources uses: actions/checkout@v2 - name: Install nightly toolchain uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: nightly override: true - name: Run cargo test uses: actions-rs/cargo@v1 with: command: test args: -- --test-threads=1 ## Currently disabled because internal version of rustfmt produces different ## formatting. # rustfmt: # name: Check format # runs-on: ubuntu-latest # steps: # - name: Checkout sources # uses: actions/checkout@v2 # # - name: Install nightly toolchain # uses: actions-rs/toolchain@v1 # with: # profile: minimal # toolchain: nightly # override: true # components: rustfmt # # - name: Run cargo fmt # uses: actions-rs/cargo@v1 # with: # command: fmt # args: --all -- --check clippy: name: Clippy runs-on: ubuntu-latest steps: - name: Install libunwind-dev run: sudo apt-get install -y libunwind-dev - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: toolchain: nightly components: clippy override: true - uses: actions-rs/clippy-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }}