Skip to content

Commit bd57f43

Browse files
committed
ci:added fedora build test
ci:improved build
1 parent 5bc8164 commit bd57f43

File tree

6 files changed

+98
-48
lines changed

6 files changed

+98
-48
lines changed

.github/workflows/codeql.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ jobs:
4040
git submodule init
4141
git submodule update
4242
43+
- name: Set TERM variable
44+
run: echo "TERM=xterm" >> $GITHUB_ENV
45+
4346
- name: Set up Dependency Environment
4447
run: |
4548
cd libxengine

.github/workflows/debianbuild.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,17 @@ jobs:
3838
- name: install system package
3939
run: |
4040
apt update -y
41-
apt install libsdl2-dev gcc g++ make git jq unzip curl -y
41+
apt install libsdl2-dev gcc g++ make git jq unzip curl wget -y
4242
43-
- name: Set up Dependency rocky linux Environment
44-
run: |
45-
cd libxengine
46-
chmod 777 *
47-
./XEngine_LINEnv.sh -i 0
4843
- name: install xengine library
4944
run: |
5045
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
5146
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_Debian_12_${{ matrix.artifact }}.zip
5247
unzip ./XEngine_Debian_12_${{ matrix.artifact }}.zip -d ./XEngine_Debian_12_${{ matrix.artifact }}
5348
cd XEngine_Debian_12_${{ matrix.artifact }}
5449
55-
cp -rf ./XEngine_Include /usr/local/include
56-
find ./XEngine_Linux -name "*.so" -exec cp {} /usr/lib \;
57-
ldconfig
50+
chmod 777 *
51+
./XEngine_LINEnv.sh -i 3
5852
5953
- name: make
6054
run: |

.github/workflows/fedora_build.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: fedora 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: 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+
apt install libsdl2-dev gcc g++ make git jq unzip curl 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_Module
71+
cd jsoncpp
72+
make
73+
cd ..
74+
cd tinyxml2
75+
make
76+
cd ..
77+
cd XEngine_InfoReport
78+
make
79+
cd ..
80+
cd XEngine_AVPlayer
81+
make

.github/workflows/macbuild.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,13 @@ jobs:
4242
- name: Set up Dependency Arm64 Environment
4343
if: matrix.os == 'macos-14'
4444
run: |
45-
cd libxengine
46-
chmod 777 *
47-
./XEngine_LINEnv.sh -i 0
48-
4945
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)
50-
5146
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_Mac_Arm64.zip
5247
unzip ./XEngine_Mac_Arm64.zip -d ./XEngine_Mac_Arm64
5348
cd XEngine_Mac_Arm64
5449
55-
sudo mkdir -p /usr/local/include
56-
sudo mkdir -p /usr/local/lib
57-
sudo cp -rf ./XEngine_Include /usr/local/include
58-
sudo find ./XEngine_Mac -name "*.dylib" -exec cp {} /usr/local/lib \;
50+
chmod 777 *
51+
./XEngine_LINEnv.sh -i 3
5952
6053
- name: make
6154
run: |

.github/workflows/rockybuild.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,17 @@ jobs:
4242
- name: install system package
4343
run: |
4444
dnf update -y
45-
dnf install gcc g++ make git jq unzip -y
45+
dnf install gcc g++ make git jq unzip wget -y
4646
47-
- name: Set up Dependency rocky linux Environment
48-
run: |
49-
cd libxengine
50-
chmod 777 *
51-
./XEngine_LINEnv.sh -i 0
5247
- name: install xengine library
5348
run: |
5449
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
5550
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_RockyLinux_9_${{ matrix.artifact }}.zip
5651
unzip ./XEngine_RockyLinux_9_${{ matrix.artifact }}.zip -d ./XEngine_RockyLinux_9_${{ matrix.artifact }}
5752
cd XEngine_RockyLinux_9_${{ matrix.artifact }}
5853
59-
cp -rf ./XEngine_Include /usr/local/include
60-
find ./XEngine_Linux -name "*.so" -exec cp {} /usr/lib64 \;
61-
ldconfig
54+
chmod 777 *
55+
./XEngine_LINEnv.sh -i 3
6256
6357
- name: make
6458
run: |

.github/workflows/ubuntubuild.yml

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -45,48 +45,33 @@ jobs:
4545
- name: Set up Dependency ubuntu22.04 Environment
4646
if: matrix.os == 'ubuntu-22.04'
4747
run: |
48-
cd libxengine
49-
chmod 777 *
50-
sudo ./XEngine_LINEnv.sh -i 0
51-
5248
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
5349
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_UBuntu_22.04_x86-64.zip
5450
unzip ./XEngine_UBuntu_22.04_x86-64.zip -d ./XEngine_UBuntu_22.04_x86-64
5551
cd XEngine_UBuntu_22.04_x86-64
5652
57-
sudo cp -rf ./XEngine_Include /usr/local/include
58-
sudo find ./XEngine_Linux -name "*.so" -exec cp {} /usr/local/lib \;
59-
sudo ldconfig
53+
chmod 777 *
54+
sudo ./XEngine_LINEnv.sh -i 3
6055
- name: Set up Dependency ubuntu22.04 arm64 Environment
6156
if: matrix.os == 'ubuntu-22.04-arm'
6257
run: |
63-
cd libxengine
64-
chmod 777 *
65-
sudo ./XEngine_LINEnv.sh -i 0
66-
6758
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
6859
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_UBuntu_22.04_Arm64.zip
6960
unzip ./XEngine_UBuntu_22.04_Arm64.zip -d ./XEngine_UBuntu_22.04_Arm64
7061
cd XEngine_UBuntu_22.04_Arm64
7162
72-
sudo cp -rf ./XEngine_Include /usr/local/include
73-
sudo find ./XEngine_Linux -name "*.so" -exec cp {} /usr/local/lib \;
74-
sudo ldconfig
63+
chmod 777 *
64+
sudo ./XEngine_LINEnv.sh -i 3
7565
- name: Set up Dependency ubuntu24.04 arm64 Environment
7666
if: matrix.os == 'ubuntu-24.04-arm'
7767
run: |
78-
cd libxengine
79-
chmod 777 *
80-
sudo ./XEngine_LINEnv.sh -i 0
81-
8268
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
8369
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_UBuntu_24.04_Arm64.zip
8470
unzip ./XEngine_UBuntu_24.04_Arm64.zip -d ./XEngine_UBuntu_24.04_Arm64
8571
cd XEngine_UBuntu_24.04_Arm64
8672
87-
sudo cp -rf ./XEngine_Include /usr/local/include
88-
sudo find ./XEngine_Linux -name "*.so" -exec cp {} /usr/local/lib \;
89-
sudo ldconfig
73+
chmod 777 *
74+
sudo ./XEngine_LINEnv.sh -i 3
9075
9176
- name: make
9277
run: |

0 commit comments

Comments
 (0)