Skip to content

Commit cdd3e05

Browse files
committed
chore: add build job
1 parent cc8e941 commit cdd3e05

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
os: [ ubuntu-latest, macos-13, macos-14 ]
18+
runs-on: ${{ matrix.os }}
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
submodules: recursive
24+
- uses: dtolnay/rust-toolchain@stable
25+
- uses: Swatinem/rust-cache@v2
26+
- name: Install protobuf
27+
if: runner.os == 'macOS'
28+
run: brew install protobuf
29+
- name: Install protobuf
30+
if: runner.os == 'Linux'
31+
run: sudo apt-get update && sudo apt-get install libprotobuf-dev protobuf-compiler
32+
- name: Build
33+
run: cargo build -vv
34+
- name: Test
35+
run: cargo test -vv

0 commit comments

Comments
 (0)