Skip to content

Commit f7b22aa

Browse files
committed
ci:add alma and centos and debian 13 system support
1 parent 3503483 commit f7b22aa

File tree

5 files changed

+226
-7
lines changed

5 files changed

+226
-7
lines changed

.github/workflows/Alma_build.yml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: alma build workflows
2+
3+
on:
4+
push:
5+
branches:
6+
- 'develop'
7+
paths:
8+
- 'XEngine_Source/**'
9+
- 'XEngine_Release/**'
10+
- '.github/**'
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
build:
17+
runs-on: ${{ matrix.runner }}
18+
container:
19+
image: almalinux:${{ matrix.version }}
20+
options: --platform ${{ matrix.platform }}
21+
strategy:
22+
matrix:
23+
include:
24+
- arch: amd64
25+
runner: ubuntu-24.04
26+
platform: linux/amd64
27+
artifact: x86-64
28+
version: 9
29+
- arch: amd64
30+
runner: ubuntu-24.04
31+
platform: linux/amd64
32+
artifact: x86-64
33+
version: 10
34+
- arch: arm64
35+
runner: ubuntu-24.04-arm
36+
platform: linux/arm64
37+
artifact: Arm64
38+
version: 9
39+
- arch: arm64
40+
runner: ubuntu-24.04-arm
41+
platform: linux/arm64
42+
artifact: Arm64
43+
version: 10
44+
45+
steps:
46+
- name: Checkout main repository code
47+
uses: actions/checkout@v4
48+
49+
- name: Checkout dependency repository (xengine)
50+
uses: actions/checkout@v4
51+
with:
52+
repository: libxengine/libxengine
53+
path: libxengine
54+
55+
- name: sub module checkout (opensource)
56+
uses: actions/checkout@v4
57+
with:
58+
repository: libxengine/XEngine_OPenSource
59+
path: XEngine_Source/XEngine_DependLibrary
60+
61+
- name: Set TERM variable
62+
run: echo "TERM=xterm" >> $GITHUB_ENV
63+
64+
- name: install system package
65+
run: |
66+
dnf update -y
67+
dnf install gcc g++ make git jq unzip wget -y
68+
dnf install libsrtp-devel srt-devel -y
69+
70+
- name: install xengine library
71+
run: |
72+
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
73+
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_RockyLinux_${{ matrix.version }}_${{ matrix.artifact }}.zip
74+
unzip ./XEngine_RockyLinux_${{ matrix.version }}_${{ matrix.artifact }}.zip -d ./XEngine_RockyLinux_${{ matrix.version }}_${{ matrix.artifact }}
75+
cd XEngine_RockyLinux_${{ matrix.version }}_${{ matrix.artifact }}
76+
77+
chmod 777 *
78+
./XEngine_LINEnv.sh -i 3
79+
80+
- name: make
81+
run: |
82+
cd XEngine_Source
83+
make RELEASE=1
84+
make FLAGS=InstallAll
85+
make FLAGS=CleanAll
86+
cd ..
87+
- name: test
88+
run: |
89+
cd XEngine_Release
90+
./XEngine_StreamMediaApp -t
91+
92+
- name: Upload folder as artifact
93+
uses: actions/upload-artifact@v4
94+
with:
95+
name: XEngine_StreamMediaApp-AlmaLinux_${{ matrix.version }}_${{ matrix.artifact }}
96+
path: XEngine_Release/

