veilidchat/.gitlab-ci.yml

82 lines
2.7 KiB
YAML
Raw Normal View History

2023-09-27 13:42:27 -04:00
#variables:
# HOMEBREW_NO_AUTO_UPDATE: 1
2023-09-27 10:13:15 -04:00
2023-09-26 22:46:49 -04:00
stages:
- build
2024-02-18 13:29:37 -05:00
- build_flatpak
2023-09-27 10:01:59 -04:00
# - test
2023-09-26 22:46:49 -04:00
.macos_saas_runners:
tags:
- saas-macos-medium-m1
image: macos-12-xcode-14
before_script:
- echo "started by ${GITLAB_USER_NAME}"
2023-09-27 10:03:52 -04:00
2024-02-18 13:29:37 -05:00
build_macos:
2023-09-27 10:03:52 -04:00
extends:
- .macos_saas_runners
stage: build
2023-09-27 10:01:59 -04:00
script:
2023-09-27 10:03:52 -04:00
- echo "place holder for build"
2023-09-27 13:42:27 -04:00
- sudo softwareupdate --install-rosetta --agree-to-license
2023-09-27 10:06:10 -04:00
- git clone https://gitlab.com/veilid/veilid.git ../veilid
2023-11-19 13:10:44 -05:00
#- curl proto =https tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
#- source "$HOME/.cargo/env"
#- brew install capnp cmake wabt llvm protobuf openjdk@17 jq cocoapods
#- cargo install wasm-bindgen-cli wasm-pack cargo-edit
2023-09-27 13:42:27 -04:00
- 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"
2023-11-19 13:10:44 -05:00
- flutter upgrade
2023-11-19 12:23:17 -05:00
- yes | flutter doctor --android-licenses
2023-09-27 11:45:59 -04:00
- flutter config --enable-macos-desktop --enable-ios
- flutter config --no-analytics
- dart --disable-analytics
- flutter doctor -v
2023-11-19 13:10:44 -05:00
#- flutter build ipa
#- flutter build appbundle
2023-09-28 10:38:50 -04:00
when: manual
2023-09-26 22:46:49 -04:00
2024-02-18 13:29:37 -05:00
build_linux_amd64_bundle:
tags:
- saas-linux-medium-amd64
2024-04-01 15:37:53 -04:00
image: ghcr.io/cirruslabs/flutter:3.19.4
2024-02-18 13:29:37 -05:00
stage: build
script:
- 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
- flutter config --enable-linux-desktop
- git clone https://gitlab.com/veilid/veilid.git ../veilid
- flutter build linux
artifacts:
paths:
- build/linux/x64/release/bundle/
when: manual
build_linux_amd64_flatpak:
tags:
- saas-linux-small-amd64
image: ubuntu:23.04
stage: build_flatpak
dependencies: [build_linux_amd64_bundle]
script:
- apt-get update
- apt-get install -y --no-install-recommends flatpak flatpak-builder gnupg2 elfutils ca-certificates
2024-04-01 15:37:53 -04:00
- flatpak remote-add --no-gpg-verify --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
2024-02-18 13:29:37 -05:00
- 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
- pushd flatpak/
- flatpak-builder --force-clean build-dir com.veilid.veilidchat.yml --repo=repo
- flatpak build-bundle repo com.veilid.veilidchat.flatpak com.veilid.veilidchat
- popd
artifacts:
paths:
- flatpak/com.veilid.veilidchat.flatpak
when: manual
2023-09-27 10:01:59 -04:00
#test:
# extends:
# - .macos_saas_runners
# stage: test
# script:
# - echo "place holder for test"