ci:install protobuf #48
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: RustWindows | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main", "dev"] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Config Env | |
run: rustup install nightly && rustup default nightly | |
- name: Install Protobuf | |
run: winget install protobuf | |
- name: Build | |
run: cd gdrust && cargo build --all | |
- name: Build Release | |
run: cd gdrust && cargo build --all --release | |
- name: Run tests Debug | |
run: cd gdrust && cargo test --all | |
- name: Run tests Release | |
run: cd gdrust && cargo test --release --all |