diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 544c3eaf..cac060ae 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -32,7 +32,7 @@ before_script: #-----------------------------------------------------------------------# "Linux 32 AppImage": <<: *ccache_init - image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:buster-32 + image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:bullseye-32 stage: build script: - export $(dpkg-architecture) @@ -51,7 +51,7 @@ before_script: #-----------------------------------------------------------------------# "Linux 64 AppImage": <<: *ccache_init - image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:buster-64 + image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:bullseye-64 stage: build script: - export $(dpkg-architecture) @@ -66,9 +66,9 @@ before_script: expire_in: 30 days #-----------------------------------------------------------------------# -# Linux (.deb) 32-bit Build Target # +# Linux (.deb) Debian Buster (Legacy) 32-bit Build Target # #-----------------------------------------------------------------------# -"Linux 32 deb": +"Linux 32 .deb (Debian Buster)": <<: *ccache_init image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:buster-32 stage: build @@ -87,9 +87,9 @@ before_script: expire_in: 30 days #-----------------------------------------------------------------------# -# Linux (.deb) 64-bit Build Target # +# Linux (.deb) Debian Buster (Legacy) 64-bit Build Target # #-----------------------------------------------------------------------# -"Linux 64 deb": +"Linux 64 .deb (Debian Buster)": <<: *ccache_init image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:buster-64 stage: build @@ -107,43 +107,14 @@ before_script: - openrgb-dbgsym*.deb expire_in: 30 days -#-----------------------------------------------------------------------# -# Linux (.rpm) 64-bit Build Target # -#-----------------------------------------------------------------------# -"Linux 64 rpm": - image: fedora:34 - stage: build - script: - - dnf install rpmdevtools dnf-plugins-core -y - - rpmdev-setuptree - - ls /root/ - - cp fedora/OpenRGB.spec /root/rpmbuild/SPECS - - cp ../OpenRGB /root/rpmbuild/SOURCES/ -r - - cd /root/rpmbuild/SOURCES - - tar -cf OpenRGB.tar.gz OpenRGB/ - - cd .. - - dnf builddep SPECS/OpenRGB.spec -y - - rpmbuild -ba SPECS/OpenRGB.spec - - cd RPMS/x86_64/ - - mv openrgb*.rpm ${CI_PROJECT_DIR}/ - - cd ${CI_PROJECT_DIR} - - artifacts: - name: "${CI_PROJECT_NAME}_Linux_64_rpm_${CI_COMMIT_SHORT_SHA}" - paths: - - openrgb*.rpm - expire_in: 30 days - #-----------------------------------------------------------------------# # Linux (.deb) Debian Bullseye 32-bit Build Target # #-----------------------------------------------------------------------# -"Linux 32 deb Bullseye": +"Linux 32 .deb (Debian Bullseye)": <<: *ccache_init - image: i386/debian:bullseye + image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:bullseye-32 stage: build script: - - apt update - - apt install -y build-essential qtcreator qtbase5-dev libusb-1.0-0-dev libhidapi-dev libmbedtls-dev pkgconf wget git file debhelper - dpkg-architecture -l - dpkg-buildpackage --target-arch i386 -us -B - rm -v ../openrgb-dbgsym*.deb @@ -156,17 +127,15 @@ before_script: exclude: - openrgb-dbgsym*.deb expire_in: 30 days - + #-----------------------------------------------------------------------# # Linux (.deb) Debian Bullseye 64-bit Build Target # #-----------------------------------------------------------------------# -"Linux 64 deb Bullseye": +"Linux 64 .deb (Debian Bullseye)": <<: *ccache_init - image: debian:bullseye + image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:bullseye-64 stage: build script: - - apt update - - apt install -y build-essential qtcreator qtbase5-dev libusb-1.0-0-dev libhidapi-dev libmbedtls-dev pkgconf wget git file debhelper - dpkg-architecture -l - dpkg-buildpackage -us -B - rm -v ../openrgb-dbgsym*.deb @@ -180,6 +149,33 @@ before_script: - openrgb-dbgsym*.deb expire_in: 30 days +#-----------------------------------------------------------------------# +# Linux (.rpm) 64-bit Build Target # +#-----------------------------------------------------------------------# +"Linux 64 rpm": + image: fedora:34 + stage: build + script: + - dnf install rpmdevtools dnf-plugins-core -y + - rpmdev-setuptree + - ls /root/ + - cp fedora/OpenRGB.spec /root/rpmbuild/SPECS + - cp ../OpenRGB /root/rpmbuild/SOURCES/ -r + - cd /root/rpmbuild/SOURCES + - tar -cf OpenRGB.tar.gz OpenRGB/ + - cd .. + - dnf builddep SPECS/OpenRGB.spec -y + - rpmbuild -ba SPECS/OpenRGB.spec + - cd RPMS/x86_64/ + - mv openrgb*.rpm ${CI_PROJECT_DIR}/ + - cd ${CI_PROJECT_DIR} + + artifacts: + name: "${CI_PROJECT_NAME}_Linux_64_rpm_${CI_COMMIT_SHORT_SHA}" + paths: + - openrgb*.rpm + expire_in: 30 days + #-----------------------------------------------------------------------# # Debian 32 Buster test # #-----------------------------------------------------------------------# @@ -193,83 +189,49 @@ before_script: - openrgb -l - apt remove -y openrgb dependencies: - - "Linux 32 deb" + - "Linux 32 .deb (Debian Buster)" needs: - - "Linux 32 deb" + - "Linux 32 .deb (Debian Buster)" #-----------------------------------------------------------------------# -# Debian 32 Bullseye test # +# Debian 64 Buster test # #-----------------------------------------------------------------------# -"Debian 32 Bullseye": - image: i386/debian:bullseye +"Debian 64 Buster": + image: amd64/debian:buster stage: test script: - apt update - - DEBIAN_FRONTEND=noninteractive apt install -yq --no-install-recommends ./openrgb*i386.deb + - DEBIAN_FRONTEND=noninteractive apt install -yq --no-install-recommends ./openrgb*amd64.deb - openrgb --version - openrgb -l - apt remove -y openrgb dependencies: - - "Linux 32 deb" + - "Linux 64 .deb (Debian Buster)" needs: - - "Linux 32 deb" - -# #-----------------------------------------------------------------------# -# # Ubuntu 32 18.04LTS test # -# #-----------------------------------------------------------------------# -# "Ubuntu 32 18.04LTS": -# image: i386/ubuntu:bionic -# stage: test -# script: -# - apt update -# - DEBIAN_FRONTEND=noninteractive apt install -yq --no-install-recommends ./openrgb*i386.deb -# - openrgb --version -# - openrgb -l -# - apt remove -y openrgb -# dependencies: -# - "Linux 32 deb" -# needs: -# - "Linux 32 deb" - -# #-----------------------------------------------------------------------# -# # Mint 32 19.3 test # -# #-----------------------------------------------------------------------# -# "Mint 32 20.1": -# image: linuxmintd/mint19.3-i386 -# stage: test -# script: -# - apt update -# - DEBIAN_FRONTEND=noninteractive apt install -yq --no-install-recommends ./openrgb*i386.deb -# - openrgb --version -# - openrgb -l -# - apt remove -y openrgb -# dependencies: -# - "Linux 32 deb" -# needs: -# - "Linux 32 deb" + - "Linux 64 .deb (Debian Buster)" #-----------------------------------------------------------------------# -# Debian 64 Buster test # +# Debian 32 Bullseye test # #-----------------------------------------------------------------------# -"Debian 64 Buster": - image: debian:buster +"Debian 32 Bullseye": + image: i386/debian:bullseye stage: test script: - apt update - - DEBIAN_FRONTEND=noninteractive apt install -yq --no-install-recommends ./openrgb*amd64.deb + - DEBIAN_FRONTEND=noninteractive apt install -yq --no-install-recommends ./openrgb*i386.deb - openrgb --version - openrgb -l - apt remove -y openrgb dependencies: - - "Linux 64 deb" + - "Linux 32 .deb (Debian Bullseye)" needs: - - "Linux 64 deb" + - "Linux 32 .deb (Debian Bullseye)" #-----------------------------------------------------------------------# # Debian 64 Bullseye test # #-----------------------------------------------------------------------# "Debian 64 Bullseye": - image: debian:bullseye + image: amd64/debian:bullseye stage: test script: - apt update @@ -278,48 +240,32 @@ before_script: - openrgb -l - apt remove -y openrgb dependencies: - - "Linux 64 deb" + - "Linux 64 .deb (Debian Bullseye)" needs: - - "Linux 64 deb" + - "Linux 64 .deb (Debian Bullseye)" #-----------------------------------------------------------------------# -# Fedora 64 v34 test # +# Ubuntu 64 20.04LTS test # #-----------------------------------------------------------------------# -"Fedora 64 v34": - image: fedora:34 +"Ubuntu 64 20.04LTS": + image: ubuntu:focal stage: test script: - - yum -y localinstall ./openrgb*64.rpm + - apt update + - DEBIAN_FRONTEND=noninteractive apt install -yq --no-install-recommends ./openrgb*amd64.deb - openrgb --version - openrgb -l - - yum -y remove openrgb + - apt remove -y openrgb dependencies: - - "Linux 64 rpm" + - "Linux 64 .deb (Debian Buster)" needs: - - "Linux 64 rpm" - -# #-----------------------------------------------------------------------# -# # Ubuntu 64 18.04LTS test # -# #-----------------------------------------------------------------------# -# "Ubuntu 64 18.04LTS": -# image: ubuntu:bionic -# stage: test -# script: -# - apt update -# - DEBIAN_FRONTEND=noninteractive apt install -yq --no-install-recommends ./openrgb*amd64.deb -# - openrgb --version -# - openrgb -l -# - apt remove -y openrgb -# dependencies: -# - "Linux 64 deb" -# needs: -# - "Linux 64 deb" + - "Linux 64 .deb (Debian Buster)" #-----------------------------------------------------------------------# -# Ubuntu 64 20.04LTS test # +# Ubuntu 64 21.10 test # #-----------------------------------------------------------------------# -"Ubuntu 64 20.04LTS": - image: ubuntu:focal +"Ubuntu 64 21.10": + image: ubuntu:impish stage: test script: - apt update @@ -328,26 +274,25 @@ before_script: - openrgb -l - apt remove -y openrgb dependencies: - - "Linux 64 deb" + - "Linux 64 .deb (Debian Bullseye)" needs: - - "Linux 64 deb" + - "Linux 64 .deb (Debian Bullseye)" #-----------------------------------------------------------------------# -# Mint 64 20.1 test # +# Fedora 64 v34 test # #-----------------------------------------------------------------------# -"Mint 64 20.1": - image: linuxmintd/mint20.1-amd64 +"Fedora 64 v34": + image: fedora:34 stage: test script: - - apt update - - DEBIAN_FRONTEND=noninteractive apt install -yq --no-install-recommends ./openrgb*amd64.deb + - yum -y localinstall ./openrgb*64.rpm - openrgb --version - openrgb -l - - apt remove -y openrgb + - yum -y remove openrgb dependencies: - - "Linux 64 deb" + - "Linux 64 rpm" needs: - - "Linux 64 deb" + - "Linux 64 rpm" #-----------------------------------------------------------------------# # Windows (32-bit) Build Target #