verify-app #16
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
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 |