.github/workflows/Centos_build.yml

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
name: centos build workflows
2+
3+
on:
4+
push:
5+
branches:
6+
- 'develop'
7+
paths:
8+
- 'XEngine_Source/**'
9+
- 'XEngine_Release/**'
10+
- '.github/**'
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
build:
17+
runs-on: ${{ matrix.runner }}
18+
container:
19+
image: quay.io/centos/centos:${{ matrix.stream }}
20+
options: --platform ${{ matrix.platform }}
21+
strategy:
22+
matrix:
23+
include:
24+
- arch: amd64
25+
runner: ubuntu-24.04
26+
platform: linux/amd64
27+
artifact: x86-64
28+
version: 9
29+
stream: stream9
30+
- arch: amd64
31+
runner: ubuntu-24.04
32+
platform: linux/amd64
33+
artifact: x86-64
34+
version: 10
35+
stream: stream10
36+
- arch: arm64
37+
runner: ubuntu-24.04-arm
38+
platform: linux/arm64
39+
artifact: Arm64
40+
version: 9
41+
stream: stream9
42+
- arch: arm64
43+
runner: ubuntu-24.04-arm
44+
platform: linux/arm64
45+
artifact: Arm64
46+
version: 10
47+
stream: stream10
48+
49+
steps:
50+
- name: Checkout main repository code
51+
uses: actions/checkout@v4
52+
53+
- name: Checkout dependency repository (xengine)
54+
uses: actions/checkout@v4
55+
with:
56+
repository: libxengine/libxengine
57+
path: libxengine
58+
59+
- name: sub module checkout (opensource)
60+
uses: actions/checkout@v4
61+
with:
62+
repository: libxengine/XEngine_OPenSource
63+
path: XEngine_Source/XEngine_DependLibrary
64+
65+
- name: Set TERM variable
66+
run: echo "TERM=xterm" >> $GITHUB_ENV
67+
68+
- name: install system package
69+
run: |
70+
dnf update -y
71+
dnf install gcc g++ make git jq unzip wget -y
72+
dnf install libsrtp-devel srt-devel -y
73+
74+
- name: install xengine library
75+
run: |
76+
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
77+
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_RockyLinux_${{ matrix.version }}_${{ matrix.artifact }}.zip
78+
unzip ./XEngine_RockyLinux_${{ matrix.version }}_${{ matrix.artifact }}.zip -d ./XEngine_RockyLinux_${{ matrix.version }}_${{ matrix.artifact }}
79+
cd XEngine_RockyLinux_${{ matrix.version }}_${{ matrix.artifact }}
80+
81+
chmod 777 *
82+
./XEngine_LINEnv.sh -i 3
83+
84+
- name: make
85+
run: |
86+
cd XEngine_Source
87+
make RELEASE=1
88+
make FLAGS=InstallAll
89+
make FLAGS=CleanAll
90+
cd ..
91+
- name: test
92+
run: |
93+
cd XEngine_Release
94+
./XEngine_StreamMediaApp -t
95+
96+
- name: Upload folder as artifact
97+
uses: actions/upload-artifact@v4
98+
with:
99+
name: XEngine_StreamMediaApp-CentOS_${{ matrix.version }}_${{ matrix.artifact }}
100+
path: XEngine_Release/

.github/workflows/Rocky_build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ jobs:
6565

6666
- name: install system package
6767
run: |
68-
dnf clean all
69-
dnf makecache
70-
dnf distro-sync -y
7168
dnf update -y
7269
dnf install gcc g++ make git jq unzip wget -y
7370
- name: install xengine library

.github/workflows/debian_build.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ jobs:
2525
runner: ubuntu-24.04
2626
platform: linux/amd64
2727
artifact: x86-64
28+
name: bookworm
29+
version: 12
30+
- arch: amd64
31+
runner: ubuntu-24.04
32+
platform: linux/amd64
33+
artifact: x86-64
34+
name: trixie
35+
version: 13
2836

2937
steps:
3038
- name: Checkout main repository code
@@ -56,9 +64,9 @@ jobs:
5664
- name: install xengine library
5765
run: |
5866
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
59-
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_Debian_12_${{ matrix.artifact }}.zip
60-
unzip ./XEngine_Debian_12_${{ matrix.artifact }}.zip -d ./XEngine_Debian_12_${{ matrix.artifact }}
61-
cd XEngine_Debian_12_${{ matrix.artifact }}
67+
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_Debian_${{ matrix.version }}_${{ matrix.artifact }}.zip
68+
unzip ./XEngine_Debian_${{ matrix.version }}_${{ matrix.artifact }}.zip -d ./XEngine_Debian_${{ matrix.version }}_${{ matrix.artifact }}
69+
cd XEngine_Debian_${{ matrix.version }}_${{ matrix.artifact }}
6270
6371
chmod 777 *
6472
./XEngine_LINEnv.sh -i 3
@@ -81,6 +89,6 @@ jobs:
8189
- name: Upload folder as artifact
8290
uses: actions/upload-artifact@v4
8391
with:
84-
name: XEngine_StreamMediaApp-Debian_12_x86-64
92+
name: XEngine_StreamMediaApp-Debian_${{ matrix.version }}_x86-64
8593
path: XEngine_Release/
8694
retention-days: 1

.github/workflows/release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,24 @@ jobs:
5151
skip_unpack: true
5252
if_no_artifact_found: fail
5353
path: ./XRelease/
54+
- name: Download Alma build
55+
uses: dawidd6/action-download-artifact@v6
56+
with:
57+
workflow: Alma_build.yml
58+
workflow_conclusion: success
59+
check_artifacts: false
60+
skip_unpack: true
61+
if_no_artifact_found: fail
62+
path: ./XRelease/
63+
- name: Download CentOS build
64+
uses: dawidd6/action-download-artifact@v6
65+
with:
66+
workflow: Centos_build.yml
67+
workflow_conclusion: success
68+
check_artifacts: false
69+
skip_unpack: true
70+
if_no_artifact_found: fail
71+
path: ./XRelease/
5472
- name: Download macbuild
5573
uses: dawidd6/action-download-artifact@v6
5674
with:

0 commit comments

Comments
 (0)