43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
stages:
|
|
- build
|
|
- deploy
|
|
|
|
build-native:
|
|
image: registry.gitlab.com/b0/matrique/qt
|
|
stage: build
|
|
before_script:
|
|
- git submodule update --init --recursive
|
|
script:
|
|
- mkdir -p build && cd build
|
|
- qmake ../matrique.pro -spec linux-g++ CONFIG+=qtquickcompiler
|
|
- make -j4
|
|
artifacts:
|
|
paths:
|
|
- build
|
|
|
|
build-flatpak:
|
|
image: registry.gitlab.com/b0/matrique/flatpak
|
|
stage: build
|
|
before_script:
|
|
- git submodule update --init --recursive
|
|
script:
|
|
- cd flatpak
|
|
- flatpak-builder --force-clean --repo=repo build-dir org.eu.encom.matrique.json
|
|
- flatpak build-bundle repo matrique.flatpak org.eu.encom.matrique
|
|
- cd ../
|
|
artifacts:
|
|
paths:
|
|
- flatpak/matrique.flatpak
|
|
|
|
deploy-flatpak:
|
|
stage: deploy
|
|
only:
|
|
- master
|
|
tags:
|
|
- deploy-flatpak
|
|
dependencies: []
|
|
before_script:
|
|
- git submodule update --init --recursive
|
|
script:
|
|
- cd flatpak
|
|
- flatpak-builder --repo=/var/www/matrique-flatpak build-dir org.eu.encom.matrique.json --force-clean --gpg-sign=52986BF4D61350EC249F2E891B0DB3358FC5E4B2 |