Skip to content

Commit d30fe2c

Browse files
committed
ci:added debian
1 parent b82b6a4 commit d30fe2c

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

.github/workflows/debianbuild.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: debian 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: debian/debian:12
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+
25+
steps:
26+
- name: Checkout main repository code
27+
uses: actions/checkout@v4
28+
29+
- name: Checkout dependency repository (xengine)
30+
uses: actions/checkout@v4
31+
with:
32+
repository: libxengine/libxengine
33+
path: libxengine
34+
35+
- name: install system package
36+
run: |
37+
apt update -y
38+
apt install libsdl2-dev
39+
40+
- name: Set up Dependency rocky linux Environment
41+
run: |
42+
cd libxengine
43+
chmod 777 *
44+
./XEngine_LINEnv.sh -i 0
45+
- name: install xengine library
46+
run: |
47+
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
48+
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_Debian_12_${{ matrix.artifact }}.zip
49+
unzip ./XEngine_Debian_12_${{ matrix.artifact }}.zip -d ./XEngine_Debian_12_${{ matrix.artifact }}
50+
cd XEngine_Debian_12_${{ matrix.artifact }}
51+
52+
cp -rf ./XEngine_Include /usr/local/include
53+
find ./XEngine_Linux -name "*.so" -exec cp {} /usr/lib64 \;
54+
ldconfig
55+
56+
- name: make
57+
run: |
58+
cd XEngine_Module
59+
cd jsoncpp
60+
make
61+
cd ..
62+
cd tinyxml2
63+
make
64+
cd ..
65+
cd XEngine_InfoReport
66+
make
67+
cd ..
68+
cd XEngine_AVPlayer
69+
make

0 commit comments

Comments
 (0)