forked from axmolengine/axmol
-
Notifications
You must be signed in to change notification settings - Fork 0
148 lines (146 loc) · 4.03 KB
/
veirfy-app.yml
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
name: verify-app
on:
workflow_dispatch:
inputs:
pr_id:
# actions run ID
description: 'Please input release version, example: 2426'
# Default value if no value is explicitly provided
default: ''
# Input has to be provided for the workflow to run
required: false
env:
pr_id: '${{ inputs.pr_id }}'
jobs:
win32:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Build
shell: pwsh
run: |
if ($env:pr_id) { git pull origin pull/$env:pr_id/head --rebase ; echo "commits=$(git rev-list --count HEAD)" }
./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@v4
with:
fetch-depth: '0'
- name: Build
shell: pwsh
run: |
if ($env:pr_id) { git pull origin pull/$env:pr_id/head --rebase ; echo "commits=$(git rev-list --count HEAD)" }
./setup.ps1
axmol new HelloCpp
axmol -d HelloCpp -p winuwp
win32-clang:
runs-on: windows-latest
env:
# Test winsdk < 10.0.22000.0 (missing C11 standard stdalign.h), axmol will auto fallback to C99 for resolving compiling issue.
WINSDK_VER: '10.0.19041.0'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Build
shell: pwsh
run: |
if ($env:pr_id) { git pull origin pull/$env:pr_id/head --rebase ; echo "commits=$(git rev-list --count HEAD)" }
./setup.ps1
axmol new HelloCpp
axmol -d HelloCpp -cc clang
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Merge PR
shell: pwsh
run: if ($env:pr_id) { git pull origin pull/$env:pr_id/head --rebase ; echo "commits=$(git rev-list --count HEAD)" }
- 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-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Build
shell: pwsh
run: |
if ($env:pr_id) { git pull origin pull/$env:pr_id/head --rebase ; echo "commits=$(git rev-list --count HEAD)" }
./setup.ps1
axmol new HelloCpp
axmol -d HelloCpp
osx-x64:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Build
shell: pwsh
run: |
if ($env:pr_id) { git pull origin pull/$env:pr_id/head --rebase ; echo "commits=$(git rev-list --count HEAD)" }
./setup.ps1
axmol new HelloCpp
axmol -d HelloCpp
android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Build
shell: pwsh
run: |
if ($env:pr_id) { git pull origin pull/$env:pr_id/head --rebase ; echo "commits=$(git rev-list --count HEAD)" }
./setup.ps1
axmol new HelloCpp
axmol -p android -d HelloCpp
ios:
runs-on: macos-latest
strategy:
matrix:
target_os:
- ios
- tvos
env:
TARGET_OS: ${{ matrix.target_os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Build
shell: pwsh
run: |
if ($env:pr_id) { git pull origin pull/$env:pr_id/head --rebase ; echo "commits=$(git rev-list --count HEAD)" }
./setup.ps1
axmol new HelloCpp
axmol -p $env:TARGET_OS -a x64 -d HelloCpp
wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Build
shell: pwsh
run: |
if ($env:pr_id) { git pull origin pull/$env:pr_id/head --rebase ; echo "commits=$(git rev-list --count HEAD)" }
./setup.ps1
axmol new HelloCpp
axmol -p wasm -d HelloCpp