File tree Expand file tree Collapse file tree 4 files changed +59
-5
lines changed
Expand file tree Collapse file tree 4 files changed +59
-5
lines changed Original file line number Diff line number Diff line change 1010
1111jobs :
1212 dockcross-build-push :
13- runs-on : ubuntu-20.04
13+ runs-on : ubuntu-latest
1414 permissions :
1515 contents : read
1616 packages : write
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
Original file line number Diff line number Diff line change @@ -32,7 +32,9 @@ Don't forget to replace the ghcr.io name with your tag in the `docker run` comma
3232
3333Image | 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments