build: add an automatic release job #21
This file contains 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
on: [push, pull_request] | |
name: Tests | |
jobs: | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: dtolnay/rust-toolchain@stable | |
- name: install deps | |
run: sudo apt install nasm cmake protobuf-compiler libxkbcommon-dev | |
- uses: actions/checkout@v4 | |
- uses: swatinem/rust-cache@v2 | |
with: | |
workspaces: | | |
mm-server | |
mm-client | |
mm-protocol | |
- name: server cargo clippy | |
run: (cd mm-server && cargo clippy) | |
- name: client cargo clippy | |
run: (cd mm-client && cargo clippy) | |
- name: protocol cargo clippy | |
run: (cd mm-protocol && cargo clippy) | |
- name: server tests | |
run: (cd mm-server && cargo test) | |
- name: client tests | |
run: (cd mm-client && cargo test) | |
- name: protocol tests | |
run: (cd mm-protocol && cargo test) |