Flatpak CI Update

This commit is contained in:
Paul Sajna 2025-04-04 15:54:30 +00:00 committed by Christien Rioux
parent f4407e5284
commit 02b03c8cab
2 changed files with 40 additions and 36 deletions

View file

@ -3,67 +3,71 @@
stages: stages:
- build - build
- build_flatpak
# - test
.macos_saas_runners: #.macos_saas_runners:
tags: # tags:
- saas-macos-medium-m1 # - saas-macos-medium-m1
image: macos-12-xcode-14 # image: macos-12-xcode-14
before_script: # before_script:
- echo "started by ${GITLAB_USER_NAME}" # - echo "started by ${GITLAB_USER_NAME}"
build_macos: #build_macos:
extends: # extends:
- .macos_saas_runners # - .macos_saas_runners
stage: build # stage: build
script: # script:
- echo "place holder for build" # - echo "place holder for build"
- sudo softwareupdate --install-rosetta --agree-to-license # - sudo softwareupdate --install-rosetta --agree-to-license
- git clone https://gitlab.com/veilid/veilid.git ../veilid # - git clone https://gitlab.com/veilid/veilid.git ../veilid
#- curl proto =https tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y #- curl proto =https tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
#- source "$HOME/.cargo/env" #- source "$HOME/.cargo/env"
#- brew install capnp cmake wabt llvm protobuf openjdk@17 jq cocoapods #- brew install capnp cmake wabt llvm protobuf openjdk@17 jq cocoapods
#- cargo install wasm-bindgen-cli wasm-pack cargo-edit #- cargo install wasm-bindgen-cli wasm-pack cargo-edit
- wget https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_arm64_3.13.5-stable.zip # - wget https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_arm64_3.13.5-stable.zip
- unzip flutter_macos_arm64_3.13.5-stable.zip && export PATH="$PATH:`pwd`/flutter/bin" # - unzip flutter_macos_arm64_3.13.5-stable.zip && export PATH="$PATH:`pwd`/flutter/bin"
- flutter upgrade # - flutter upgrade
- yes | flutter doctor --android-licenses # - yes | flutter doctor --android-licenses
- flutter config --enable-macos-desktop --enable-ios # - flutter config --enable-macos-desktop --enable-ios
- flutter config --no-analytics # - flutter config --no-analytics
- dart --disable-analytics # - dart --disable-analytics
- flutter doctor -v # - flutter doctor -v
#- flutter build ipa #- flutter build ipa
#- flutter build appbundle #- flutter build appbundle
when: manual # only:
# - schedules
build_linux_amd64_bundle: build_linux_amd64_bundle:
stage: build
tags: tags:
- saas-linux-medium-amd64 - saas-linux-medium-amd64
image: ghcr.io/cirruslabs/flutter:3.19.4 image: ghcr.io/cirruslabs/flutter:3.29.2
stage: build
script: script:
- apt-get update - apt-get update
- apt-get install -y --no-install-recommends cmake ninja-build clang build-essential pkg-config libgtk-3-dev liblzma-dev lcov rustc cargo - apt-get install -y --no-install-recommends cmake ninja-build clang build-essential pkg-config libgtk-3-dev liblzma-dev lcov rustup
- rustup toolchain install 1.81 --profile minimal --no-self-update
- flutter config --enable-linux-desktop - flutter config --enable-linux-desktop
- git clone https://gitlab.com/veilid/veilid.git ../veilid - git clone https://gitlab.com/veilid/veilid.git ../veilid
- flutter build linux - flutter build linux
artifacts: artifacts:
paths: paths:
- build/linux/x64/release/bundle/ - build/linux/x64/release/bundle/
when: manual only:
- schedules
build_linux_amd64_flatpak: build_linux_amd64_flatpak:
tags: tags:
- saas-linux-small-amd64 - saas-linux-small-amd64
image: ubuntu:23.04 image: ubuntu:24.04
stage: build_flatpak stage: build
dependencies: [build_linux_amd64_bundle] dependencies: [build_linux_amd64_bundle]
needs:
- job: build_linux_amd64_bundle
artifacts: true
script: script:
- apt-get update - apt-get update
- apt-get install -y --no-install-recommends flatpak flatpak-builder gnupg2 elfutils ca-certificates - apt-get install -y --no-install-recommends flatpak flatpak-builder gnupg2 elfutils ca-certificates
- flatpak remote-add --no-gpg-verify --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo - flatpak remote-add --no-gpg-verify --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
- flatpak install -y --noninteractive org.gnome.Sdk/x86_64/45 org.gnome.Platform/x86_64/45 app/org.flathub.flatpak-external-data-checker/x86_64/stable org.freedesktop.appstream-glib - flatpak install -y --noninteractive org.gnome.Sdk/x86_64/46 org.gnome.Platform/x86_64/46 app/org.flathub.flatpak-external-data-checker/x86_64/stable org.freedesktop.appstream-glib
- pushd flatpak/ - pushd flatpak/
- flatpak-builder --force-clean build-dir com.veilid.veilidchat.yml --repo=repo - flatpak-builder --force-clean build-dir com.veilid.veilidchat.yml --repo=repo
- flatpak build-bundle repo com.veilid.veilidchat.flatpak com.veilid.veilidchat - flatpak build-bundle repo com.veilid.veilidchat.flatpak com.veilid.veilidchat
@ -71,8 +75,8 @@ build_linux_amd64_flatpak:
artifacts: artifacts:
paths: paths:
- flatpak/com.veilid.veilidchat.flatpak - flatpak/com.veilid.veilidchat.flatpak
when: manual only:
- schedules
#test: #test:
# extends: # extends:
# - .macos_saas_runners # - .macos_saas_runners

View file

@ -3,7 +3,7 @@
--- ---
app-id: com.veilid.veilidchat app-id: com.veilid.veilidchat
runtime: org.gnome.Platform runtime: org.gnome.Platform
runtime-version: "45" runtime-version: "46"
sdk: org.gnome.Sdk sdk: org.gnome.Sdk
command: veilidchat command: veilidchat
separate-locales: false separate-locales: false