Skip to content

Commit

Permalink
Update Ubuntu and CMake versions
Browse files Browse the repository at this point in the history
  • Loading branch information
snape committed May 1, 2024
1 parent 5bdfef9 commit af26bed
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 128 deletions.
14 changes: 2 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,11 @@ jobs:
|| (sleep 15; apt-get -qq -o APT::Acquire::Retries=4 update)
sudo apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 --no-install-recommends install \
ca-certificates \
cmake \
g++ \
git \
gnupg \
make \
pkg-config \
wget
wget -qO- https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null \
| gpg --dearmor - \
| sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
echo 'deb [arch=arm64 signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy main' \
| sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null
sudo apt-get -qq -o APT::Acquire::Retries=4 update \
|| (sleep 15; apt-get -qq -o APT::Acquire::Retries=4 update)
sudo apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 --no-install-recommends install \
cmake
pkgconf
sudo apt-get -qq -o Dpkg::Use-Pty=0 autoremove
sudo rm -rf /var/lib/apt/lists/*
environment:
Expand Down
118 changes: 31 additions & 87 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ on: # yamllint disable-line rule:truthy
jobs:
bazel_arch:
name: bazel arch latest
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container: archlinux:latest
steps:
- name: setup
Expand All @@ -70,29 +70,14 @@ jobs:
shell: bash

bazel_macos:
name: bazel macos latest
runs-on: macos-latest
name: bazel macos 14
runs-on: macos-14
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup
run: |
rm -f \
/usr/local/bin/2to3 \
/usr/local/bin/2to3-3.* \
/usr/local/bin/go \
/usr/local/bin/gofmt \
/usr/local/bin/idle3 \
/usr/local/bin/idle3.* \
/usr/local/bin/pydoc3 \
/usr/local/bin/pydoc3.* \
/usr/local/bin/python3 \
/usr/local/bin/python3.* \
/usr/local/bin/python3-config \
/usr/local/bin/python3.*-config \
/usr/local/lib/libtcl8.*.dylib \
/usr/local/lib/libtk8.*.dylib
brew update-reset -q
brew update -q
brew upgrade -f -q
brew bundle install -q --no-lock
brew cleanup -q -s
Expand All @@ -107,8 +92,8 @@ jobs:
shell: zsh -efuo pipefail {0}

bazel_ubuntu:
name: bazel ubuntu 22.04
runs-on: ubuntu-22.04
name: bazel ubuntu latest
runs-on: ubuntu-latest
container: ubuntu:latest
steps:
- name: setup
Expand All @@ -125,9 +110,9 @@ jobs:
gnupg \
python-is-python3 \
wget
wget -qO - https://bazel.build/bazel-release.pub.gpg 2>/dev/null | gpg --dearmor - \
> /usr/share/keyrings/bazel-archive-keyring.gpg
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] https://storage.googleapis.com/bazel-apt stable jdk1.8' \
wget -qO - https://bazel.build/bazel-release.pub.gpg 2>/dev/null \
| gpg --dearmor - > /usr/share/keyrings/bazel-archive-keyring.gpg
echo 'deb [signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] https://storage.googleapis.com/bazel-apt stable jdk1.8' \
> /etc/apt/sources.list.d/bazel.list
apt-get -qq -o APT::Acquire::Retries=4 update \
|| (sleep 15; apt-get -qq -o APT::Acquire::Retries=4 update)
Expand All @@ -147,7 +132,7 @@ jobs:

bzlmod_arch:
name: bzlmod arch latest
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container: archlinux:latest
steps:
- name: setup
Expand All @@ -170,29 +155,14 @@ jobs:
shell: bash

bzlmod_macos:
name: bzlmod macos latest
runs-on: macos-latest
name: bzlmod macos 14
runs-on: macos-14
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup
run: |
rm -f \
/usr/local/bin/2to3 \
/usr/local/bin/2to3-3.* \
/usr/local/bin/go \
/usr/local/bin/gofmt \
/usr/local/bin/idle3 \
/usr/local/bin/idle3.* \
/usr/local/bin/pydoc3 \
/usr/local/bin/pydoc3.* \
/usr/local/bin/python3 \
/usr/local/bin/python3.* \
/usr/local/bin/python3-config \
/usr/local/bin/python3.*-config \
/usr/local/lib/libtcl8.*.dylib \
/usr/local/lib/libtk8.*.dylib
brew update-reset -q
brew update -q
brew upgrade -f -q
brew bundle install -q --no-lock
brew cleanup -q -s
Expand All @@ -207,8 +177,8 @@ jobs:
shell: zsh -efuo pipefail {0}

bzlmod_ubuntu:
name: bzlmod ubuntu 22.04
runs-on: ubuntu-22.04
name: bzlmod ubuntu latest
runs-on: ubuntu-latest
container: ubuntu:latest
steps:
- name: setup
Expand All @@ -225,9 +195,9 @@ jobs:
gnupg \
python-is-python3 \
wget
wget -qO - https://bazel.build/bazel-release.pub.gpg 2>/dev/null | gpg --dearmor - \
> /usr/share/keyrings/bazel-archive-keyring.gpg
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] https://storage.googleapis.com/bazel-apt stable jdk1.8' \
wget -qO - https://bazel.build/bazel-release.pub.gpg 2>/dev/null \
| gpg --dearmor - > /usr/share/keyrings/bazel-archive-keyring.gpg
echo 'deb [signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] https://storage.googleapis.com/bazel-apt stable jdk1.8' \
> /etc/apt/sources.list.d/bazel.list
apt-get -qq -o APT::Acquire::Retries=4 update \
|| (sleep 15; apt-get -qq -o APT::Acquire::Retries=4 update)
Expand All @@ -246,9 +216,9 @@ jobs:
shell: bash

cmake_alpine:
name: cmake alpine 3
runs-on: ubuntu-22.04
container: alpine:3
name: cmake alpine latest
runs-on: ubuntu-latest
container: alpine:latest
steps:
- name: setup
run: |
Expand Down Expand Up @@ -290,7 +260,7 @@ jobs:

cmake_arch:
name: cmake arch latest
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container: archlinux:latest
steps:
- name: setup
Expand Down Expand Up @@ -335,7 +305,7 @@ jobs:

cmake_fedora:
name: cmake fedora latest
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container: fedora:latest
steps:
- name: setup
Expand Down Expand Up @@ -382,29 +352,14 @@ jobs:
shell: bash

cmake_macos:
name: cmake macos latest
runs-on: macos-latest
name: cmake macos 14
runs-on: macos-14
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup
run: |
rm -f \
/usr/local/bin/2to3 \
/usr/local/bin/2to3-3.* \
/usr/local/bin/go \
/usr/local/bin/gofmt \
/usr/local/bin/idle3 \
/usr/local/bin/idle3.* \
/usr/local/bin/pydoc3 \
/usr/local/bin/pydoc3.* \
/usr/local/bin/python3 \
/usr/local/bin/python3.* \
/usr/local/bin/python3-config \
/usr/local/bin/python3.*-config \
/usr/local/lib/libtcl8.*.dylib \
/usr/local/lib/libtk8.*.dylib
brew update-reset -q
brew update -q
brew upgrade -f -q
brew bundle install -q --no-lock
brew cleanup -q -s
Expand Down Expand Up @@ -439,7 +394,7 @@ jobs:

cmake_rockylinux:
name: cmake rockylinux 9
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container: rockylinux:9
steps:
- name: setup
Expand Down Expand Up @@ -488,9 +443,9 @@ jobs:
shell: bash

cmake_ubuntu:
name: cmake ubuntu 22.04
runs-on: ubuntu-22.04
container: ubuntu:22.04
name: cmake ubuntu latest
runs-on: ubuntu-latest
container: ubuntu:latest
steps:
- name: setup
run: |
Expand All @@ -503,24 +458,13 @@ jobs:
ca-certificates \
cmake \
doxygen \
dpkg \
dpkg-dev \
file \
g++ \
git \
gnupg \
graphviz \
make \
pkg-config \
wget
wget -qO- https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null \
| gpg --dearmor - > /usr/share/keyrings/kitware-archive-keyring.gpg
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy main' \
> /etc/apt/sources.list.d/kitware.list
apt-get -qq -o APT::Acquire::Retries=4 update \
|| (sleep 15; apt-get -qq -o APT::Acquire::Retries=4 update)
apt-get -qq -o Dpkg::Use-Pty=0 --no-install-recommends --no-install-recommends install \
cmake
pkgconf
apt-get -qq -o Dpkg::Use-Pty=0 autoremove
rm -rf /var/lib/apt/lists/*
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ on: # yamllint disable-line rule:truthy
jobs:
analyze:
name: analyze
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
Expand Down
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@
# <https://gamma.cs.unc.edu/RVO2/>
#

cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
project(RVO
VERSION 2.0.3
DESCRIPTION "Optimal Reciprocal Collision Avoidance"
HOMEPAGE_URL https://gamma.cs.unc.edu/RVO2/
LANGUAGES CXX)

list(INSERT CMAKE_MODULE_PATH 0 "${PROJECT_SOURCE_DIR}/cmake/modules")
Expand Down Expand Up @@ -67,7 +68,6 @@ set(RVO_LIBRARY_DIR ${CMAKE_INSTALL_LIBDIR})
set(RVO_LIBRARY RVO)

set(RVO_NAME "RVO2 Library")
set(RVO_HOMEPAGE_URL https://gamma.cs.unc.edu/RVO2/)

set(CMAKE_CXX_STANDARD 98)
set(CMAKE_CXX_STANDARD_REQUIRED OFF)
Expand Down Expand Up @@ -328,18 +328,18 @@ set(CPACK_SOURCE_STRIP_FILES ON)

set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
set(CPACK_DEBIAN_PACKAGE_DEPENDS)
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE ${RVO_HOMEPAGE_URL})
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE ${PROJECT_HOMEPAGE_URL})
set(CPACK_DEBIAN_PACKAGE_SECTION contrib/devel)
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)

set(CPACK_FREEBSD_PACKAGE_DEPS)
set(CPACK_FREEBSD_PACKAGE_LICENSE APACHE20)
set(CPACK_FREEBSD_PACKAGE_WWW ${RVO_HOMEPAGE_URL})
set(CPACK_FREEBSD_PACKAGE_WWW ${PROJECT_HOMEPAGE_URL})

set(CPACK_RPM_FILE_NAME RPM-DEFAULT)
set(CPACK_RPM_PACKAGE_AUTOREQPROV ON)
set(CPACK_RPM_PACKAGE_LICENSE "ASL 2.0")
set(CPACK_RPM_PACKAGE_REQUIRES)
set(CPACK_RPM_PACKAGE_URL ${RVO_HOMEPAGE_URL})
set(CPACK_RPM_PACKAGE_URL ${PROJECT_HOMEPAGE_URL})

include(CPack)
31 changes: 9 additions & 22 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# syntax=docker.io/docker/dockerfile:1

#
# Dockerfile
# RVO2 Library
Expand Down Expand Up @@ -31,9 +33,9 @@
# <https://gamma.cs.unc.edu/RVO2/>
#

FROM ubuntu:22.04
FROM ubuntu:latest
LABEL org.opencontainers.image.authors="Jur van den Berg, Stephen J. Guy, Jamie Snape, Ming C. Lin, Dinesh Manocha"
LABEL org.opencontainers.image.base.name="docker.io/library/ubuntu:22.04"
LABEL org.opencontainers.image.base.name="docker.io/library/ubuntu:latest"
LABEL org.opencontainers.image.description="Optimal Reciprocal Collision Avoidance"
LABEL org.opencontainers.image.licenses="Apache-2.0"
LABEL org.opencontainers.image.source="https://github.com/snape/RVO2/"
Expand All @@ -50,22 +52,23 @@ RUN export DEBIAN_FRONTEND=noninteractive \
ca-certificates \
clang \
clang-tidy \
cmake \
cmake-format \
cppcheck \
cpplint \
dirmngr \
doxygen \
dpkg \
dpkg-dev \
file \
g++ \
gdb \
git \
gnupg \
graphviz \
iwyu \
jsonlint \
lldb \
make \
markdownlint \
nano \
netbase \
ninja-build \
Expand All @@ -74,25 +77,9 @@ RUN export DEBIAN_FRONTEND=noninteractive \
python3 \
reuse \
strace \
unzip \
valgrind \
wget \
yamllint \
zlib1g-dev \
&& wget -qO - https://bazel.build/bazel-release.pub.gpg | gpg --dearmor - \
> /usr/share/keyrings/bazel-archive-keyring.gpg \
&& echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] https://storage.googleapis.com/bazel-apt stable jdk1.8' \
> /etc/apt/sources.list.d/bazel.list \
&& wget -qO - https://apt.kitware.com/keys/kitware-archive-latest.asc \
| gpg --dearmor - > /usr/share/keyrings/kitware-archive-keyring.gpg \
&& echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu jammy main' \
> /etc/apt/sources.list.d/kitware.list \
&& apt-get update -qq \
&& apt-get install --no-install-recommends -o Dpkg::Use-Pty=0 -qy \
bazel \
cmake \
&& rm -rf /var/lib/apt/lists/* \
&& npm install -g \
@bazel/buildifier \
jsonlint \
markdownlint-cli
@bazel/bazelisk \
@bazel/buildifier
Loading

0 comments on commit af26bed

Please sign in to comment.