-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
62 lines (60 loc) · 1.43 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
stages:
- build
- deploy
build:
tags:
- macos
stage: build
before_script:
- export PACKAGE_VERSION=$(cat control | grep Version | awk '{ print $2 }')-$CI_PIPELINE_IID+$CI_COMMIT_REF_NAME
- export PATH=/opt/homebrew/bin:$PATH
- export LIBRARY_PATH=/opt/homebrew/lib
- export CPATH=/opt/homebrew/include
- |
for d in $(brew --prefix)/opt/*/libexec/gnubin; do
export PATH=$d:$PATH
done
script:
- make package
cache:
paths:
- .theos
artifacts:
paths:
- packages/com.beeper.brooklyn_*.deb
pages:
stage: deploy
image: debian
variables:
GIT_STRATEGY: none
before_script:
- apt update && apt install dpkg-dev -y
script:
- dpkg-scanpackages ./packages/ > Packages
- cat Packages | gzip -9c > Packages.gz
- PKGS=$(wc -c Packages)
- PKGS_GZ=$(wc -c Packages.gz)
- |
cat > Release << EOF
Origin: Beeper
Label: Beeper
Architectures: iphoneos-arm
Date: $(date -R)
MD5Sum:
$(md5sum Packages | cut -d" " -f1) $PKGS
$(md5sum Packages.gz | cut -d" " -f1) $PKGS_GZ
SHA1:
$(sha1sum Packages | cut -d" " -f1) $PKGS
$(sha1sum Packages.gz | cut -d" " -f1) $PKGS_GZ
SHA256:
$(sha256sum Packages | cut -d" " -f1) $PKGS
$(sha256sum Packages.gz | cut -d" " -f1) $PKGS_GZ
EOF
- mkdir -p public/packages/
- mv -f packages/* public/packages/
- mv -f Packages Packages.gz Release public/
artifacts:
paths:
- public
only:
- main