Add Debian Bullseye to the install scripts, CI, docs. (#1897)

Signed-off-by: Wolfgang Hess <whess@fsfe.org>
master
Wolfgang Hess 2022-07-28 08:09:21 +02:00 committed by GitHub
parent 1173e80c45
commit 9ab557476d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 56 additions and 3 deletions

15
.github/workflows/ci-bullseye.yaml vendored Normal file
View File

@ -0,0 +1,15 @@
name: Debian Bullseye CI
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run the Dockerfile
run: docker build . -f Dockerfile.bullseye

30
Dockerfile.bullseye Normal file
View File

@ -0,0 +1,30 @@
# Copyright 2022 The Cartographer Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM debian:bullseye
ARG cc
ARG cxx
# Set the preferred C/C++ compiler toolchain, if given (otherwise default).
ENV CC=$cc
ENV CXX=$cxx
# This base image doesn't ship with sudo.
RUN apt-get update && apt-get install -y sudo && rm -rf /var/lib/apt/lists/*
COPY scripts/install_debs_cmake.sh cartographer/scripts/
RUN cartographer/scripts/install_debs_cmake.sh && rm -rf /var/lib/apt/lists/*
COPY . cartographer
RUN cartographer/scripts/install_cartographer_cmake.sh && rm -rf cartographer

View File

@ -16,7 +16,7 @@
Cartographer Cartographer
============ ============
|build-jammy| |build-focal| |build-bionic| |docs| |license| |build-jammy| |build-focal| |build-bionic| |build-bullseye| |build-buster| |docs| |license|
Purpose Purpose
======= =======
@ -95,6 +95,14 @@ Slides of these Cartographer Open House meetings are listed below.
:alt: Ubuntu 18.04 Build Status :alt: Ubuntu 18.04 Build Status
:scale: 100% :scale: 100%
:target: https://github.com/cartographer-project/cartographer/actions/workflows/ci-bionic.yaml :target: https://github.com/cartographer-project/cartographer/actions/workflows/ci-bionic.yaml
.. |build-bullseye| image:: https://github.com/cartographer-project/cartographer/actions/workflows/ci-bullseye.yaml/badge.svg
:alt: Debian Bullseye Build Status
:scale: 100%
:target: https://github.com/cartographer-project/cartographer/actions/workflows/ci-bullseye.yaml
.. |build-buster| image:: https://github.com/cartographer-project/cartographer/actions/workflows/ci-buster.yaml/badge.svg
:alt: Debian Buster Build Status
:scale: 100%
:target: https://github.com/cartographer-project/cartographer/actions/workflows/ci-buster.yaml
.. |docs| image:: https://readthedocs.org/projects/google-cartographer/badge/?version=latest .. |docs| image:: https://readthedocs.org/projects/google-cartographer/badge/?version=latest
:alt: Documentation Status :alt: Documentation Status
:scale: 100% :scale: 100%

View File

@ -94,7 +94,7 @@ on systems that meet the following requirements:
* 64-bit, modern CPU (e.g. 3rd generation i7) * 64-bit, modern CPU (e.g. 3rd generation i7)
* 16 GB RAM * 16 GB RAM
* Ubuntu 18.04 (Bionic), 20.04 (Focal), 22.04 (Jammy) * Ubuntu 18.04 (Bionic), 20.04 (Focal), 22.04 (Jammy)
* gcc version 7.5.0, 9.3.0, 11.2.0 * gcc version 7.5.0, 8.3.0, 9.3.0, 10.2.1, 11.2.0
Known Issues Known Issues
------------ ------------

View File

@ -42,7 +42,7 @@ sudo apt-get install -y \
# Install Protocol Buffers and Abseil if available. # Install Protocol Buffers and Abseil if available.
# No need to build it ourselves. # No need to build it ourselves.
case "$(lsb_release -sc)" in case "$(lsb_release -sc)" in
jammy) jammy|bullseye)
sudo apt-get install -y libgmock-dev protobuf-compiler libabsl-dev ;; sudo apt-get install -y libgmock-dev protobuf-compiler libabsl-dev ;;
focal|buster) focal|buster)
sudo apt-get install -y libgmock-dev protobuf-compiler ;; sudo apt-get install -y libgmock-dev protobuf-compiler ;;