Skip to content

Commit

Permalink
Merge pull request #2 from cloudflavor/feature/add-github-actions
Browse files Browse the repository at this point in the history
Create rust.yml
  • Loading branch information
oscar-automaton[bot] authored Jul 9, 2024
2 parents 4f1e490 + 636236a commit 8fc9c0a
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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: |
PROTOC_VERSION=27.2
PROTOC_ZIP=protoc-$PROTOC_VERSION-linux-x86_64.zip
wget https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOC_VERSION/$PROTOC_ZIP
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
sudo unzip -o $PROTOC_ZIP -d /usr/local 'include/*'
- name: Run clippy
run: cargo clippy
- name: Build tomis
run: cargo build
- name: Run tests
run: cargo test
2 changes: 0 additions & 2 deletions crates/tomis/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

use tonic_build;

fn main() {
tonic_build::configure()
.build_client(false)
Expand Down

0 comments on commit 8fc9c0a

Please sign in to comment.