diff --git a/.github/workflows/veirfy-app.yml b/.github/workflows/veirfy-app.yml new file mode 100644 index 00000000000..dc912d11b12 --- /dev/null +++ b/.github/workflows/veirfy-app.yml @@ -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