Authenticator/.gitlab-ci.yml
Maximiliano Sandoval R 6c49745014
ci: Remove duplicated extends: .flatpak
Having this both on the variables and extends of the flatpak@aarch64
build caused it to not be build with aarch64.
2023-09-05 19:52:36 +02:00

64 lines
1.7 KiB
YAML

include:
- project: 'gnome/citemplates'
file: 'flatpak/flatpak-ci-initiative-sdk-extensions.yml'
.vars-devel:
variables:
MANIFEST_PATH: "build-aux/com.belmoussaoui.Authenticator.Devel.json"
FLATPAK_MODULE: "authenticator"
APP_ID: "com.belmoussaoui.Authenticator.Devel"
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
BUNDLE: "authenticator-nightly.flatpak"
stages:
- build
- publish
- deploy
# Build Flatpak for x86_64
build-flatpak:
extends: ['.flatpak@x86_64', '.vars-devel']
stage: build
# Build Flatpak for aarch64
build-flatpak-aarch64:
extends: ['.flatpak@aarch64', '.vars-devel']
stage: build
nightly@x86_64:
extends: '.publish_nightly'
needs: ['build-flatpak']
nightly@aarch64:
extends: '.publish_nightly'
needs: ['build-flatpak-aarch64']
pages:
image: "quay.io/gnome_infrastructure/gnome-runtime-images:gnome-master"
stage: build
extends: ['.vars-devel', '.flatpak@x86_64']
tags:
- flatpak
script:
#- tar xf repo.tar
- flatpak-builder --keep-build-dirs --user --disable-rofiles-fuse --stop-at=${FLATPAK_MODULE} flatpak_docs --repo=repo ${BRANCH:+--default-branch=$BRANCH} ${MANIFEST_PATH}
- echo "ninja src/doc" | flatpak-builder --force-clean --disable-rofiles-fuse --build-shell=${FLATPAK_MODULE} flatpak_docs ${MANIFEST_PATH}
- mv .flatpak-builder/build/${FLATPAK_MODULE}/_flatpak_build/src/doc public
- chmod -R a=rwx public
artifacts:
paths:
- 'public'
only:
refs:
- master
rustfmt:
image: "rust:slim"
stage: ".pre"
script:
- rustup component add rustfmt
- echo -e "" >> src/config.rs
- rustc -Vv && cargo -Vv
- cargo fmt --version
- cargo fmt --all -- --color=always --check