Skip to content

Create rust.yml

Create rust.yml #2

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Install protoc
run: |
wget https://github.com/protocolbuffers/protobuf/releases/download/v27.2/protoc-27.2-linux-x86_64.zip
unzip protoc-27.2-linux-x86_64.zip
mv bin/protoc /usr/local/bin/
- name: Add protoc to PATH
run: |
echo "$HOME/bin/" >> $GITHUB_PATH
echo $PATH
protoc
# - name: Run clippy
# run: cargo clippy
# - name: Build tomis
# run: cargo build
# - name: Run tests
# run: cargo test