summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2024-01-06 17:14:14 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2024-01-07 14:13:24 +0100
commit45406337236c0dffbd2255d2e41228f5eaae7388 (patch)
treea32c9121c059c8ab3b5b17d9424b1aedc85f9650
parentMerge pull request #1635 from NepNep21/ignore-command (diff)
downloadnheko-45406337236c0dffbd2255d2e41228f5eaae7388.tar.xz
try cross-platform builds on amd64 docker runners
-rw-r--r--.gitlab-ci.yml14
-rw-r--r--im.nheko.Nheko.yaml6
2 files changed, 13 insertions, 7 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 501976dc..b64e1d53 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -289,15 +289,20 @@ codesign-macos:
 
 build-flatpak:
   stage: build
-  image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/ubuntu:latest
+  image:
+    name: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/ubuntu:latest
+    #docker:
+    #  platform: ${ARCH}
   #image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master'
   tags: 
-    - docker-${ARCH}
+    - docker-amd64
   parallel:
     matrix:
       - ARCH: amd64
+        AARCH: x86_64
         JOBS: 0
       - ARCH: arm64
+        AARCH: aarch64
         JOBS: 3
   before_script:
     - apt-get update && apt-get -y install flatpak-builder git python3 curl python3-aiohttp python3-tenacity gir1.2-ostree-1.0
@@ -308,8 +313,8 @@ build-flatpak:
     - export VERSION=$(git describe)
     - mkdir -p build-flatpak
     - cd build-flatpak
-    - flatpak-builder --install-deps-from=flathub --user --disable-rofiles-fuse --ccache --repo=repo --default-branch=${CI_COMMIT_REF_NAME//\//_} --subject="Build of Nheko ${VERSION} `date` for ${ARCH}" app ../im.nheko.Nheko.yaml --jobs=$JOBS
-    - flatpak build-bundle repo nheko-${ARCH}.flatpak im.nheko.Nheko ${CI_COMMIT_REF_NAME//\//_}
+    - flatpak-builder --arch=${AARCH} --install-deps-from=flathub --user --disable-rofiles-fuse --ccache --repo=repo --default-branch=${CI_COMMIT_REF_NAME//\//_} --subject="Build of Nheko ${VERSION} `date` for ${ARCH}" app ../im.nheko.Nheko.yaml --jobs=$JOBS
+    - flatpak --arch=${AARCH} build-bundle repo nheko-${ARCH}.flatpak im.nheko.Nheko ${CI_COMMIT_REF_NAME//\//_}
   after_script:
     - bash ./.ci/upload-nightly-gitlab.sh build-flatpak/nheko-${ARCH}.flatpak
     - (cd ./scripts && ./upload-to-flatpak-repo.sh ../build-flatpak/repo) || exit_code=$?
@@ -325,6 +330,7 @@ build-flatpak:
     paths: ['build-flatpak/nheko-${ARCH}.flatpak']
     name: flatpak-${CI_COMMIT_REF_NAME}-${VERSION}-${ARCH}
 
+
 # disabled until I find a qt6.5 ppa for Ubuntu
 .appimage-amd64:
   stage: build
diff --git a/im.nheko.Nheko.yaml b/im.nheko.Nheko.yaml
index f8da2a22..a71f2b18 100644
--- a/im.nheko.Nheko.yaml
+++ b/im.nheko.Nheko.yaml
@@ -195,15 +195,15 @@ modules:
       -  -Dgst-plugins-base:gl_winsys=x11,wayland
       -  -Dgst-plugins-base:x11=enabled
       -  -Dgst-plugins-base:xshm=enabled
-  - buildsystem: qmake
+  - buildsystem: cmake
     name: qt-jdenticon
     no-make-install: true
     build-commands:
       - mkdir -p /app/bin/
       - cp libqtjdenticon.so /app/bin/
     sources:
-      - commit: 0346c228f1d544581dfd72a4dceb84f8714570dd
-        tag: v0.3.0
+      - commit: 1e7013d64fd081d76e4ce69f2693129c817fd8f1
+        #tag: v0.3.0
         type: git
         url: https://github.com/Nheko-Reborn/qt-jdenticon.git
   - buildsystem: meson