-
-
Notifications
You must be signed in to change notification settings - Fork 280
150 lines (146 loc) · 3.46 KB
/
verify-app.yml
File metadata and controls
150 lines (146 loc) · 3.46 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# verify axmol cmdline to new & build a empty cpp project
name: verify-app
on:
workflow_dispatch:
inputs:
pr_id:
# actions run ID
description: 'Please input PR number, example: 2426'
# Default value if no value is explicitly provided
default: ''
# Input has to be provided for the workflow to run
required: false
run-name: verify-app-pr${{ inputs.pr_id }}
env:
GH_XCODE_VER: '16.4'
jobs:
win32:
runs-on: windows-latest
steps:
- uses: actions/checkout@v6
with:
ref: 'refs/pull/${{ inputs.pr_id }}/merge'
- name: Build
shell: pwsh
run: |
./setup.ps1
axmol new HelloCpp
axmol -d HelloCpp
winuwp:
# build uwp debug avoid github CI fail with memory issue
runs-on: windows-latest
steps:
- uses: actions/checkout@v6
with:
ref: 'refs/pull/${{ inputs.pr_id }}/merge'
- name: Build
shell: pwsh
run: |
./setup.ps1
axmol new HelloCpp
axmol -d HelloCpp -p winuwp
win32-clang:
runs-on: windows-latest
steps:
- uses: actions/checkout@v6
with:
ref: 'refs/pull/${{ inputs.pr_id }}/merge'
- name: Build
shell: pwsh
run: |
./setup.ps1
axmol new HelloCpp
axmol -d HelloCpp -cc clang
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: 'refs/pull/${{ inputs.pr_id }}/merge'
- name: Install deps
run: |
echo -e "y" | pwsh ./setup.ps1
- name: Build
shell: pwsh
run: |
axmol new HelloCpp
axmol -d HelloCpp
osx-arm64:
runs-on: macos-15
steps:
- uses: actions/checkout@v6
with:
ref: 'refs/pull/${{ inputs.pr_id }}/merge'
- uses: maxim-lobanov/setup-xcode@v1
id: setup-xcode
with:
xcode-version: '${{ env.GH_XCODE_VER }}'
- name: Build
shell: pwsh
run: |
./setup.ps1
axmol new HelloCpp
axmol -d HelloCpp
osx-x64:
runs-on: macos-15-intel
steps:
- uses: actions/checkout@v6
with:
ref: 'refs/pull/${{ inputs.pr_id }}/merge'
- uses: maxim-lobanov/setup-xcode@v1
id: setup-xcode
with:
xcode-version: '${{ env.GH_XCODE_VER }}'
- name: Build
shell: pwsh
run: |
./setup.ps1
axmol new HelloCpp
axmol -d HelloCpp
android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: 'refs/pull/${{ inputs.pr_id }}/merge'
- name: Build
shell: pwsh
run: |
./setup.ps1
axmol new HelloCpp
axmol -p android -d HelloCpp -xc "-DAX_RENDER_API=vk;gl"
ios:
runs-on: macos-15
strategy:
matrix:
target_os:
- ios
- tvos
env:
TARGET_OS: ${{ matrix.target_os }}
steps:
- uses: actions/checkout@v6
with:
ref: 'refs/pull/${{ inputs.pr_id }}/merge'
- uses: maxim-lobanov/setup-xcode@v1
id: setup-xcode
with:
xcode-version: '${{ env.GH_XCODE_VER }}'
- name: Build
shell: pwsh
run: |
./setup.ps1
axmol new HelloCpp
axmol -p $env:TARGET_OS -a x64 -d HelloCpp
wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: 'refs/pull/${{ inputs.pr_id }}/merge'
- name: Build
shell: pwsh
run: |
./setup.ps1
axmol new HelloCpp
axmol -p wasm -d HelloCpp