Skip to content

Commit

Permalink
Install protoc on build systems
Browse files Browse the repository at this point in the history
  • Loading branch information
pka committed Aug 28, 2023
1 parent 0e1692b commit afb53d2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ jobs:
run: |
rustc --version
cargo --version
- name: Install System Dependencies (Ubuntu)
if: runner.os == 'Linux'
run: sudo apt-get update -y -qq && sudo apt-get install -y protobuf-compiler
- name: Install System Dependencies (Windows)
if: runner.os == 'Windows'
shell: bash
run: pacman -S --noconfirm mingw-w64-x86_64-protobuf
- name: Install System Dependencies (macOS)
if: runner.os == 'macOS'
shell: bash
run: brew install protobuf
- name: Lint
if: matrix.target == 'x86_64-unknown-linux-gnu'
shell: bash
Expand Down
3 changes: 3 additions & 0 deletions docker/Dockerfile-mapserver
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
FROM rust:bookworm as builder
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y protobuf-compiler && \
rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/bbox
COPY . .
ARG BUILD_DIR=bbox-server
Expand Down
3 changes: 3 additions & 0 deletions docker/Dockerfile-qgis-server
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
FROM rust:bookworm as builder
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y protobuf-compiler && \
rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/bbox
COPY . .
ARG BUILD_DIR=bbox-server
Expand Down

0 comments on commit afb53d2

Please sign in to comment.