Skip to content

fixed:build error

fixed:build error #113

Workflow file for this run

name: macos build workflows
on:
push:
branches:
- 'master'
jobs:
build:
strategy:
matrix:
include:
- os: macos-15
- os: macos-15-intel
runs-on: ${{ matrix.os }}
steps:
- name: Checkout main repository code
uses: actions/checkout@v4
# 检出依赖的xengine仓库到指定的xengine目录
- name: Checkout dependency repository (xengine)
uses: actions/checkout@v4
with:
repository: libxengine/libxengine
path: libxengine
- name: Set TERM variable
run: echo "TERM=xterm" >> $GITHUB_ENV
- name: brew install
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- name: Set up Dependency x86_64 Environment
if: matrix.os == 'macos-15-intel'
run: |
cd libxengine
chmod 777 *
./XEngine_LINEnv.sh -i 3
- name: Set up Dependency Arm64 Environment
if: matrix.os == 'macos-15'
run: |
latest_tag=$(git ls-remote --tags --sort="v:refname" https://github.com/libxengine/libxengine.git | awk '{print $2}' | sed 's/refs\/tags\///' | tail -n 1)
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_Mac_Arm64.zip
unzip ./XEngine_Mac_Arm64.zip -d ./XEngine_Mac_Arm64
cd XEngine_Mac_Arm64
chmod 777 *
./XEngine_LINEnv.sh -i 3
- name: make
run: |
cd XEngine_Module
cd jsoncpp
make PLATFORM=mac
cd ..
cd tinyxml2
make PLATFORM=mac
cd ..
cd XEngine_InfoReport
make PLATFORM=mac
cd ..
cd XEngine_Token
make PLATFORM=mac
cd ..
cd XEngine_MSGNotify
make PLATFORM=mac
cd ..
cd XEngine_AIApi
make PLATFORM=mac
cd ..
cd XEngine_Verification
make PLATFORM=mac