-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.28 KB
/
cpp_build.yml
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
name: Build iOS App
on:
push:
branches:
- main
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Xcode Command Line Tools
run: |
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
- name: Set up Cocos environment
run: |
# 安装 Cocos2d-x 的 iOS 开发环境
# 这里根据你的具体安装方式和版本进行设置
git clone https://github.com/cocos2d/cocos2d-x.git
cd cocos2d-x
echo "yes" > input.txt
/usr/bin/python3 download-deps.py < input.txt
# git submodule update --init
- name: Build iOS App
run: |
# 使用 Cocos2d-x 的命令行工具进行编译
# 这里根据你的项目配置和要求进行设置:
# cd cocos2d-x
# ./setup.py
# source FILE_TO_SAVE_SYSTEM_VARIABLE
# cocos new kiriii2.ipa -p com.Y_C_Z.kiriii2.ipa -l cpp -d NEWipa
# cd NEWipa/kiriii2.ipa
cocos run -p ios
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: kiriii2
path: kiriii2.ipa # 替换为实际的构建输出目录