Skip to content

Commit 2a5cfba

Browse files
committed
feat: Add debian 12
1 parent c68fde2 commit 2a5cfba

File tree

4 files changed

+59
-5
lines changed

4 files changed

+59
-5
lines changed

.github/workflows/docker-push.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010

1111
jobs:
1212
dockcross-build-push:
13-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-latest
1414
permissions:
1515
contents: read
1616
packages: write
@@ -21,7 +21,9 @@ jobs:
2121
- name: linux-armhf-ubuntu18
2222
- name: linux-armhf-debian10
2323
- name: linux-armhf-debian11
24+
- name: linux-armhf-debian12
2425
- name: linux-aarch64-debian11
26+
- name: linux-aarch64-debian12
2527

2628
steps:
2729
- name: Checkout repository

Readme.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ Don't forget to replace the ghcr.io name with your tag in the `docker run` comma
3232

3333
Image | arch | gcc | glibc
3434
----------------------- | ------- | --- | ------
35-
linux-aarch64-debian11 | aarch64 | 10 | 2.31
36-
linux-armhf-ubuntu18 | armhf | 7 | 2.27
37-
linux-armhf-debian10 | armhf | 8 | 2.28
38-
linux-armhf-debian11 | armhf | 10 | 2.31
35+
linux-aarch64-debian11 | aarch64 | 10 | 2.31
36+
linux-aarch64-debian12 | aarch64 | 12 | 2.36
37+
linux-armhf-ubuntu18 | armhf | 7 | 2.27
38+
linux-armhf-debian10 | armhf | 8 | 2.28
39+
linux-armhf-debian11 | armhf | 10 | 2.31
40+
linux-armhf-debian12 | armhf | 12 | 2.36

linux-aarch64-debian12/Dockerfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
FROM debian:11-slim
2+
3+
ARG workdir=/work
4+
ENV CROSS_SYSROOT=/var/cross-sysroot
5+
6+
# install basic utilities
7+
RUN apt update && apt -y install git rsync python3
8+
9+
# git might complain about ownership, so ignore it
10+
RUN git config --global --add safe.directory $workdir
11+
12+
# install aarch64 cross-compiler
13+
RUN apt -y install g++-aarch64-linux-gnu
14+
15+
# install basic build tools
16+
RUN apt -y install build-essential make ccache cmake ninja-build
17+
18+
# setup CMake for cross-compiling
19+
RUN mkdir -p ${CROSS_SYSROOT}/include/
20+
RUN mkdir -p ${CROSS_SYSROOT}/lib/
21+
ENV CMAKE_TOOLCHAIN_FILE=${CROSS_SYSROOT}/toolchain.cmake
22+
COPY linux-aarch64-tc.cmake ${CMAKE_TOOLCHAIN_FILE}
23+
COPY cmake-cross.sh /usr/bin/cmake-cross
24+
25+
WORKDIR $workdir

linux-armhf-debian12/Dockerfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
FROM debian:11-slim
2+
3+
ARG workdir=/work
4+
ENV CROSS_SYSROOT=/var/cross-sysroot
5+
6+
# install basic utilities
7+
RUN apt update && apt -y install git rsync python3
8+
9+
# git might complain about ownership, so ignore it
10+
RUN git config --global --add safe.directory $workdir
11+
12+
# install armhf cross-compiler
13+
RUN apt -y install g++-arm-linux-gnueabihf
14+
15+
# install basic build tools
16+
RUN apt -y install build-essential make ccache cmake ninja-build
17+
18+
# setup CMake for cross-compiling
19+
RUN mkdir -p ${CROSS_SYSROOT}/include/
20+
RUN mkdir -p ${CROSS_SYSROOT}/lib/
21+
ENV CMAKE_TOOLCHAIN_FILE=${CROSS_SYSROOT}/toolchain.cmake
22+
COPY linux-armhf-tc.cmake ${CMAKE_TOOLCHAIN_FILE}
23+
COPY cmake-cross.sh /usr/bin/cmake-cross
24+
25+
WORKDIR $workdir

0 commit comments

Comments
 (0)