Skip to content

Commit

Permalink
Merge pull request #1172 from lairworks/updateLinuxBuildImages
Browse files Browse the repository at this point in the history
Update Linux GCC and Clang build images
  • Loading branch information
DanRStevens authored Nov 11, 2024
2 parents b853a3d + 4a262fc commit a9b6983
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 31 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ jobs:
- build-and-test
build-linux-gcc:
docker:
- image: outpostuniverse/nas2d-gcc:1.5
- image: ghcr.io/lairworks/build-env-nas2d-gcc:1.6
environment:
WARN_EXTRA: "-Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wuseless-cast -Weffc++"
steps:
- checkout
- build-and-test
build-linux-clang:
docker:
- image: outpostuniverse/nas2d-clang:1.4
- image: ghcr.io/lairworks/build-env-nas2d-clang:1.5
environment:
WARN_EXTRA: "-Wdocumentation -Wdocumentation-unknown-command -Wcomma -Winconsistent-missing-destructor-override -Wmissing-prototypes -Wctad-maybe-unsupported -Wimplicit-int-float-conversion -Wsign-conversion"
steps:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/buildDockerBuildEnv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
matrix:
platform:
- 'arch'
- 'clang'
- 'gcc'

steps:
- uses: actions/checkout@v4
Expand Down
28 changes: 14 additions & 14 deletions dockerBuildEnv/nas2d-clang.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# See Docker section of makefile in root project folder for usage commands.

FROM ubuntu:22.04
FROM ubuntu:24.04

# Install base development tools
# Includes tools to build download, unpack, and build source packages
# Includes tools needed for primary CircleCI containers
# Set DEBIAN_FRONTEND to prevent tzdata package install from prompting for timezone
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
build-essential=12.9* \
clang=1:14.0-* \
cmake=3.22.1-* \
libgtest-dev=1.11.0-* \
libgmock-dev=1.11.0-* \
git=1:2.34.1-* \
ssh=1:8.9p1-* \
tar=1.34* \
gzip=1.10-* \
build-essential=12.10* \
clang=1:18.0-* \
cmake=3.28.3-* \
libgtest-dev=1.14.0-* \
libgmock-dev=1.14.0-* \
git=1:2.43.0-* \
ssh=1:9.6p1-* \
tar=1.35+* \
gzip=1.12-* \
ca-certificates=* \
&& rm -rf /var/lib/apt/lists/*

Expand All @@ -25,10 +25,10 @@ ENV CC=clang
# Install NAS2D specific dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
libglew-dev=2.2.0-* \
libsdl2-dev=2.0.20+* \
libsdl2-image-dev=2.0.5+* \
libsdl2-mixer-dev=2.0.4+* \
libsdl2-ttf-dev=2.0.18+* \
libsdl2-dev=2.30.0+* \
libsdl2-image-dev=2.8.2+* \
libsdl2-mixer-dev=2.8.0+* \
libsdl2-ttf-dev=2.22.0+* \
&& rm -rf /var/lib/apt/lists/*

CMD ["make", "--keep-going", "check"]
2 changes: 1 addition & 1 deletion dockerBuildEnv/nas2d-clang.version.mk
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ImageVersion_clang := 1.4
ImageVersion_clang := 1.5
26 changes: 13 additions & 13 deletions dockerBuildEnv/nas2d-gcc.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# See Docker section of makefile in root project folder for usage commands.

FROM ubuntu:22.04
FROM ubuntu:24.04

# Install base development tools
# Includes tools to build download, unpack, and build source packages
# Includes tools needed for primary CircleCI containers
# Install latest available GCC compiler (which may not be the default)
# Set DEBIAN_FRONTEND to prevent tzdata package install from prompting for timezone
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
g++=4:11.2.0-* \
g++=4:13.2.0-* \
make=4.3-* \
cmake=3.22.1-* \
libgtest-dev=1.11.0-* \
libgmock-dev=1.11.0-* \
git=1:2.34.1-* \
ssh=1:8.9p1-* \
tar=1.34+* \
gzip=1.10-* \
cmake=3.28.3-* \
libgtest-dev=1.14.0-* \
libgmock-dev=1.14.0-* \
git=1:2.43.0-* \
ssh=1:9.6p1-* \
tar=1.35+* \
gzip=1.12-* \
ca-certificates=* \
&& rm -rf /var/lib/apt/lists/*

Expand All @@ -26,10 +26,10 @@ ENV CC=gcc
# Install NAS2D specific dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
libglew-dev=2.2.0-* \
libsdl2-dev=2.0.20+* \
libsdl2-image-dev=2.0.5+* \
libsdl2-mixer-dev=2.0.4+* \
libsdl2-ttf-dev=2.0.18+* \
libsdl2-dev=2.30.0+* \
libsdl2-image-dev=2.8.2+* \
libsdl2-mixer-dev=2.8.0+* \
libsdl2-ttf-dev=2.22.0+* \
&& rm -rf /var/lib/apt/lists/*

CMD ["make", "--keep-going", "check"]
2 changes: 1 addition & 1 deletion dockerBuildEnv/nas2d-gcc.version.mk
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ImageVersion_gcc := 1.5
ImageVersion_gcc := 1.6

0 comments on commit a9b6983

Please sign in to comment.