Repository navigation
75 lines (67 loc) · 2.33 KB
/
Copy pathmacbuild.yml
File metadata and controls
75 lines (67 loc) · 2.33 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: macos build workflows
on:
push:
branches:
- 'master'
jobs:
build:
strategy:
matrix:
include:
- os: macos-15
- os: macos-15-intel
- os: macos-26-intel
- os: macos-26
runs-on: ${{ matrix.os }}
steps:
- name: Checkout main repository code
uses: actions/checkout@v7
- name: Set TERM variable
run: echo "TERM=xterm" >> $GITHUB_ENV
- name: Set up Dependency x86_64 Environment
if: matrix.os == 'macos-15-intel' || matrix.os == 'macos-26-intel'
run: |
latest_tag=$(curl -s -H "Authorization: Bearer ${{ github.token }}" https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_Mac_x86-64.zip
unzip ./XEngine_Mac_x86-64.zip -d ./XEngine_Mac_x86-64
cd XEngine_Mac_x86-64
chmod 777 *
./XEngine_LINEnv.sh -i 3
- name: Set up Dependency Arm64 Environment
if: matrix.os == 'macos-15' || matrix.os == 'macos-26'
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: install library package
run: |
brew install luajit -y
- 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
cd ..
cd XEngine_PluginExtension
make PLATFORM=mac