Skip to content

Commit

Permalink
React Native
Browse files Browse the repository at this point in the history
  • Loading branch information
YCZ01111 committed Jan 2, 2024
1 parent 287b96e commit d88ebd4
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 39 deletions.
40 changes: 12 additions & 28 deletions .github/workflows/cpp_build.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,28 @@
name: Build iOS App
name: iOS Build

on:
push:
branches:
- main
- main # 根据您的分支名称进行调整

jobs:
build:
runs-on: macos-latest
runs-on: macOS-latest

steps:
- name: Checkout repository
- name: Checkout code
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: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 14

- name: Install dependencies
run: npm install

- name: Build iOS App
run: |
# 使用 Cocos2d-x 的命令行工具进行编译
# 这里根据你的项目配置和要求进行设置:
cd cocos2d-x
/usr/bin/python3 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: Build iOS app
run: npx react-native run-ios --configuration Release

- name: Archive artifacts
uses: actions/upload-artifact@v2
Expand Down
93 changes: 82 additions & 11 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d88ebd4

Please sign in to comment.