Skip to content

Commit 587f02b

Browse files
committed
ci:update
1 parent d4bcd9a commit 587f02b

File tree

4 files changed

+76
-2
lines changed

4 files changed

+76
-2
lines changed

.github/workflows/codeql.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: CodeQL Advanced
2+
3+
on:
4+
push:
5+
branches:
6+
- 'develop'
7+
paths:
8+
- 'XEngine_Source/**'
9+
- 'XEngine_Release/**'
10+
- '.github/**'
11+
12+
jobs:
13+
analyze:
14+
runs-on: ubuntu-24.04
15+
permissions:
16+
security-events: write
17+
packages: read
18+
actions: read
19+
contents: read
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
include:
25+
- language: c-cpp
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v4
29+
with:
30+
ref: 'develop'
31+
32+
- name: Checkout dependency repository (xengine)
33+
uses: actions/checkout@v4
34+
with:
35+
repository: libxengine/libxengine
36+
path: libxengine
37+
38+
- name: sub module checkout (opensource)
39+
run: |
40+
git submodule init
41+
git submodule update
42+
43+
- name: Set up Dependency Environment
44+
run: |
45+
cd libxengine
46+
chmod +x ./XEngine_LINEnv.sh
47+
sudo ./XEngine_LINEnv.sh -i 3
48+
49+
- name: Initialize CodeQL
50+
uses: github/codeql-action/init@v3
51+
with:
52+
languages: ${{ matrix.language }}
53+
54+
- name: make
55+
run: |
56+
cd XEngine_Source
57+
make
58+
59+
- name: Perform CodeQL Analysis
60+
uses: github/codeql-action/analyze@v3
61+
with:
62+
category: "/language:${{ matrix.language }}"

.github/workflows/macbuild.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
- 'XEngine_Source/**'
99
- 'XEngine_Release/**'
1010
- '.github/**'
11+
12+
permissions:
13+
contents: read
1114

1215
jobs:
1316
build:

.github/workflows/msbuild.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
- 'XEngine_Source/**'
99
- 'XEngine_Release/**'
1010
- '.github/**'
11+
12+
permissions:
13+
contents: read
1114

1215
jobs:
1316
build:
@@ -95,9 +98,9 @@ jobs:
9598
cp -r XEngine_Source/VSCopy_x86.bat XEngine_Release/
9699
cd XEngine_Release
97100
.\VSCopy_x86.bat
98-
# ./XEngine_StreamMediaApp -t
101+
./XEngine_StreamMediaApp -t
99102
shell: pwsh
100-
- name: Conditional Step for x64 Debug
103+
- name: Conditional Step for x64 Release
101104
if: matrix.configuration == 'Release' && matrix.platform == 'x64'
102105
run: |
103106
cp -r XEngine_Source/x64/Release/*.dll XEngine_Release/

.github/workflows/ubuntubuild.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ on:
99
- 'XEngine_Release/**'
1010
- '.github/**'
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
build:
1417
strategy:
18+
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
1519
fail-fast: false
1620
matrix:
1721
include:
@@ -20,11 +24,13 @@ jobs:
2024
runs-on: ${{ matrix.os }}
2125

2226
steps:
27+
# 检出您的主仓库代码
2328
- name: Checkout main repository code
2429
uses: actions/checkout@v4
2530
with:
2631
ref: 'develop'
2732

33+
# 检出依赖的xengine仓库到指定的xengine目录
2834
- name: Checkout dependency repository (xengine)
2935
uses: actions/checkout@v4
3036
with:

0 commit comments

Comments
 (0)