Skip to content

Workflow file for this run

name: Cargo Build & Test
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
SQLX_OFFLINE: true
jobs:
build_and_test:
name: Botv2
runs-on: ubuntu-latest
defaults:
run:
working-directory: .
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
with:
prefix-key: ${{ matrix.toolchain }}
workspaces: ".-> target"
- name: Install lld
run: sudo apt-get install -y lld
- name: Install mold
run: sudo apt-get install -y mold
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose
- run: cargo test --verbose