1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-25 12:13:00 +01:00
ScreenPlay/.gitlab-ci.yml

124 lines
3.0 KiB
YAML
Raw Normal View History

2018-11-08 21:08:33 +01:00
stages:
2022-08-14 12:02:55 +02:00
- build
- sign
2022-04-24 16:38:12 +02:00
- check
2018-11-08 21:08:33 +01: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
.base_unix_build:
before_script:
- pip3 install -U pip
- pip3 install -r Tools/requirements.txt
- python3 Tools/setup.py
2022-01-04 10:12:03 +01:00
standalone_windows:
2018-11-08 21:08:33 +01:00
stage: build
extends:
- .base_windows_build
2018-11-08 21:08:33 +01:00
tags:
- windows10
script:
- python Tools/build.py -type release -use-aqt -installer -deploy-version
artifacts:
2022-08-14 12:02:55 +02:00
expire_in: "2 weeks"
paths:
- build-x64-windows-release/bin/
- build-x64-windows-release/ScreenPlay-Installer.exe
standalone_osx:
2020-10-31 19:30:27 +01:00
stage: build
extends:
- .base_unix_build
2020-10-31 19:30:27 +01:00
tags:
- osx
script:
- 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
artifacts:
2022-08-14 12:02:55 +02:00
expire_in: "2 weeks"
paths:
- build-universal-osx-release/bin/
steam_windows:
stage: build
extends:
- .base_windows_build
tags:
- windows10
script:
- python Tools/build.py -type release -steam -use-aqt -deploy-version
artifacts:
2022-08-14 12:02:55 +02:00
expire_in: "2 weeks"
paths:
- build-x64-windows-release/bin/
steam_osx:
stage: build
extends:
- .base_unix_build
tags:
- osx
script:
- 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
artifacts:
2022-08-14 12:02:55 +02:00
expire_in: "2 weeks"
paths:
- build-universal-osx-release/bin/
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:
stage: check
allow_failure: true
image:
name: ubuntu:20.04
tags:
- gitlab-org-docker
before_script:
- apt-get update -y
- apt-get install python3-pip python-is-python3 -y
script:
- 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