Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ on:
filename:
description: Name of the Docker image configuration to build
required: true
default: Dockerfile.gnat
default: Dockerfile.build
username:
description: Name of the Docker user
required: true
default: thindil
name:
description: Name of the Docker image
required: true
default: gnat
default: build
version:
description: Version of the Docker image
required: true
default: 9
default: 10

jobs:
build:
Expand Down
31 changes: 26 additions & 5 deletions Dockerfile.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM debian:12
ENV TZ=Europe/Berlin
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/nim-2.2.6/bin
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/nim-2.2.10/bin
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
&& apt-get update && apt-get install -y \
git \
Expand All @@ -9,10 +9,31 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
xz-utils \
libpcre3 \
wget \
&& wget https://nim-lang.org/download/nim-2.2.6-linux_x64.tar.xz \
&& tar -xf nim-2.2.6-linux_x64.tar.xz \
&& rm nim-2.2.6-linux_x64.tar.xz \
make \
libsdl2-dev \
libsdl2-image-dev \
&& wget https://nim-lang.org/download/nim-2.2.10-linux_x64.tar.xz \
&& tar -xf nim-2.2.10-linux_x64.tar.xz \
&& rm nim-2.2.10-linux_x64.tar.xz \
&& nimble install -y unittest2 "nimalyzer@#head" contracts \
&& apt purge -y wget \
&& wget https://github.com/libsdl-org/SDL/releases/download/release-2.32.10/SDL2-2.32.10.tar.gz \
&& tar -xf SDL2-2.32.10.tar.gz \
&& cd SDL2-2.32.10 \
&& ./configure --prefix=/usr \
&& make \
&& make install \
&& cd .. \
&& rm SDL2-2.32.10.tar.gz \
&& wget https://github.com/libsdl-org/SDL_image/releases/download/release-2.8.12/SDL2_image-2.8.12.tar.gz \
&& tar -xf SDL2_image-2.8.12.tar.gz \
&& cd SDL2_image-2.8.12 \
&& ./configure --prefix=/usr \
&& make \
&& make install \
&& cd .. \
&& rm SDL2_image-2.8.12.tar.gz \
&& apt-get purge -y \
wget \
make \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
30 changes: 26 additions & 4 deletions Dockerfile.buildwin64
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM debian:12
ENV TZ=Europe/Berlin
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/nim-2.2.6/bin
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/nim-2.2.10/bin
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
&& apt-get update && apt-get install -y \
wget \
Expand All @@ -12,12 +12,34 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
gcc-mingw-w64-x86-64 \
libpcre3 \
xz-utils \
&& wget https://nim-lang.org/download/nim-2.2.6-linux_x64.tar.xz \
&& tar -xf nim-2.2.6-linux_x64.tar.xz \
&& rm nim-2.2.6-linux_x64.tar.xz \
make \
libsdl2-dev \
libsdl2-image-dev \
&& wget https://nim-lang.org/download/nim-2.2.10-linux_x64.tar.xz \
&& tar -xf nim-2.2.10-linux_x64.tar.xz \
&& rm nim-2.2.10-linux_x64.tar.xz \
&& nimble install -y "nimalyzer@#head" contracts \
&& wget https://github.com/libsdl-org/SDL/releases/download/release-2.32.10/SDL2-2.32.10.tar.gz \
&& tar -xf SDL2-2.32.10.tar.gz \
&& cd SDL2-2.32.10 \
&& ./configure --prefix=/usr \
&& make \
&& make install \
&& cd .. \
&& rm SDL2-2.32.10.tar.gz \
&& rm -rf SDL2-2.32.10 \
&& wget https://github.com/libsdl-org/SDL_image/releases/download/release-2.8.12/SDL2_image-2.8.12.tar.gz \
&& tar -xf SDL2_image-2.8.12.tar.gz \
&& cd SDL2_image-2.8.12 \
&& ./configure --prefix=/usr \
&& make \
&& make install \
&& cd .. \
&& rm SDL2_image-2.8.12.tar.gz \
&& rm -rf SDL2_image-2.8.12 \
&& apt-get purge -y \
wget \
unzip \
make \
&& apt-get autoremove -y && apt-get clean \
&& rm -rf /var/lib/apt/lists/*
Loading