Skip to content

Commit b76c59a

Browse files
committed
ci:update build
1 parent f2cc3eb commit b76c59a

File tree

5 files changed

+103
-48
lines changed

5 files changed

+103
-48
lines changed

.github/workflows/Rocky_build.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,23 +54,17 @@ jobs:
5454
- name: install system package
5555
run: |
5656
dnf update -y
57-
dnf install gcc g++ make git jq unzip -y
57+
dnf install gcc g++ make git jq unzip wget -y
5858
59-
- name: Set up Dependency rocky linux Environment
60-
run: |
61-
cd libxengine
62-
chmod 777 *
63-
./XEngine_LINEnv.sh -i 0
6459
- name: install xengine library
6560
run: |
6661
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
6762
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_RockyLinux_9_${{ matrix.artifact }}.zip
6863
unzip ./XEngine_RockyLinux_9_${{ matrix.artifact }}.zip -d ./XEngine_RockyLinux_9_${{ matrix.artifact }}
6964
cd XEngine_RockyLinux_9_${{ matrix.artifact }}
7065
71-
cp -rf ./XEngine_Include /usr/local/include
72-
find ./XEngine_Linux -name "*.so" -exec cp {} /usr/lib64 \;
73-
ldconfig
66+
chmod 777 *
67+
./XEngine_LINEnv.sh -i 3
7468
7569
- name: make
7670
run: |

.github/workflows/Ubuntu_build.yml

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -50,48 +50,33 @@ jobs:
5050
- name: Set up Dependency ubuntu22.04 x86-64 Environment
5151
if: matrix.os == 'ubuntu-22.04'
5252
run: |
53-
cd libxengine
54-
chmod 777 *
55-
sudo ./XEngine_LINEnv.sh -i 0
56-
5753
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
5854
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_UBuntu_22.04_x86-64.zip
5955
unzip ./XEngine_UBuntu_22.04_x86-64.zip -d ./XEngine_UBuntu_22.04_x86-64
6056
cd XEngine_UBuntu_22.04_x86-64
6157
62-
sudo cp -rf ./XEngine_Include /usr/local/include
63-
sudo find ./XEngine_Linux -name "*.so" -exec cp {} /usr/local/lib \;
64-
sudo ldconfig
58+
chmod 777 *
59+
sudo ./XEngine_LINEnv.sh -i 3
6560
- name: Set up Dependency ubuntu22.04 arm Environment
6661
if: matrix.os == 'ubuntu-22.04-arm'
6762
run: |
68-
cd libxengine
69-
chmod 777 *
70-
sudo ./XEngine_LINEnv.sh -i 0
71-
7263
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
7364
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_UBuntu_22.04_Arm64.zip
7465
unzip ./XEngine_UBuntu_22.04_Arm64.zip -d ./XEngine_UBuntu_22.04_Arm64
7566
cd XEngine_UBuntu_22.04_Arm64
7667
77-
sudo cp -rf ./XEngine_Include /usr/local/include
78-
sudo find ./XEngine_Linux -name "*.so" -exec cp {} /usr/local/lib \;
79-
sudo ldconfig
68+
chmod 777 *
69+
sudo ./XEngine_LINEnv.sh -i 3
8070
- name: Set up Dependency ubuntu24.04 arm Environment
8171
if: matrix.os == 'ubuntu-24.04-arm'
8272
run: |
83-
cd libxengine
84-
chmod 777 *
85-
sudo ./XEngine_LINEnv.sh -i 0
86-
8773
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
8874
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_UBuntu_24.04_Arm64.zip
8975
unzip ./XEngine_UBuntu_24.04_Arm64.zip -d ./XEngine_UBuntu_24.04_Arm64
9076
cd XEngine_UBuntu_24.04_Arm64
9177
92-
sudo cp -rf ./XEngine_Include /usr/local/include
93-
sudo find ./XEngine_Linux -name "*.so" -exec cp {} /usr/local/lib \;
94-
sudo ldconfig
78+
chmod 777 *
79+
sudo ./XEngine_LINEnv.sh -i 3
9580
9681
- name: make
9782
run: |

