Skip to content

Commit 9007635

Browse files
Add GitHub Actions workflows that should be compatible with Forgejo Actions
1 parent 6b681e3 commit 9007635

7 files changed

Lines changed: 885 additions & 0 deletions

File tree

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
#-----------------------------------------------------------#
2+
# .github/workflows/linux-appimage.yml #
3+
# #
4+
# OpenRGB GitHub Actions - Linux AppImage Builds #
5+
# This file is part of the OpenRGB project #
6+
# SPDX-License-Identifier: GPL-2.0-or-later #
7+
#-----------------------------------------------------------#
8+
9+
name: Linux AppImage
10+
11+
on:
12+
push:
13+
branches:
14+
- master
15+
- main
16+
tags:
17+
- '*'
18+
pull_request:
19+
20+
env:
21+
CI_PROJECT_DIR: ${{ github.workspace }}
22+
CI_COMMIT_SHORT_SHA: ${{ github.sha }}
23+
24+
jobs:
25+
#-----------------------------------------------------------#
26+
# Linux AppImage builds #
27+
#-----------------------------------------------------------#
28+
linux-appimage:
29+
runs-on: ubuntu-latest
30+
31+
strategy:
32+
matrix:
33+
include:
34+
- name: i386
35+
arch: i386
36+
qt_version: qt6
37+
image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:trixie-i386
38+
target_name: i386
39+
target_path: i386
40+
- name: amd64
41+
arch: amd64
42+
qt_version: qt6
43+
image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:trixie-amd64
44+
target_name: amd64
45+
target_path: x86_64
46+
- name: armhf
47+
arch: armhf
48+
qt_version: qt6
49+
image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:trixie-armhf
50+
target_name: armhf
51+
target_path: armhf
52+
- name: arm64
53+
arch: arm64
54+
qt_version: qt6
55+
image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:trixie-arm64
56+
target_name: arm64
57+
target_path: arm64
58+
59+
container: ${{ matrix.image }}
60+
61+
steps:
62+
- name: Checkout code
63+
uses: actions/checkout@v4
64+
with:
65+
fetch-depth: 0
66+
67+
- name: Set architecture variables
68+
run: echo "TGT_ARCH=${{ matrix.arch }}" >> $GITHUB_ENV
69+
70+
- name: Build AppImage
71+
run: |
72+
export TGT_ARCH="${{ matrix.arch }}"
73+
export TGT_QT="${{ matrix.qt_version }}"
74+
./scripts/build-appimage.sh ${{ matrix.qt_version }}
75+
76+
- name: Upload artifact
77+
uses: actions/upload-artifact@v4
78+
with:
79+
name: OpenRGB_Linux_${{ matrix.arch }}_AppImage_${{ github.sha }}
80+
path: OpenRGB-${{ matrix.arch }}.AppImage
81+
retention-days: 30
82+
83+
if: |
84+
(github.repository == 'CalcProgrammer1/OpenRGB' &&
85+
(github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' ||
86+
startsWith(github.ref, 'refs/tags/') || github.event_name == 'pull_request')) ||
87+
(github.repository != 'CalcProgrammer1/OpenRGB' && github.event_name == 'push')
88+
89+
#-----------------------------------------------------------#
90+
# Qt5 AppImage builds (manual trigger only) #
91+
#-----------------------------------------------------------#
92+
linux-appimage-qt5:
93+
runs-on: ubuntu-latest
94+
container: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:trixie-amd64
95+
96+
steps:
97+
- name: Checkout code
98+
uses: actions/checkout@v4
99+
with:
100+
fetch-depth: 0
101+
102+
- name: Build AppImage Qt5
103+
run: |
104+
export TGT_ARCH="amd64"
105+
export TGT_QT=""
106+
./scripts/build-appimage.sh
107+
108+
- name: Upload artifact
109+
uses: actions/upload-artifact@v4
110+
with:
111+
name: OpenRGB_Linux_amd64_Qt5_AppImage_${{ github.sha }}
112+
path: OpenRGB-x86_64.AppImage
113+
retention-days: 30
114+
optional: true
115+
116+
if: github.event_name == 'workflow_dispatch'
117+
118+
#-----------------------------------------------------------#
119+
# Supported devices README build #
120+
#-----------------------------------------------------------#
121+
supported-devices:
122+
runs-on: ubuntu-latest
123+
container: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:trixie-amd64
124+
125+
steps:
126+
- name: Checkout code
127+
uses: actions/checkout@v4
128+
with:
129+
fetch-depth: 0
130+
131+
- name: Configure and build
132+
run: |
133+
qmake
134+
make -j$(nproc)
135+
136+
- name: Build supported devices
137+
run: |
138+
./scripts/build-supported-devices-md.sh ${{ github.workspace }} ${{ github.sha }}
139+
140+
- name: Upload artifact
141+
uses: actions/upload-artifact@v4
142+
with:
143+
name: OpenRGB_Supported_Devices_${{ github.sha }}
144+
path: 'Supported Devices.csv'
145+
retention-days: 30
146+
147+
if: |
148+
(github.repository == 'CalcProgrammer1/OpenRGB' &&
149+
(github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' ||
150+
startsWith(github.ref, 'refs/tags/') || github.event_name == 'pull_request')) ||
151+
(github.repository != 'CalcProgrammer1/OpenRGB' && github.event_name == 'push')

