Skip to content

Commit c37e8af

Browse files
removed ubuntu focal/debian buster
added debian trixie armv6 (upgrade from bookworm)
1 parent dc11957 commit c37e8af

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

.github/workflows/package.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,20 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
os: [
20-
{ distribution: ubuntu, codename: focal, description: Ubuntu 20.04 (Focal Fossa), target_platform: "['amd64', 'arm64', 'armv7']" },
2120
{ distribution: ubuntu, codename: jammy, description: Ubuntu 22.04 (Jammy Jellyfish), target_platform: "['amd64', 'arm64', 'armv7']" },
2221
{ distribution: ubuntu, codename: noble, description: Ubuntu 24.04 (Noble Numbat), target_platform: "['amd64', 'arm64', 'armv7']" },
2322
{ distribution: ubuntu, codename: oracular, description: Ubuntu 24.10 (Oracular Oriole), target_platform: "['amd64', 'arm64', 'armv7']" },
2423
{ distribution: ubuntu, codename: plucky, description: Ubuntu 25.04 (Plucky Puffin), target_platform: "['amd64', 'arm64', 'armv7']" },
25-
{ distribution: debian, codename: buster, description: Debian 10.x (Buster), target_platform: "['amd64', 'arm64', 'armv6', 'armv7']" },
2624
{ distribution: debian, codename: bullseye, description: Debian 11.x (Bullseye), target_platform: "['amd64', 'arm64', 'armv6', 'armv7']" },
2725
{ distribution: debian, codename: bookworm, description: Debian 12.x (Bookworm), target_platform: "['amd64', 'arm64', 'armv6', 'armv7']" },
28-
{ distribution: debian, codename: trixie, description: Debian 13.x (Trixie), target_platform: "['amd64', 'arm64', 'armv7']" },
26+
{ distribution: debian, codename: trixie, description: Debian 13.x (Trixie), target_platform: "['amd64', 'arm64', 'armv6', 'armv7']" },
2927
{ distribution: fedora, codename: 39, description: Fedora 39, target_platform: "['amd64', 'arm64']" },
3028
{ distribution: fedora, codename: 40, description: Fedora 40, target_platform: "['amd64', 'arm64']" },
3129
{ distribution: fedora, codename: 41, description: Fedora 41, target_platform: "['amd64', 'arm64']" },
3230
{ distribution: fedora, codename: 42, description: Fedora 42, target_platform: "['amd64', 'arm64']" }
3331
]
3432
qt_version: [ 5, 6 ]
35-
exclude:
36-
# Qt6 is not available on Ubuntu Focal and Debian Buster
37-
# Qt6 on Debian Bullseye (only armv6) is excluded in reusable workflow qt5_6.yml because target_platform is passed as string to reusable workflow
38-
- os: { codename: focal }
39-
qt_version: 6
40-
- os: { codename: buster }
41-
qt_version: 6
33+
# Qt6 on Debian Bullseye (only armv6) is excluded in reusable workflow qt5_6.yml because target_platform is passed as string to reusable workflow
4234

4335
uses: ./.github/workflows/qt5_6.yml
4436
secrets: inherit

.github/workflows/qt5_6.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,11 @@ jobs:
9696
outputs: type=image,name=ghcr.io/${{ env.REPOSITORY }}/${{ inputs.distribution }},push-by-digest=true,name-canonical=true,push=true
9797
build-args: |
9898
DIST=${{ inputs.distribution }}
99-
SUITE=${{ inputs.codename }}
99+
SUITE=${{ inputs.codename == 'trixie' && matrix.target_platform == 'armv6' && 'bookworm' || inputs.codename }}
100100
QT_VERSION=${{ inputs.qt_version }}
101101
REPOSITORY="${{ github.server_url }}/${{ env.REPOSITORY }}"
102102
CMAKE_VERSION=${{ env.CMAKE_VERSION }}
103+
UPGRADE_TO_TRIXIE=${{ inputs.codename == 'trixie' && matrix.target_platform == 'armv6' && 'true' || 'false' }}
103104
104105
- name: ⬇ Export digest
105106
run: |

debian-armv6

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
ARG SUITE="buster"
2+
ARG UPGRADE_TO_TRIXIE="false"
23
ARG QT_VERSION="5"
34
ARG REPOSITORY="https://github.com/hyperion-project"
45
ARG CMAKE_VERSION="3.28.3"
56

67
FROM balenalib/rpi-raspbian:${SUITE}
78

89
ARG SUITE
10+
ARG UPGRADE_TO_TRIXIE
911
ARG QT_VERSION
1012
ARG REPOSITORY
1113
ARG CMAKE_VERSION
@@ -18,6 +20,13 @@ ENV TARGETPLATFORM=${TARGETPLATFORM:-linux/arm/v6}
1820
# update
1921
RUN apt-get update
2022

23+
# upgrade from Bookworm to Trixie
24+
RUN if [ "$UPGRADE_TO_TRIXIE" = "true" ]; then \
25+
apt-get dist-upgrade; \
26+
sed -i -e 's/bookworm/trixie/g' /etc/apt/sources.list; \
27+
apt update && apt-get -y full-upgrade && apt -y clean && apt -y autoremove; \
28+
fi
29+
2130
# install qt5 or qt6 (qt6 is not available on debian buster/bullseye)
2231
RUN if [ "$SUITE" = "bookworm" ] && [ "$QT_VERSION" = "6" ]; then \
2332
apt-get -y install qt6-base-dev libqt6sql6-sqlite qt6-serialport-dev qt6-websockets-dev libxkbcommon-dev libvulkan-dev libgl1-mesa-dev; \

0 commit comments

Comments
 (0)