init #445
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
name: Rust | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "*" ] | |
pull_request: | |
branches: [ "*" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Switch rust version | |
run: rustup default nightly | |
- name: Update rust | |
run: rustup update | |
- name: Install protoc | |
run: sudo apt-get install -y protobuf-compiler | |
- name: Add component fmt | |
run: rustup component add rustfmt | |
- name: Update | |
run: cargo update --verbose | |
- name: Clean | |
run: cargo clean --verbose | |
- name: Check | |
run: cargo check --verbose | |
- name: Fmt | |
run: cargo fmt --verbose | |
- name: Test | |
run: cargo test | |
- name: Build | |
run: cargo build --verbose |