name: "ci"
on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: Check rustfmt
      run: |
        rustup component add rustfmt --toolchain stable
        cargo +stable fmt --all -- --check
    - name: Build
      run: cargo build --verbose
    - name: Run tests
      run: |
        rustup install nightly
        rustup default nightly
        rustup component add rust-src
        export RUST_BACKTRACE=1
        cargo test --verbose

name: "ci"
on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: Check rustfmt
      run: |
        rustup component add rustfmt --toolchain stable
        cargo +stable fmt --all -- --check
    - name: Build
      run: cargo build --verbose
    - name: Run tests
      run: |
        rustup install nightly
        rustup default nightly
        rustup component add rust-src
        rustup component add llvm-tools-preview
        cargo install cargo-binutils
        export RUST_BACKTRACE=1
        cargo test --verbose

Install cargo-binutils and llvm-tools-preview for CI.
Install cargo-binutils and llvm-tools-preview for CI.
