2018-11-08 21:08:33 +01:00
|
|
|
stages:
|
2022-08-14 12:02:55 +02:00
|
|
|
- build
|
2022-10-15 12:05:37 +02:00
|
|
|
- sign
|
2022-04-24 16:38:12 +02:00
|
|
|
- check
|
2018-11-08 21:08:33 +01:00
|
|
|
|
2022-10-10 11:35:41 +02:00
|
|
|
.base_windows_build:
|
|
|
|
before_script:
|
|
|
|
- python -m pip install -U pip wheel
|
|
|
|
- python -m pip install -r Tools/requirements.txt
|
|
|
|
- python Tools/setup.py
|
|
|
|
|
2022-12-17 14:09:10 +01:00
|
|
|
.base_linux_build:
|
2022-10-10 11:35:41 +02:00
|
|
|
before_script:
|
2022-12-17 14:22:13 +01:00
|
|
|
# Otherwise libglib2 needs interaction
|
|
|
|
- export DEBIAN_FRONTEND=noninteractive
|
2022-12-17 14:09:10 +01:00
|
|
|
- apt update -y
|
2022-12-17 14:22:13 +01:00
|
|
|
- apt install curl wget zip unzip tar git cmake pkg-config apt-transport-https ca-certificates gnupg software-properties-common python3 python3-pip build-essential libgl1-mesa-dev mesa-common-dev lld ninja-build -y
|
2022-12-17 14:11:46 +01:00
|
|
|
- python3 -m pip install -U pip
|
|
|
|
- python3 -m pip install -r Tools/requirements.txt
|
2022-12-17 14:16:54 +01:00
|
|
|
- wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
|
|
|
|
- echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal-rc main' | tee -a /etc/apt/sources.list.d/kitware.list >/dev/null
|
|
|
|
- apt update -y
|
2022-10-10 11:35:41 +02:00
|
|
|
- python3 Tools/setup.py
|
2022-01-04 10:12:03 +01:00
|
|
|
|
2022-12-17 14:09:10 +01:00
|
|
|
.base_osx_build:
|
|
|
|
before_script:
|
|
|
|
- pip3 install -U pip
|
|
|
|
- pip3 install -r Tools/requirements.txt
|
|
|
|
- python3 Tools/setup.py
|
|
|
|
|
2022-10-15 12:05:37 +02:00
|
|
|
standalone_windows:
|
2018-11-08 21:08:33 +01:00
|
|
|
stage: build
|
2022-10-10 11:35:41 +02:00
|
|
|
extends:
|
|
|
|
- .base_windows_build
|
2018-11-08 21:08:33 +01:00
|
|
|
tags:
|
2020-10-29 18:19:22 +01:00
|
|
|
- windows10
|
|
|
|
script:
|
2022-10-10 11:35:41 +02:00
|
|
|
- python Tools/build.py -type release -use-aqt -installer -deploy-version
|
2020-10-29 18:19:22 +01:00
|
|
|
artifacts:
|
2022-08-14 12:02:55 +02:00
|
|
|
expire_in: "2 weeks"
|
2020-08-10 17:42:49 +02:00
|
|
|
paths:
|
2021-09-26 17:02:25 +02:00
|
|
|
- build-x64-windows-release/bin/
|
2022-07-22 14:29:57 +02:00
|
|
|
- build-x64-windows-release/ScreenPlay-Installer.exe
|
2020-10-29 18:19:22 +01:00
|
|
|
|
2022-10-15 12:05:37 +02:00
|
|
|
standalone_osx:
|
2020-10-31 19:30:27 +01:00
|
|
|
stage: build
|
2022-10-10 11:35:41 +02:00
|
|
|
extends:
|
2022-12-17 14:09:10 +01:00
|
|
|
- .base_osx_build
|
2020-10-31 19:30:27 +01:00
|
|
|
tags:
|
|
|
|
- osx
|
|
|
|
script:
|
2022-10-10 11:35:41 +02:00
|
|
|
- python3 Tools/build.py -type release -use-aqt -deploy-version -architecture x64
|
|
|
|
- python3 Tools/build.py -type release -use-aqt -deploy-version -architecture arm64
|
|
|
|
- python3 Tools/macos_lipo.py
|
2022-02-03 17:30:59 +01:00
|
|
|
artifacts:
|
2022-08-14 12:02:55 +02:00
|
|
|
expire_in: "2 weeks"
|
2022-02-03 17:30:59 +01:00
|
|
|
paths:
|
2022-08-14 11:58:41 +02:00
|
|
|
- build-universal-osx-release/bin/
|
2022-02-03 17:30:59 +01:00
|
|
|
|
2022-12-17 14:05:47 +01:00
|
|
|
standalone_linux:
|
|
|
|
stage: build
|
|
|
|
extends:
|
2022-12-17 14:09:10 +01:00
|
|
|
- .base_linux_build
|
2022-12-17 14:05:47 +01:00
|
|
|
image:
|
|
|
|
name: ubuntu:20.04
|
|
|
|
tags:
|
|
|
|
- gitlab-org-docker
|
|
|
|
script:
|
2022-12-17 14:16:54 +01:00
|
|
|
- python3 Tools/build.py -type release -deploy-version -use-aqt -installer
|
2022-12-17 14:05:47 +01:00
|
|
|
artifacts:
|
|
|
|
expire_in: "4 weeks"
|
|
|
|
paths:
|
|
|
|
- build-x64-linux-release/bin/
|
|
|
|
|
2022-10-15 12:05:37 +02:00
|
|
|
steam_windows:
|
2022-02-03 17:30:59 +01:00
|
|
|
stage: build
|
2022-10-10 11:35:41 +02:00
|
|
|
extends:
|
|
|
|
- .base_windows_build
|
2022-02-03 17:30:59 +01:00
|
|
|
tags:
|
|
|
|
- windows10
|
|
|
|
script:
|
2022-10-10 11:35:41 +02:00
|
|
|
- python Tools/build.py -type release -steam -use-aqt -deploy-version
|
2022-02-03 17:30:59 +01:00
|
|
|
artifacts:
|
2022-08-14 12:02:55 +02:00
|
|
|
expire_in: "2 weeks"
|
2022-02-03 17:30:59 +01:00
|
|
|
paths:
|
|
|
|
- build-x64-windows-release/bin/
|
|
|
|
|
2022-10-15 12:05:37 +02:00
|
|
|
steam_osx:
|
2022-02-03 17:30:59 +01:00
|
|
|
stage: build
|
2022-10-10 11:35:41 +02:00
|
|
|
extends:
|
2022-12-17 14:09:10 +01:00
|
|
|
- .base_osx_build
|
2022-02-03 17:30:59 +01:00
|
|
|
tags:
|
|
|
|
- osx
|
|
|
|
script:
|
2022-10-10 11:35:41 +02:00
|
|
|
- python3 Tools/build.py -type release -steam -use-aqt -deploy-version -architecture x64
|
|
|
|
- python3 Tools/build.py -type release -steam -use-aqt -deploy-version -architecture arm64
|
|
|
|
- python3 Tools/macos_lipo.py
|
2022-02-03 17:30:59 +01:00
|
|
|
artifacts:
|
2022-08-14 12:02:55 +02:00
|
|
|
expire_in: "2 weeks"
|
2022-02-03 17:30:59 +01:00
|
|
|
paths:
|
2022-08-14 11:58:41 +02:00
|
|
|
- build-universal-osx-release/bin/
|
2022-02-03 17:30:59 +01:00
|
|
|
|
2022-10-15 12:05:37 +02:00
|
|
|
sign_osx:
|
|
|
|
stage: sign
|
|
|
|
needs: ["standalone_osx"]
|
|
|
|
only:
|
|
|
|
- release
|
|
|
|
tags:
|
|
|
|
- osx
|
|
|
|
script:
|
|
|
|
- python3 Tools/macos_sign.py
|
|
|
|
artifacts:
|
|
|
|
expire_in: "2 weeks"
|
|
|
|
paths:
|
|
|
|
- build-universal-osx-release/bin/
|
|
|
|
|
|
|
|
sign_osx_steam:
|
|
|
|
stage: sign
|
|
|
|
needs: ["steam_osx"]
|
|
|
|
only:
|
|
|
|
- release
|
|
|
|
tags:
|
|
|
|
- osx
|
|
|
|
script:
|
|
|
|
- python3 Tools/macos_sign.py
|
|
|
|
artifacts:
|
|
|
|
expire_in: "2 weeks"
|
|
|
|
paths:
|
|
|
|
- build-universal-osx-release/bin/
|
|
|
|
|
2022-08-14 12:02:55 +02:00
|
|
|
formatting:
|
2022-08-14 11:58:41 +02:00
|
|
|
stage: check
|
|
|
|
allow_failure: true
|
2022-02-03 17:30:59 +01:00
|
|
|
image:
|
|
|
|
name: ubuntu:20.04
|
|
|
|
tags:
|
|
|
|
- gitlab-org-docker
|
2022-08-14 11:58:41 +02:00
|
|
|
before_script:
|
|
|
|
- apt-get update -y
|
|
|
|
- apt-get install python3-pip python-is-python3 -y
|
2022-02-03 17:30:59 +01:00
|
|
|
script:
|
2022-08-14 11:58:41 +02:00
|
|
|
- python -m pip install -U pip wheel
|
|
|
|
- python -m pip install -U cmakelang
|
|
|
|
- cd ./Tools
|
|
|
|
- python clang_format.py
|
|
|
|
- python cmake_format.py
|
2020-10-30 16:40:16 +01:00
|
|
|
|
2022-08-14 12:02:55 +02:00
|
|
|
documentation:
|
2021-05-13 12:22:46 +02:00
|
|
|
stage: .post
|
|
|
|
script:
|
|
|
|
- curl --request POST --form "token=$CI_JOB_TOKEN" --form ref=master https://gitlab.com/api/v4/projects/15800262/trigger/pipeline
|