Skip to content

Commit 64bbd47

Browse files
committed
ci:add centos system support
1 parent ed3154b commit 64bbd47

File tree

1 file changed

+106
-0
lines changed

1 file changed

+106
-0
lines changed

.github/workflows/Centos_build.yml

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
name: centos build workflows
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
build:
13+
runs-on: ${{ matrix.runner }}
14+
container:
15+
image: quay.io/centos/centos:${{ matrix.stream }}
16+
options: --platform ${{ matrix.platform }}
17+
strategy:
18+
matrix:
19+
include:
20+
- arch: amd64
21+
runner: ubuntu-24.04
22+
platform: linux/amd64
23+
artifact: x86-64
24+
version: 9
25+
stream: stream9
26+
- arch: amd64
27+
runner: ubuntu-24.04
28+
platform: linux/amd64
29+
artifact: x86-64
30+
version: 10
31+
stream: stream10
32+
- arch: arm64
33+
runner: ubuntu-24.04-arm
34+
platform: linux/arm64
35+
artifact: Arm64
36+
version: 9
37+
stream: stream9
38+
- arch: arm64
39+
runner: ubuntu-24.04-arm
40+
platform: linux/arm64
41+
artifact: Arm64
42+
version: 10
43+
stream: stream10
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: Set TERM variable
56+
run: echo "TERM=xterm" >> $GITHUB_ENV
57+
58+
- name: install system package
59+
run: |
60+
dnf update -y
61+
dnf install gcc g++ make git jq unzip wget -y
62+
63+
- name: install xengine library
64+
run: |
65+
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
66+
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_RockyLinux_${{ matrix.version }}_${{ matrix.artifact }}.zip
67+
unzip ./XEngine_RockyLinux_${{ matrix.version }}_${{ matrix.artifact }}.zip -d ./XEngine_RockyLinux_${{ matrix.version }}_${{ matrix.artifact }}
68+
cd XEngine_RockyLinux_${{ matrix.version }}_${{ matrix.artifact }}
69+
70+
chmod 777 *
71+
./XEngine_LINEnv.sh -i 3
72+
- name: make
73+
run: |
74+
cd XEngine_Source
75+
make
76+
make FLAGS=InstallAll
77+
make FLAGS=CleanAll
78+
79+
make RELEASE=1
80+
make FLAGS=InstallAll
81+
make FLAGS=CleanAll
82+
cd ..
83+
84+
- name: make
85+
run: |
86+
cd XEngine_Module
87+
cd jsoncpp
88+
make
89+
cd ..
90+
cd tinyxml2
91+
make
92+
cd ..
93+
cd XEngine_InfoReport
94+
make
95+
cd ..
96+
cd XEngine_Token
97+
make
98+
cd ..
99+
cd XEngine_MSGNotify
100+
make
101+
cd ..
102+
cd XEngine_AIApi
103+
make
104+
cd ..
105+
cd XEngine_Verification
106+
make

0 commit comments

Comments
 (0)