-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (33 loc) · 1013 Bytes
/
dry-run-rust-build.yaml
File metadata and controls
33 lines (33 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: dry_run_rust_build
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Checkout without submodules
uses: actions/checkout@v2
- name: Setup buf
uses: bufbuild/buf-setup-action@v1
- name: Lint protofiles with buf
uses: bufbuild/buf-lint-action@v1
- name: Generate buf files
run: buf generate
build: # This does not build the whole proto files for production, it tests if rust / tonic
runs-on: ubuntu-latest
steps:
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Checkout repository with submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: Pull rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Test compiling protofiles with rust
uses: actions-rs/cargo@v1
with:
command: run