-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
41 lines (34 loc) · 1.12 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
.vars-devel:
variables:
GIT_SUBMODULE_STRATEGY: recursive
MANIFEST_PATH: "flatpak/net.figuiere.Niepce.Devel.json"
FLATPAK_MODULE: "niepce"
APP_ID: "net.figuiere.Niepce.Devel"
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
BUNDLE: "niepce-dev.flatpak"
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
rust-fmt:
image: "registry.gitlab.com/alatiera/rustfmt-oci-image/rustfmt:stable"
needs: []
script:
- echo -e "" > niepce-main/src/config.rs
- rustc -Vv && cargo -Vv
- cargo --version
- cargo fmt --all -- --check
# Build Flatpak for x86_64
flatpak@x86_64:
extends: ['.flatpak@x86_64', '.vars-devel']
# Build Flatpak for aarch64
flatpak@aarch64:
extends: ['.flatpak@aarch64', '.vars-devel']
#nightly@x86_64:
# extends: '.publish_nightly'
# # assuming your job in named 'flatpak@x86_64'
# needs: ['flatpak@x86_64']
#nightly@aarch64:
# extends: '.publish_nightly'
# # assuming your job in named 'flatpak@aach64'
# needs: ['flatpak@aarch64']