Skip to content

Commit 1ccd01a

Browse files
committed
ci:alma linux and debian 13 system support
1 parent c440c84 commit 1ccd01a

File tree

4 files changed

+118
-10
lines changed

4 files changed

+118
-10
lines changed

.github/workflows/Alma_build.yml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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+
69+
- name: install xengine library
70+
run: |
71+
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
72+
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_RockyLinux_${{ matrix.version }}_${{ matrix.artifact }}.zip
73+
unzip ./XEngine_RockyLinux_${{ matrix.version }}_${{ matrix.artifact }}.zip -d ./XEngine_RockyLinux_${{ matrix.version }}_${{ matrix.artifact }}
74+
cd XEngine_RockyLinux_${{ matrix.version }}_${{ matrix.artifact }}
75+
76+
chmod 777 *
77+
./XEngine_LINEnv.sh -i 3
78+
79+
- name: make
80+
run: |
81+
cd XEngine_Source
82+
make RELEASE=1
83+
make FLAGS=InstallAll
84+
make FLAGS=CleanAll
85+
cd ..
86+
- name: test
87+
run: |
88+
cd XEngine_Release
89+
./XEngine_MQServiceApp -t
90+
91+
- name: Upload folder as artifact
92+
uses: actions/upload-artifact@v4
93+
with:
94+
name: XEngine_MQServiceApp-AlmaLinux_${{ matrix.version }}_${{ matrix.artifact }}
95+
path: XEngine_Release/

.github/workflows/Centos_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,6 @@ jobs:
9797
- name: Upload folder as artifact with CentOS
9898
uses: actions/upload-artifact@v4
9999
with:
100-
name: XEngine_MQServiceApp-RockyLinux_${{ matrix.version }}_${{ matrix.artifact }}
100+
name: XEngine_MQServiceApp-CentOS_${{ matrix.version }}_${{ matrix.artifact }}
101101
path: XEngine_Release/
102102
retention-days: 1

.github/workflows/debian_build.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
build:
1717
runs-on: ${{ matrix.runner }}
1818
container:
19-
image: debian:bookworm
19+
image: debian:${{ matrix.name }}
2020
options: --platform ${{ matrix.platform }}
2121
strategy:
2222
matrix:
@@ -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
@@ -53,20 +61,16 @@ jobs:
5361
- name: install xengine library
5462
run: |
5563
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
56-
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_Debian_12_${{ matrix.artifact }}.zip
57-
unzip ./XEngine_Debian_12_${{ matrix.artifact }}.zip -d ./XEngine_Debian_12_${{ matrix.artifact }}
58-
cd XEngine_Debian_12_${{ matrix.artifact }}
64+
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_Debian_${{ matrix.version }}_${{ matrix.artifact }}.zip
65+
unzip ./XEngine_Debian_${{ matrix.version }}_${{ matrix.artifact }}.zip -d ./XEngine_Debian_${{ matrix.version }}_${{ matrix.artifact }}
66+
cd XEngine_Debian_${{ matrix.version }}_${{ matrix.artifact }}
5967
6068
chmod 777 *
6169
./XEngine_LINEnv.sh -i 3
6270
6371
- name: make
6472
run: |
6573
cd XEngine_Source
66-
make
67-
make FLAGS=InstallAll
68-
make FLAGS=CleanAll
69-
7074
make RELEASE=1
7175
make FLAGS=InstallAll
7276
make FLAGS=CleanAll
@@ -79,6 +83,6 @@ jobs:
7983
- name: Upload folder as artifact
8084
uses: actions/upload-artifact@v4
8185
with:
82-
name: XEngine_MQServiceApp-Debian_12_x86-64
86+
name: XEngine_MQServiceApp-Debian_${{ matrix.version }}_x86-64
8387
path: XEngine_Release/
8488
retention-days: 1

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,15 @@ jobs:
6161
skip_unpack: true
6262
if_no_artifact_found: fail
6363
path: ./XRelease/
64+
- name: Download Alma
65+
uses: dawidd6/action-download-artifact@v6
66+
with:
67+
workflow: Alma_build.yml
68+
workflow_conclusion: success
69+
check_artifacts: false
70+
skip_unpack: true
71+
if_no_artifact_found: fail
72+
path: ./XRelease/
6473
- name: Download macbuild
6574
uses: dawidd6/action-download-artifact@v6
6675
with:

0 commit comments

Comments
 (0)