File: check_build.sh

package info (click to toggle)
rust-parsec-interface 0.29.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,268 kB
  • sloc: sh: 34; makefile: 4
file content (17 lines) | stat: -rwxr-xr-x 379 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash

# Copyright 2020 Contributors to the Parsec project.
# SPDX-License-Identifier: Apache-2.0

set -e

OUT_DIR="/tmp/parsec-operations-ci"
mkdir -p $OUT_DIR

# Check that protoc can build the protobuf files.
mkdir -p $OUT_DIR/protobuf
PROTOBUF_FILES=protobuf/*.proto
for f in $PROTOBUF_FILES
do
	protoc --proto_path=protobuf --cpp_out=$OUT_DIR/protobuf $f
done