Skip to content

Commit

Permalink
Improve build system
Browse files Browse the repository at this point in the history
  • Loading branch information
halx99 committed Dec 21, 2023
1 parent 6647ae3 commit 88e61ca
Show file tree
Hide file tree
Showing 19 changed files with 335 additions and 321 deletions.
59 changes: 0 additions & 59 deletions .github/workflows/android.yml

This file was deleted.

99 changes: 82 additions & 17 deletions .github/workflows/windows.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: windows
name: build

on:
push:
Expand All @@ -12,10 +12,6 @@ on:

jobs:
win32:
# The CMake configure and build commands are platform agnostic and should work equally
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
# See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -29,10 +25,6 @@ jobs:
shell: pwsh
run: .\build.ps1 -p win32 -a x64
win32-dll:
# The CMake configure and build commands are platform agnostic and should work equally
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
# See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -46,10 +38,6 @@ jobs:
shell: pwsh
run: .\build.ps1 -p win32 -a x64 -dll true
winuwp:
# The CMake configure and build commands are platform agnostic and should work equally
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
# See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix
# build uwp debug avoid github CI fail with memory issue
runs-on: windows-latest
steps:
Expand All @@ -70,10 +58,6 @@ jobs:
path: |
build_*/tests/**/AppPackages/**/*.msix
win32-clang:
# The CMake configure and build commands are platform agnostic and should work equally
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
# See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix
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.
Expand All @@ -91,3 +75,84 @@ jobs:
- name: Build
shell: pwsh
run: .\build.ps1 -p win32 -a 'x64' -cc clang -winsdk $env:WINSDK_VER
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'

- name: Install dependencies
run: |
AX_ROOT=`pwd`
echo -e "y" | pwsh $AX_ROOT/setup.ps1
- name: Build
shell: pwsh
run: ./build.ps1 -p linux -a x64
osx:
runs-on: macos-latest
strategy:
matrix:
arch:
- x64
- arm64
env:
BUILD_ARCH: ${{ matrix.arch }}
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Build
shell: pwsh
run: ./build.ps1 -p osx -a $env:BUILD_ARCH
android:
runs-on: ubuntu-latest
strategy:
matrix:
arch:
- armv7
- arm64
- x86
- x64
env:
BUILD_ARCH: ${{ matrix.arch }}
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- uses: actions/setup-java@v3
with:
distribution: 'microsoft' # See 'Supported distributions' for available options
java-version: '17'
- name: Build
shell: pwsh
run: |
$AX_ROOT = $(Get-Location).Path
./build.ps1 -p android -a $env:BUILD_ARCH
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.arch }}
path: |
templates/**/*.apk
tests/**/*.apk
ios:
runs-on: macos-latest
strategy:
matrix:
target_os:
- ios
- tvos
env:
TARGET_OS: ${{ matrix.target_os }}
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.2'

- name: Build
shell: pwsh
run: ./build.ps1 -p $env:TARGET_OS -a 'x64'
7 changes: 2 additions & 5 deletions .github/workflows/forward-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,10 @@ on:
- dev

jobs:
build-site:
forward-push:
runs-on: ubuntu-latest
if: ${{ github.repository == 'axmolengine/axmol' }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
Expand Down
39 changes: 0 additions & 39 deletions .github/workflows/ios.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/linux.yml

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/osx.yml

This file was deleted.

Loading

0 comments on commit 88e61ca

Please sign in to comment.