forked from axmolengine/axmol
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
148 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |