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 3, 2024
1 parent f4828cf commit b02f02a
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 76 deletions.
79 changes: 32 additions & 47 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ env:
jobs:
bazel_arch:
name: bazel arch latest
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container: archlinux:latest
steps:
- name: pre-checkout setup
Expand All @@ -76,35 +76,20 @@ jobs:
- name: checkout
uses: actions/checkout@v4
- name: post-checkout setup
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: build package
run: bazel build ...
shell: bash

bazel_macos:
name: bazel macos latest
runs-on: macos-latest
name: bazel macos 14
runs-on: macos-14
steps:
- name: pre-checkout 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 unlink -q bazelisk
brew install -q \
Expand All @@ -125,16 +110,16 @@ jobs:
- name: checkout
uses: actions/checkout@v4
- name: post-checkout setup
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: build package
run: bazel build ...
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: pre-checkout setup
Expand All @@ -150,13 +135,13 @@ jobs:
g++ \
git \
gnupg \
libicu70 \
liblttng-ust1 \
libicu74 \
liblttng-ust1t64 \
python-is-python3 \
zlib1g
curl -sS 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' \
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 @@ -171,17 +156,17 @@ jobs:
- name: checkout
uses: actions/checkout@v4
- name: post-checkout setup
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: build package
run: bazel build ...
shell: bash

dotnet_alpine:
name: dotnet alpine 3
runs-on: ubuntu-22.04
container: alpine:3
name: dotnet alpine latest
runs-on: ubuntu-latest
container: alpine:latest
steps:
- name: pre-checkout setup
run: |
Expand All @@ -198,7 +183,7 @@ jobs:
- name: checkout
uses: actions/checkout@v4
- name: post-checkout setup
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: build package debug
Expand All @@ -214,7 +199,7 @@ jobs:

dotnet_arch:
name: dotnet arch latest
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container: archlinux:latest
steps:
- name: pre-checkout setup
Expand All @@ -233,7 +218,7 @@ jobs:
- name: checkout
uses: actions/checkout@v4
- name: post-checkout setup
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: build package debug
Expand All @@ -249,7 +234,7 @@ jobs:

dotnet_fedora:
name: dotnet fedora latest
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container: fedora:latest
steps:
- name: pre-checkout setup
Expand All @@ -271,7 +256,7 @@ jobs:
- name: checkout
uses: actions/checkout@v4
- name: post-checkout setup
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: build package debug
Expand All @@ -286,13 +271,13 @@ jobs:
shell: bash

dotnet_macos:
name: dotnet macos latest
runs-on: macos-latest
name: dotnet macos 14
runs-on: macos-14
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: build package debug
Expand All @@ -308,7 +293,7 @@ jobs:

dotnet_rockylinux:
name: dotnet rockylinux 9
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container: rockylinux:9
steps:
- name: pre-checkout setup
Expand All @@ -330,7 +315,7 @@ jobs:
- name: checkout
uses: actions/checkout@v4
- name: post-checkout setup
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: build package debug
Expand All @@ -345,9 +330,9 @@ jobs:
shell: bash

dotnet_ubuntu:
name: dotnet ubuntu 22.04
runs-on: ubuntu-22.04
container: ubuntu:22.04
name: dotnet ubuntu latest
runs-on: ubuntu-latest
container: ubuntu:latest
steps:
- name: pre-checkout setup
run: |
Expand All @@ -360,8 +345,8 @@ jobs:
ca-certificates \
curl \
git \
libicu70 \
liblttng-ust1 \
libicu74 \
liblttng-ust1t64 \
zlib1g
apt-get -qq -o Dpkg::Use-Pty=0 autoremove
rm -rf /var/lib/apt/lists/*
Expand All @@ -371,7 +356,7 @@ jobs:
- name: checkout
uses: actions/checkout@v4
- name: post-checkout setup
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
source-url: https://nuget.pkg.github.com/snape/index.json
Expand Down Expand Up @@ -400,7 +385,7 @@ jobs:
- name: checkout
uses: actions/checkout@v4
- name: setup
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: build package debug
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
3 changes: 2 additions & 1 deletion 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(RVOCS
VERSION 2.1.0
DESCRIPTION "Optimal Reciprocal Collision Avoidance for C#"
HOMEPAGE_URL https://gamma.cs.unc.edu/RVO2/
LANGUAGES NONE)

include(CTest)
Expand Down
39 changes: 12 additions & 27 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 C#
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 for C#"
LABEL org.opencontainers.image.licenses="Apache-2.0"
LABEL org.opencontainers.image.source="https://github.com/snape/RVO2/"
Expand All @@ -48,44 +50,27 @@ RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update -qq \
&& apt-get install --no-install-recommends -o Dpkg::Use-Pty=0 -qy \
ca-certificates \
cmake \
cmake-format \
dirmngr \
dotnet6 \
dpkg \
dotnet-sdk-8.0 \
dpkg-dev \
file \
git \
gnupg \
libgssapi-krb5-2 \
libicu70 \
libssl3 \
libstdc++6 \
jsonlint \
libicu74 \
make \
markdownlint \
mono-complete \
nano \
netbase \
ninja-build \
npm \
python3 \
reuse \
unzip \
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 \
zlib1g \
&& rm -rf /var/lib/apt/lists/* \
&& npm install -g \
@bazel/buildifier \
jsonlint \
markdownlint-cli
@bazel/bazelisk \
@bazel/buildifier

0 comments on commit b02f02a

Please sign in to comment.