.github/workflows/debian_build.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,23 +48,17 @@ jobs:
4848
- name: install system package
4949
run: |
5050
apt update -y
51-
apt install gcc g++ make git jq unzip curl -y
51+
apt install gcc g++ make git jq unzip curl wget -y
5252
53-
- name: Set up Dependency rocky linux Environment
54-
run: |
55-
cd libxengine
56-
chmod 777 *
57-
./XEngine_LINEnv.sh -i 0
5853
- name: install xengine library
5954
run: |
6055
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
6156
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_Debian_12_${{ matrix.artifact }}.zip
6257
unzip ./XEngine_Debian_12_${{ matrix.artifact }}.zip -d ./XEngine_Debian_12_${{ matrix.artifact }}
6358
cd XEngine_Debian_12_${{ matrix.artifact }}
6459
65-
cp -rf ./XEngine_Include /usr/local/include
66-
find ./XEngine_Linux -name "*.so" -exec cp {} /usr/local/lib \;
67-
ldconfig
60+
chmod 777 *
61+
./XEngine_LINEnv.sh -i 3
6862
6963
- name: make
7064
run: |

.github/workflows/fedora_build.yml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
name: fedora 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: fedora:${{ matrix.fedora-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+
fedora-version: 42
28+
artifact: x86-64
29+
- arch: amd64
30+
runner: ubuntu-24.04
31+
platform: linux/amd64
32+
fedora-version: 41
33+
artifact: x86-64
34+
35+
steps:
36+
- name: Checkout main repository code
37+
uses: actions/checkout@v4
38+
39+
- name: Checkout dependency repository (xengine)
40+
uses: actions/checkout@v4
41+
with:
42+
repository: libxengine/libxengine
43+
path: libxengine
44+
45+
- name: sub module checkout (opensource)
46+
uses: actions/checkout@v4
47+
with:
48+
repository: libxengine/XEngine_OPenSource
49+
path: XEngine_Source/XEngine_Depend
50+
51+
- name: install system package
52+
run: |
53+
dnf update -y
54+
dnf install gcc g++ make git jq unzip wget -y
55+
56+
- name: Set TERM variable
57+
run: echo "TERM=xterm" >> $GITHUB_ENV
58+
59+
- name: install xengine library
60+
run: |
61+
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
62+
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_Fedora_${{ matrix.fedora-version }}_${{ matrix.artifact }}.zip
63+
unzip ./XEngine_Fedora_${{ matrix.fedora-version }}_${{ matrix.artifact }}.zip -d ./XEngine_Fedora_${{ matrix.fedora-version }}_${{ matrix.artifact }}
64+
cd XEngine_Fedora_${{ matrix.fedora-version }}_${{ matrix.artifact }}
65+
66+
chmod 777 *
67+
./XEngine_LINEnv.sh -i 3
68+
- name: make
69+
run: |
70+
cd XEngine_Source
71+
make
72+
make FLAGS=InstallAll
73+
make FLAGS=CleanAll
74+
75+
make RELEASE=1
76+
make FLAGS=InstallAll
77+
make FLAGS=CleanAll
78+
cd ..
79+
- name: test
80+
run: |
81+
cd XEngine_Release
82+
./XEngine_MQServiceApp -t
83+
84+
- name: Upload folder as artifact
85+
uses: actions/upload-artifact@v4
86+
with:
87+
name: XEngine_MQServiceApp-Fedora_${{ matrix.fedora-version }}_${{ matrix.artifact }}
88+
path: XEngine_Release/
89+
retention-days: 1

.github/workflows/macbuild.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,13 @@ jobs:
5050
- name: Set up Dependency Arm64 Environment
5151
if: matrix.os == 'macos-14'
5252
run: |
53-
cd libxengine
54-
chmod 777 *
55-
./XEngine_LINEnv.sh -i 0
56-
5753
latest_tag=$(git ls-remote --tags --sort="v:refname" https://github.com/libxengine/libxengine.git | awk '{print $2}' | sed 's/refs\/tags\///' | tail -n 1)
58-
5954
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_Mac_Arm64.zip
6055
unzip ./XEngine_Mac_Arm64.zip -d ./XEngine_Mac_Arm64
6156
cd XEngine_Mac_Arm64
6257
63-
sudo mkdir -p /usr/local/include
64-
sudo mkdir -p /usr/local/lib
65-
sudo cp -rf ./XEngine_Include /usr/local/include
66-
sudo find ./XEngine_Mac -name "*.dylib" -exec cp {} /usr/local/lib \;
58+
chmod 777 *
59+
./XEngine_LINEnv.sh -i 3
6760
6861
- name: make debug
6962
run: |

0 commit comments

Comments
 (0)