Commit 46b9b94e for libheif

commit 46b9b94e83850c4c6f45447249a9fcc076dcf4b1
Author: Dirk Farin <dirk.farin@gmail.com>
Date:   Wed Dec 31 18:19:28 2025 +0100

    add github actions to compile with various gcc versions

diff --git a/.github/workflows/gcc-versions.yml b/.github/workflows/gcc-versions.yml
new file mode 100644
index 00000000..ecede0b8
--- /dev/null
+++ b/.github/workflows/gcc-versions.yml
@@ -0,0 +1,39 @@
+name: gcc-versions
+
+on:
+  push:
+  pull_request:
+
+jobs:
+  build:
+    strategy:
+      matrix:
+        env:
+          - { NAME: "gcc-10", WITH_GRAPHICS: 1, WITH_X265: 1, WITH_AOM: 1, WITH_LIBDE265: 3, GCC: 10 }
+          - { NAME: "gcc-11", WITH_GRAPHICS: 1, WITH_X265: 1, WITH_AOM: 1, WITH_LIBDE265: 3, GCC: 11 }
+          - { NAME: "gcc-12", WITH_GRAPHICS: 1, WITH_X265: 1, WITH_AOM: 1, WITH_LIBDE265: 3, GCC: 12 }
+          - { NAME: "gcc-13", WITH_GRAPHICS: 1, WITH_X265: 1, WITH_AOM: 1, WITH_LIBDE265: 3, GCC: 13 }
+          - { NAME: "gcc-14", WITH_GRAPHICS: 1, WITH_X265: 1, WITH_AOM: 1, WITH_LIBDE265: 3, GCC: 14 }
+    env: ${{ matrix.env }}
+    runs-on: ubuntu-24.04
+    steps:
+    - uses: actions/checkout@v6
+
+    - name: Install dependencies
+      run: |
+        ./scripts/install-ci-linux.sh
+        sudo apt install gcc-${GCC} g++-${GCC}
+
+    - name: Prepare CI
+      env:
+        CC: gcc-${{matrix.env.GCC}}
+        CXX: g++-${{matrix.env.GCC}}
+      run: |
+        ./scripts/prepare-ci.sh
+
+    - name: Run tests
+      env:
+        CC: gcc-${{matrix.env.GCC}}
+        CXX: g++-${{matrix.env.GCC}}
+      run: |
+        ./scripts/run-ci.sh
diff --git a/scripts/install-ci-linux.sh b/scripts/install-ci-linux.sh
index b5785b68..38c60c6d 100755
--- a/scripts/install-ci-linux.sh
+++ b/scripts/install-ci-linux.sh
@@ -59,6 +59,12 @@ if [ "$WITH_LIBDE265" = "2" ]; then
     ls -lR $BUILD_ROOT/libde265/dist
 fi

+if [ "$WITH_LIBDE265" = "3" ]; then
+    INSTALL_PACKAGES="$INSTALL_PACKAGES \
+        libde265-dev \
+        "
+fi
+
 if [ "$WITH_AOM" = "1" ]; then
     ADD_LIBHEIF_PPA=1
     INSTALL_PACKAGES="$INSTALL_PACKAGES \