‎.github/workflows/linux-debian.yml‎

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
#-----------------------------------------------------------#
2+
# .github/workflows/linux-debian.yml #
3+
# #
4+
# OpenRGB GitHub Actions - Linux Debian Package Builds #
5+
# This file is part of the OpenRGB project #
6+
# SPDX-License-Identifier: GPL-2.0-or-later #
7+
#-----------------------------------------------------------#
8+
9+
name: Linux Debian
10+
11+
on:
12+
push:
13+
branches:
14+
- master
15+
- main
16+
tags:
17+
- '*'
18+
pull_request:
19+
20+
env:
21+
CI_PROJECT_DIR: ${{ github.workspace }}
22+
CI_COMMIT_SHORT_SHA: ${{ github.sha }}
23+
24+
jobs:
25+
#-----------------------------------------------------------#
26+
# Linux .deb package builds #
27+
#-----------------------------------------------------------#
28+
linux-deb:
29+
runs-on: ubuntu-latest
30+
31+
container:
32+
image: registry.gitlab.com/openrgbdevelopers/openrgb-linux-ci-deb-builder:${{ matrix.distro }}-${{ matrix.arch }}
33+
34+
strategy:
35+
matrix:
36+
include:
37+
- name: Debian Bookworm amd64
38+
arch: amd64
39+
distro: bookworm
40+
- name: Debian Trixie amd64
41+
arch: amd64
42+
distro: trixie
43+
- name: Debian Bookworm arm64
44+
arch: arm64
45+
distro: bookworm
46+
- name: Debian Trixie arm64
47+
arch: arm64
48+
distro: trixie
49+
- name: Debian Bookworm i386
50+
arch: i386
51+
distro: bookworm
52+
- name: Debian Trixie i386
53+
arch: i386
54+
distro: trixie
55+
56+
steps:
57+
- name: Checkout code
58+
uses: actions/checkout@v4
59+
with:
60+
fetch-depth: 0
61+
62+
- name: Build Debian package
63+
run: |
64+
export TGT_ARCH="${{ matrix.arch }}"
65+
export TGT_DEB="${{ matrix.distro }}"
66+
./scripts/build-package-files.sh debian/changelog
67+
dpkg-architecture -l
68+
dpkg-buildpackage -us -B
69+
rm -v ../openrgb-dbgsym*.deb
70+
mv -v ../openrgb*.deb ./
71+
72+
- name: Upload artifact
73+
uses: actions/upload-artifact@v4
74+
with:
75+
name: OpenRGB_Linux_${{ matrix.arch }}_deb_${{ matrix.distro }}_${{ github.sha }}
76+
path: openrgb*.deb
77+
retention-days: 30
78+
optional: true
79+
80+
if: |
81+
(github.repository == 'CalcProgrammer1/OpenRGB' &&
82+
(github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' ||
83+
startsWith(github.ref, 'refs/tags/')) || github.event_name == 'pull_request') ||
84+
(github.repository != 'CalcProgrammer1/OpenRGB' && github.event_name == 'push')
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#-----------------------------------------------------------#
2+
# .github/workflows/linux-flatpak.yml #
3+
# #
4+
# OpenRGB GitHub Actions - Linux Flatpak Builds #
5+
# This file is part of the OpenRGB project #
6+
# SPDX-License-Identifier: GPL-2.0-or-later #
7+
#-----------------------------------------------------------#
8+
9+
name: Linux Flatpak
10+
11+
on:
12+
push:
13+
branches:
14+
- master
15+
- main
16+
tags:
17+
- '*'
18+
pull_request:
19+
20+
env:
21+
CI_PROJECT_DIR: ${{ github.workspace }}
22+
CI_COMMIT_SHORT_SHA: ${{ github.sha }}
23+
24+
jobs:
25+
#-----------------------------------------------------------#
26+
# Linux Flatpak builds #
27+
#-----------------------------------------------------------#
28+
linux-flatpak:
29+
runs-on: ubuntu-latest
30+
container: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.10
31+
32+
strategy:
33+
matrix:
34+
arch: [amd64, arm64]
35+
36+
steps:
37+
- name: Checkout code
38+
uses: actions/checkout@v4
39+
with:
40+
fetch-depth: 0
41+
42+
- name: Build Flatpak
43+
run: |
44+
flatpak-builder --user --disable-rofiles-fuse --repo=build/repo build/flatpak-build flatpak/org.openrgb.OpenRGB.yaml
45+
flatpak build-bundle build/repo org.openrgb.OpenRGB.flatpak org.openrgb.OpenRGB
46+
47+
- name: Upload artifact
48+
uses: actions/upload-artifact@v4
49+
with:
50+
name: OpenRGB_Linux_${{ matrix.arch }}_Flatpak_${{ github.sha }}
51+
path: org.openrgb.OpenRGB.flatpak
52+
retention-days: 30
53+
54+
if: |
55+
(github.repository == 'CalcProgrammer1/OpenRGB' &&
56+
(github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' ||
57+
startsWith(github.ref, 'refs/tags/') || github.event_name == 'pull_request')) ||
58+
(github.repository != 'CalcProgrammer1/OpenRGB' && github.event_name == 'push')

0 commit comments

Comments
 (0)