Skip to content

Commit

Permalink
Add verify app ci
Browse files Browse the repository at this point in the history
  • Loading branch information
halx99 committed Mar 5, 2025
1 parent 4170d75 commit 614a523
Showing 1 changed file with 148 additions and 0 deletions.
148 changes: 148 additions & 0 deletions .github/workflows/veirfy-app.yml
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: ${{ github.event.inputs }}

jobs:
win32:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- 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:
submodules: 'recursive'
- 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:
submodules: 'recursive'
- 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:
submodules: 'recursive'
- name: Merge PR
shell: pwsh
run: if ($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:
submodules: 'recursive'
- 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:
submodules: 'recursive'
- 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:
submodules: 'recursive'
- 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:
submodules: 'recursive'
- 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:
submodules: 'recursive'
- 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

0 comments on commit 614a523

Please sign in to comment.