on: push: branches: [ "main" ] pull_request: branches: [ "main" ] env: CARGO_TERM_COLOR: always jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Install toolchain run: | apt update apt install --yes curl curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain nightly --profile default -y - name: Build run: | $HOME/.cargo/env cargo build --verbose - name: Run tests run: | $HOME/.cargo/env cargo test --verbose