distutils #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build iOS App | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Cocos environment | |
run: | | |
# 安装 Cocos2d-x 3.6 的 iOS 开发环境 | |
# 这里根据你的具体安装方式和版本进行设置 | |
# 例如,使用 Cocos2d-x 3.6 的安装命令示例: | |
git clone https://github.com/cocos2d/cocos2d-x.git | |
cd cocos2d-x | |
pip install -r requirements.txt | |
python download-deps.py | |
cd cocos2d-x | |
git submodule update --init | |
- name: Build iOS App | |
run: | | |
# 使用 Cocos2d-x 3.6 的命令行工具进行编译 | |
# 这里根据你的项目配置和要求进行设置 | |
# 例如,使用 Cocos2d-x 3.6 编译 iOS 应用程序的命令示例: | |
cd cocos2d-x | |
./setup.py | |
source kiriii2 | |
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 # 替换为实际的构建输出目录 |