Simplified / Modularised the Appimage runner scripts
This commit is contained in:
parent
72a5afc910
commit
a528db1604
1 changed files with 61 additions and 145 deletions
206
.gitlab-ci.yml
206
.gitlab-ci.yml
|
|
@ -65,22 +65,22 @@ before_script:
|
||||||
- !reference [.upstream_rules, rules]
|
- !reference [.upstream_rules, rules]
|
||||||
|
|
||||||
#-----------------------------------------------------------------------#
|
#-----------------------------------------------------------------------#
|
||||||
# Linux (AppImage) i386 Build Target #
|
# OpenRGB Common Appimage Build Steps #
|
||||||
#-----------------------------------------------------------------------#
|
#-----------------------------------------------------------------------#
|
||||||
"Linux i386 AppImage":
|
.hidden_appimage_script: &appimage_script_steps
|
||||||
image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:bookworm-i386
|
image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:bookworm-${TGT_ARCH}
|
||||||
tags:
|
tags:
|
||||||
- linux
|
- linux
|
||||||
- i386
|
- ${TGT_ARCH}
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- export $(dpkg-architecture)
|
- export $(dpkg-architecture)
|
||||||
- ./scripts/build-appimage.sh
|
- ./scripts/build-appimage.sh ${TGT_QT}
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "${CI_PROJECT_NAME}_Linux_i386_${CI_COMMIT_SHORT_SHA}"
|
name: "${CI_PROJECT_NAME}_Linux_${TGT_NAME}_${CI_COMMIT_SHORT_SHA}"
|
||||||
paths:
|
paths:
|
||||||
- OpenRGB-i386.AppImage
|
- OpenRGB-${TGT_PATH}.AppImage
|
||||||
- 60-openrgb.rules
|
- 60-openrgb.rules
|
||||||
- README.md
|
- README.md
|
||||||
expire_in: 30 days
|
expire_in: 30 days
|
||||||
|
|
@ -88,62 +88,43 @@ before_script:
|
||||||
rules:
|
rules:
|
||||||
- !reference [.upstream_rules, rules]
|
- !reference [.upstream_rules, rules]
|
||||||
|
|
||||||
|
#-----------------------------------------------------------------------#
|
||||||
|
# Linux (AppImage) i386 Build Target #
|
||||||
|
#-----------------------------------------------------------------------#
|
||||||
|
"Linux i386 AppImage":
|
||||||
|
variables:
|
||||||
|
TGT_ARCH: "i386"
|
||||||
|
TGT_QT: ""
|
||||||
|
TGT_NAME: "${TGT_ARCH}"
|
||||||
|
TGT_PATH: "${TGT_ARCH}"
|
||||||
|
<<: *appimage_script_steps
|
||||||
|
|
||||||
#-----------------------------------------------------------------------#
|
#-----------------------------------------------------------------------#
|
||||||
# Linux (AppImage) Qt6 i386 Build Target #
|
# Linux (AppImage) Qt6 i386 Build Target #
|
||||||
#-----------------------------------------------------------------------#
|
#-----------------------------------------------------------------------#
|
||||||
"Linux i386 AppImage Qt6":
|
"Linux i386 AppImage Qt6":
|
||||||
image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:bookworm-i386
|
variables:
|
||||||
tags:
|
TGT_ARCH: "i386"
|
||||||
- linux
|
TGT_QT: "qt6"
|
||||||
- i386
|
TGT_NAME: "${TGT_ARCH}_${TGT_QT^}"
|
||||||
stage: build
|
TGT_PATH: "${TGT_ARCH}"
|
||||||
script:
|
<<: *appimage_script_steps
|
||||||
- export $(dpkg-architecture)
|
|
||||||
- ./scripts/build-appimage.sh qt6
|
|
||||||
|
|
||||||
artifacts:
|
|
||||||
name: "${CI_PROJECT_NAME}_Linux_i386_Qt6_${CI_COMMIT_SHORT_SHA}"
|
|
||||||
paths:
|
|
||||||
- OpenRGB-i386.AppImage
|
|
||||||
- 60-openrgb.rules
|
|
||||||
- README.md
|
|
||||||
expire_in: 30 days
|
|
||||||
|
|
||||||
rules:
|
|
||||||
- !reference [.upstream_rules, rules]
|
|
||||||
|
|
||||||
#-----------------------------------------------------------------------#
|
#-----------------------------------------------------------------------#
|
||||||
# Linux (AppImage) amd64 Build Target #
|
# Linux (AppImage) amd64 Build Target #
|
||||||
#-----------------------------------------------------------------------#
|
#-----------------------------------------------------------------------#
|
||||||
"Linux amd64 AppImage Base":
|
|
||||||
image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:bookworm-amd64
|
|
||||||
stage: build
|
|
||||||
script:
|
|
||||||
- export $(dpkg-architecture)
|
|
||||||
- ./scripts/build-appimage.sh
|
|
||||||
|
|
||||||
artifacts:
|
|
||||||
name: "${CI_PROJECT_NAME}_Linux_amd64_${CI_COMMIT_SHORT_SHA}"
|
|
||||||
paths:
|
|
||||||
- OpenRGB-x86_64.AppImage
|
|
||||||
- 60-openrgb.rules
|
|
||||||
- README.md
|
|
||||||
expire_in: 30 days
|
|
||||||
|
|
||||||
rules:
|
|
||||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event" || $CI_PIPELINE_SOURCE == "push"
|
|
||||||
when: never
|
|
||||||
|
|
||||||
"Linux amd64 AppImage":
|
"Linux amd64 AppImage":
|
||||||
extends: "Linux amd64 AppImage Base"
|
variables:
|
||||||
|
TGT_ARCH: "amd64"
|
||||||
|
TGT_QT: ""
|
||||||
|
TGT_NAME: "${TGT_ARCH}"
|
||||||
|
TGT_PATH: "x86_64"
|
||||||
|
<<: *appimage_script_steps
|
||||||
rules:
|
rules:
|
||||||
- !reference [.fork_local_runner_rules, rules]
|
- !reference [.fork_local_runner_rules, rules]
|
||||||
tags:
|
|
||||||
- linux
|
|
||||||
- amd64
|
|
||||||
|
|
||||||
"Linux amd64 AppImage (gitlab.com runner)":
|
"Linux amd64 AppImage (gitlab.com runner)":
|
||||||
extends: "Linux amd64 AppImage Base"
|
extends: "Linux amd64 AppImage"
|
||||||
rules:
|
rules:
|
||||||
- !reference [.fork_gitlab_runner_rules, rules]
|
- !reference [.fork_gitlab_runner_rules, rules]
|
||||||
tags:
|
tags:
|
||||||
|
|
@ -153,121 +134,56 @@ before_script:
|
||||||
# Linux (AppImage) Qt6 amd64 Build Target #
|
# Linux (AppImage) Qt6 amd64 Build Target #
|
||||||
#-----------------------------------------------------------------------#
|
#-----------------------------------------------------------------------#
|
||||||
"Linux amd64 AppImage Qt6":
|
"Linux amd64 AppImage Qt6":
|
||||||
image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:bookworm-amd64
|
variables:
|
||||||
tags:
|
TGT_ARCH: "amd64"
|
||||||
- linux
|
TGT_QT: "qt6"
|
||||||
- amd64
|
TGT_NAME: "${TGT_ARCH}_${TGT_QT^}"
|
||||||
stage: build
|
TGT_PATH: "x86_64"
|
||||||
script:
|
<<: *appimage_script_steps
|
||||||
- export $(dpkg-architecture)
|
|
||||||
- ./scripts/build-appimage.sh qt6
|
|
||||||
|
|
||||||
artifacts:
|
|
||||||
name: "${CI_PROJECT_NAME}_Linux_amd64_Qt6_${CI_COMMIT_SHORT_SHA}"
|
|
||||||
paths:
|
|
||||||
- OpenRGB-x86_64.AppImage
|
|
||||||
- 60-openrgb.rules
|
|
||||||
- README.md
|
|
||||||
expire_in: 30 days
|
|
||||||
|
|
||||||
rules:
|
|
||||||
- !reference [.upstream_rules, rules]
|
|
||||||
|
|
||||||
#-----------------------------------------------------------------------#
|
#-----------------------------------------------------------------------#
|
||||||
# Linux (AppImage) armhf Build Target #
|
# Linux (AppImage) armhf Build Target #
|
||||||
#-----------------------------------------------------------------------#
|
#-----------------------------------------------------------------------#
|
||||||
"Linux armhf AppImage":
|
"Linux armhf AppImage":
|
||||||
image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:bookworm-armhf
|
variables:
|
||||||
tags:
|
TGT_ARCH: "armhf"
|
||||||
- linux
|
TGT_QT: ""
|
||||||
- armhf
|
TGT_NAME: "${TGT_ARCH}"
|
||||||
stage: build
|
TGT_PATH: "${TGT_ARCH}"
|
||||||
script:
|
<<: *appimage_script_steps
|
||||||
- export $(dpkg-architecture)
|
|
||||||
- ./scripts/build-appimage.sh
|
|
||||||
|
|
||||||
artifacts:
|
|
||||||
name: "${CI_PROJECT_NAME}_Linux_armhf_${CI_COMMIT_SHORT_SHA}"
|
|
||||||
paths:
|
|
||||||
- OpenRGB-armhf.AppImage
|
|
||||||
- 60-openrgb.rules
|
|
||||||
- README.md
|
|
||||||
expire_in: 30 days
|
|
||||||
|
|
||||||
rules:
|
|
||||||
- !reference [.upstream_rules, rules]
|
|
||||||
|
|
||||||
#-----------------------------------------------------------------------#
|
#-----------------------------------------------------------------------#
|
||||||
# Linux (AppImage) Qt6 armhf Build Target #
|
# Linux (AppImage) Qt6 armhf Build Target #
|
||||||
#-----------------------------------------------------------------------#
|
#-----------------------------------------------------------------------#
|
||||||
"Linux armhf AppImage Qt6":
|
"Linux armhf AppImage Qt6":
|
||||||
image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:bookworm-armhf
|
variables:
|
||||||
tags:
|
TGT_ARCH: "armhf"
|
||||||
- linux
|
TGT_QT: "qt6"
|
||||||
- armhf
|
TGT_NAME: "${TGT_ARCH}_${TGT_QT^}"
|
||||||
stage: build
|
TGT_PATH: "${TGT_ARCH}"
|
||||||
script:
|
<<: *appimage_script_steps
|
||||||
- export $(dpkg-architecture)
|
|
||||||
- ./scripts/build-appimage.sh qt6
|
|
||||||
|
|
||||||
artifacts:
|
|
||||||
name: "${CI_PROJECT_NAME}_Linux_armhf_Qt6_${CI_COMMIT_SHORT_SHA}"
|
|
||||||
paths:
|
|
||||||
- OpenRGB-armhf.AppImage
|
|
||||||
- 60-openrgb.rules
|
|
||||||
- README.md
|
|
||||||
expire_in: 30 days
|
|
||||||
|
|
||||||
rules:
|
|
||||||
- !reference [.upstream_rules, rules]
|
|
||||||
|
|
||||||
#-----------------------------------------------------------------------#
|
#-----------------------------------------------------------------------#
|
||||||
# Linux (AppImage) arm64 Build Target #
|
# Linux (AppImage) arm64 Build Target #
|
||||||
#-----------------------------------------------------------------------#
|
#-----------------------------------------------------------------------#
|
||||||
"Linux arm64 AppImage":
|
"Linux arm64 AppImage":
|
||||||
image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:bookworm-arm64
|
variables:
|
||||||
tags:
|
TGT_ARCH: "arm64"
|
||||||
- linux
|
TGT_QT: ""
|
||||||
- arm64
|
TGT_NAME: "${TGT_ARCH}"
|
||||||
stage: build
|
TGT_PATH: "${TGT_ARCH}"
|
||||||
script:
|
<<: *appimage_script_steps
|
||||||
- export $(dpkg-architecture)
|
|
||||||
- ./scripts/build-appimage.sh
|
|
||||||
|
|
||||||
artifacts:
|
|
||||||
name: "${CI_PROJECT_NAME}_Linux_arm64_${CI_COMMIT_SHORT_SHA}"
|
|
||||||
paths:
|
|
||||||
- OpenRGB-arm64.AppImage
|
|
||||||
- 60-openrgb.rules
|
|
||||||
- README.md
|
|
||||||
expire_in: 30 days
|
|
||||||
|
|
||||||
rules:
|
|
||||||
- !reference [.upstream_rules, rules]
|
|
||||||
|
|
||||||
#-----------------------------------------------------------------------#
|
#-----------------------------------------------------------------------#
|
||||||
# Linux (AppImage) Qt6 arm64 Build Target #
|
# Linux (AppImage) Qt6 arm64 Build Target #
|
||||||
#-----------------------------------------------------------------------#
|
#-----------------------------------------------------------------------#
|
||||||
"Linux arm64 AppImage Qt6":
|
"Linux arm64 AppImage Qt6":
|
||||||
image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:bookworm-arm64
|
variables:
|
||||||
tags:
|
TGT_ARCH: "arm64"
|
||||||
- linux
|
TGT_QT: "qt6"
|
||||||
- arm64
|
TGT_NAME: "${TGT_ARCH}_${TGT_QT^}"
|
||||||
stage: build
|
TGT_PATH: "${TGT_ARCH}"
|
||||||
script:
|
<<: *appimage_script_steps
|
||||||
- export $(dpkg-architecture)
|
|
||||||
- ./scripts/build-appimage.sh qt6
|
|
||||||
|
|
||||||
artifacts:
|
|
||||||
name: "${CI_PROJECT_NAME}_Linux_arm64_Qt6_${CI_COMMIT_SHORT_SHA}"
|
|
||||||
paths:
|
|
||||||
- OpenRGB-arm64.AppImage
|
|
||||||
- 60-openrgb.rules
|
|
||||||
- README.md
|
|
||||||
expire_in: 30 days
|
|
||||||
|
|
||||||
rules:
|
|
||||||
- !reference [.upstream_rules, rules]
|
|
||||||
|
|
||||||
#-----------------------------------------------------------------------#
|
#-----------------------------------------------------------------------#
|
||||||
# OpenRGB Common Debian Build Steps #
|
# OpenRGB Common Debian Build Steps #
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue