Build protobuf first before building Typesense.

This commit is contained in:
Kishore Nallan 2023-08-05 16:58:02 +05:30
parent 406cafe4c7
commit 6c9a000bd8

View File

@ -1,7 +1,7 @@
name: tests
on: workflow_dispatch
#on: [push, pull_request]
#on: workflow_dispatch
on: [push, pull_request]
# Cancel previous running if a new push is made
# Source: https://stackoverflow.com/a/72408109/123545
@ -54,6 +54,13 @@ jobs:
rm bazel-cache.tar.gz
exit 0
- name: Build protobuf deps
run: |
bazel build @com_google_protobuf//:protobuf_headers
bazel build @com_google_protobuf//:protobuf_lite
bazel build @com_google_protobuf//:protobuf
bazel build @com_google_protobuf//:protoc
- name: Build Typesense
run: bazel build //:typesense-server