-
Notifications
You must be signed in to change notification settings - Fork 4
104 lines (90 loc) · 3.02 KB
/
Rocky_build.yml
File metadata and controls
104 lines (90 loc) · 3.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: rocky build workflows
on:
push:
branches:
- develop
paths:
- 'XEngine_Source/**'
- 'XEngine_Release/**'
- '.github/**'
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.runner }}
container:
image: rockylinux/rockylinux:${{ matrix.version }}
options: --platform ${{ matrix.platform }}
strategy:
matrix:
include:
- arch: amd64
runner: ubuntu-24.04
platform: linux/amd64
artifact: x86-64
version: 9
- arch: amd64
runner: ubuntu-24.04
platform: linux/amd64
artifact: x86-64
version: 10
- arch: arm64
runner: ubuntu-24.04-arm
platform: linux/arm64
artifact: Arm64
version: 9
- arch: arm64
runner: ubuntu-24.04-arm
platform: linux/arm64
artifact: Arm64
version: 10
steps:
- name: Checkout main repository code
uses: actions/checkout@v4
with:
ref: 'develop'
- name: Checkout dependency repository (xengine)
uses: actions/checkout@v4
with:
repository: libxengine/libxengine
path: libxengine
- name: sub module checkout (opensource)
uses: actions/checkout@v4
with:
repository: libxengine/XEngine_OPenSource
path: XEngine_Source/XEngine_DependLibrary
- name: Set TERM variable
run: echo "TERM=xterm" >> $GITHUB_ENV
- name: install system package
run: |
dnf update -y
dnf install gcc g++ make git jq unzip wget -y
- name: install xengine library
run: |
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_RockyLinux_${{ matrix.version }}_${{ matrix.artifact }}.zip
unzip ./XEngine_RockyLinux_${{ matrix.version }}_${{ matrix.artifact }}.zip -d ./XEngine_RockyLinux_${{ matrix.version }}_${{ matrix.artifact }}
cd XEngine_RockyLinux_${{ matrix.version }}_${{ matrix.artifact }}
chmod 777 *
./XEngine_LINEnv.sh -i 3
- name: install depend library
run: dnf install libsrtp-devel srt-devel -y
- name: make
run: |
cd XEngine_Source
make
make FLAGS=InstallAll
make FLAGS=CleanAll
make RELEASE=1
make FLAGS=InstallAll
make FLAGS=CleanAll
- name: test
run: |
cd XEngine_Release
./XEngine_StreamMediaApp -t
- name: Upload folder as artifact with RockyLinux
uses: actions/upload-artifact@v4
with:
name: XEngine_StreamMediaApp-RockyLinux_${{ matrix.version }}_${{ matrix.artifact }}
path: XEngine_Release/
retention-days: 1