File tree Expand file tree Collapse file tree 2 files changed +109
-1
lines changed
Expand file tree Collapse file tree 2 files changed +109
-1
lines changed Original file line number Diff line number Diff line change 1+ name : rocky build workflows
2+
3+ on :
4+ push :
5+ branches :
6+ - ' master'
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 : rockylinux/rockylinux:9.5
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_suffix : x86-64
28+ - arch : arm64
29+ runner : ubuntu-24.04-arm
30+ platform : linux/arm64
31+ artifact_suffix : Arm64
32+
33+ steps :
34+ - name : Checkout main repository code
35+ uses : actions/checkout@v4
36+
37+ - name : Checkout dependency repository (xengine)
38+ uses : actions/checkout@v4
39+ with :
40+ repository : libxengine/libxengine
41+ path : libxengine
42+
43+ - name : install system package
44+ run : |
45+ dnf update -y
46+ dnf install gcc g++ make git jq unzip -y
47+
48+ - name : Set up Dependency rocky linux Environment
49+ run : |
50+ cd libxengine
51+ chmod 777 *
52+ ./XEngine_LINEnv.sh -i 0
53+ - name : install xengine library
54+ run : |
55+ 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_RockyLinux_9_${{ matrix.artifact_suffix }}.zip
57+ unzip ./XEngine_RockyLinux_9_${{ matrix.artifact_suffix }}.zip -d ./XEngine_RockyLinux_9_${{ matrix.artifact_suffix }}
58+ cd XEngine_RockyLinux_9_${{ matrix.artifact_suffix }}
59+
60+ cp -rf ./XEngine_Include /usr/local/include
61+ find ./XEngine_Linux -name "*.so" -exec cp {} /usr/lib64 \;
62+ ldconfig
63+
64+ - name : make
65+ run : |
66+ cd XEngine_Module
67+ cd jsoncpp
68+ make
69+ cd ..
70+ cd tinyxml2
71+ make
72+ cd ..
73+ cd XEngine_InfoReport
74+ make
75+ cd ..
76+ cd XEngine_AVPlayer
77+ make
Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - ' master'
7- - ' actions'
87
98jobs :
109 build :
1413 include :
1514 - os : ubuntu-22.04
1615 - os : ubuntu-24.04
16+ - os : ubuntu-22.04-arm
17+ - os : ubuntu-24.04-arm
1718 runs-on : ${{ matrix.os }}
1819
1920 steps :
4950 unzip ./XEngine_UBuntu_22.04_x86-64.zip -d ./XEngine_UBuntu_22.04_x86-64
5051 cd XEngine_UBuntu_22.04_x86-64
5152
53+ sudo cp -rf ./XEngine_Include /usr/local/include
54+ sudo find ./XEngine_Linux -name "*.so" -exec cp {} /usr/local/lib \;
55+ sudo ldconfig
56+ - name : Set up Dependency ubuntu22.04 arm64 Environment
57+ if : matrix.os == 'ubuntu-22.04-arm'
58+ run : |
59+ cd libxengine
60+ chmod 777 *
61+ sudo ./XEngine_LINEnv.sh -i 0
62+
63+ latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
64+ wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_UBuntu_22.04_Arm64.zip
65+ unzip ./XEngine_UBuntu_22.04_Arm64.zip -d ./XEngine_UBuntu_22.04_Arm64
66+ cd XEngine_UBuntu_22.04_Arm64
67+
68+ sudo cp -rf ./XEngine_Include /usr/local/include
69+ sudo find ./XEngine_Linux -name "*.so" -exec cp {} /usr/local/lib \;
70+ sudo ldconfig
71+ - name : Set up Dependency ubuntu24.04 arm64 Environment
72+ if : matrix.os == 'ubuntu-24.04-arm'
73+ run : |
74+ cd libxengine
75+ chmod 777 *
76+ sudo ./XEngine_LINEnv.sh -i 0
77+
78+ latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
79+ wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_UBuntu_24.04_Arm64.zip
80+ unzip ./XEngine_UBuntu_24.04_Arm64.zip -d ./XEngine_UBuntu_24.04_Arm64
81+ cd XEngine_UBuntu_24.04_Arm64
82+
5283 sudo cp -rf ./XEngine_Include /usr/local/include
5384 sudo find ./XEngine_Linux -name "*.so" -exec cp {} /usr/local/lib \;
5485 sudo ldconfig
You can’t perform that action at this time.
0 commit comments