get rid of useless stuff, more splitting #130
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |