-
Notifications
You must be signed in to change notification settings - Fork 29
/
.gitlab-ci.yml
36 lines (34 loc) · 1.04 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
# SPDX-FileCopyrightText: None
# SPDX-License-Identifier: CC0-1.0
# KDE jobs
include:
- project: sysadmin/ci-utilities
rules:
- if: $CI_SERVER_HOST =~ /kde\.org$/
file:
- /gitlab-templates/linux.yml
- /gitlab-templates/freebsd.yml
- /gitlab-templates/windows.yml
- /gitlab-templates/linux-qt6.yml
- /gitlab-templates/freebsd-qt6.yml
# Gitlab jobs
mingw-win32-build:
stage: build
image: maxrd2/arch-mingw
only:
- /^obs/.*/
- $CI_SERVER_HOST =~ /gitlab\.com$/
script:
- |-
git="git -C $CI_PROJECT_DIR"
$git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'
$git fetch origin --depth=200
gitver="$($git describe --always --tags --abbrev=10 "${CI_COMMIT_SHA}")"
echo "SubtitleComposer $gitver" > $CI_PROJECT_DIR/version.txt
- pkg/mingw/build.sh
# gitlab artifact paths are relative to CI_PROJECT_DIR
- mv /home/devel/build/SubtitleComposerSetup.exe $CI_PROJECT_DIR
artifacts:
paths:
- SubtitleComposerSetup.exe
- version.txt