Skip to content

Commit 5dd2a88

Browse files
committed
added:macos workflows
1 parent c2b9864 commit 5dd2a88

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/macbuild.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: macos build workflows
2+
3+
on:
4+
push:
5+
branches: [ "develop" ]
6+
pull_request:
7+
branches: [ "develop" ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
runs-on: macos-13
15+
16+
steps:
17+
# 检出您的主仓库代码
18+
- name: Checkout main repository code
19+
uses: actions/checkout@v4
20+
21+
# 检出依赖的xengine仓库到指定的xengine目录
22+
- name: Checkout dependency repository (xengine)
23+
uses: actions/checkout@v4
24+
with:
25+
repository: libxengine/xengine
26+
path: libxengine
27+
28+
- name: sub module checkout (opensource)
29+
run: |
30+
git submodule init
31+
git submodule update
32+
33+
- name: brew install
34+
run: |
35+
xcode-select --install
36+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
37+
38+
39+
# 设置依赖库的环境变量
40+
- name: Set up Dependency Environment Variables
41+
run: |
42+
cd libxengine
43+
chmod 777 *
44+
./XEngine_LINEnv.sh -i 3
45+
cd ..
46+
#编译
47+
- name: make
48+
run: |
49+
cd XEngine_Source
50+
make
51+
make FLAGS=InstallAll
52+
make FLAGS=CleanAll

0 commit comments

Comments
 (0)