feat: add proto-file based code gen #19
Workflow file for this run
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: Hipcheck | |
# Run on PRs before merging. We disallow pushing directly to main | |
# without going through a PR, so we don't run on `push` events for main. | |
on: | |
pull_request: | |
branches: [main] | |
paths: | |
- "config/**" | |
- "hipcheck/**" | |
- "scripts/**" | |
- "xtask/**" | |
permissions: | |
contents: read | |
env: | |
RUSTFLAGS: -Dwarnings | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
name: "Test (${{ matrix.os }})" | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: swatinem/rust-cache@v2 | |
with: | |
key: ${{ matrix.os }} | |
#name: Install protoc dependency - Linux | |
- if: runner.os == 'Linux' | |
run: sudo apt-get install -y protobuf-compiler | |
#name: Install protoc dependency - MacOS | |
- if: runner.os == 'macOS' | |
run: brew install protobuf | |
#name: Install protoc dependency - Windows | |
- if: runner.os == 'Windows' | |
run: | | |
curl -L -O https://github.com/protocolbuffers/protobuf/releases/download/v27.3/protoc-27.3-win64.zip | |
unzip -j protoc-27.3-win64.zip bin/protoc.exe -d C:\Windows\System32\ | |
# run: | | |
# if [ "$RUNNER_OS" == "Linux" ]; then | |
# sudo apt-get install -y protobuf-compiler | |
# elif [ "$RUNNER_OS" == "macOS" ]; then | |
# brew install protobuf | |
# elif [ "$RUNNER_OS" == "Windows" ]; then | |
# curl -O https://github.com/protocolbuffers/protobuf/releases/download/v27.3/protoc-27.3-win64.zip | |
# unzip protoc-27.3-win64.zip C:\\Windows\\System32 | |
# else | |
# echo "$RUNNER_OS not supported" | |
# exit 1 | |
# fi | |
# - if: runner.os == 'MacOS' | |
# run: sudo brew install protobuf | |
# - if: runner.os == 'Linux' | |
# run: sudo apt-get install -y protobuf-compiler | |
- name: Dependency Tree | |
run: cargo tree | |
- name: Build | |
run: cargo build --verbose --workspace | |
- name: Test | |
run: cargo test --verbose --workspace | |
- name: Lint | |
run: cargo clippy --verbose --workspace |