Skip to content

Commit

Permalink
Add PixelEngine
Browse files Browse the repository at this point in the history
  • Loading branch information
WhalesState committed Dec 20, 2024
1 parent 765f404 commit 7686b87
Show file tree
Hide file tree
Showing 47 changed files with 605 additions and 315 deletions.
60 changes: 33 additions & 27 deletions .github/workflows/android_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,45 @@ on:
env:
# Used for the cache key. Add version suffix to force clean build.
GODOT_BASE_BRANCH: master
SCONSFLAGS: verbose=yes warnings=extra werror=yes debug_symbols=no module_text_server_fb_enabled=yes strict_checks=yes
SCONSFLAGS: verbose=yes warnings=extra werror=yes debug_symbols=no strict_checks=yes

concurrency:
group: ci-${{ github.actor }}-${{ github.head_ref || github.run_number }}-${{ github.ref }}-android
cancel-in-progress: true

jobs:
build-android:
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
name: ${{ matrix.name }}
strategy:
fail-fast: false
matrix:
include:
- name: Editor (target=editor)
cache-name: android-editor
target: editor
- name: Pixel Debug (arch=arm32)
cache-name: android_pixel_debug_arm32
target: pixel_debug
tests: false
sconsflags: arch=arm64 production=yes swappy=yes
sconsflags: arch=arm32 swappy=yes
cache-limit: 1

- name: Template arm32 (target=template_release, arch=arm32)
cache-name: android-template-arm32
target: template_release
- name: Pixel Release (arch=arm32)
cache-name: android_pixel_release_arm32
target: pixel_release
tests: false
sconsflags: arch=arm32 swappy=yes
cache-limit: 1

- name: Template arm64 (target=template_release, arch=arm64)
cache-name: android-template-arm64
target: template_release
tests: false
- name: Pixel Debug (arch=arm64)
cache-name: android_pixel_debug_arm64
target: pixel_debug
# tests: false
sconsflags: arch=arm64 swappy=yes
cache-limit: 1

- name: Pixel Release (arch=arm64)
cache-name: android_pixel_release_arm64
target: pixel_release
# tests: false
sconsflags: arch=arm64 swappy=yes
cache-limit: 1

Expand Down Expand Up @@ -79,7 +86,7 @@ jobs:
sconsflags: ${{ env.SCONSFLAGS }} ${{ matrix.sconsflags }}
platform: android
target: ${{ matrix.target }}
tests: ${{ matrix.tests }}
# tests: ${{ matrix.tests }}
scons-cache-limit: ${{ matrix.cache-limit }}

- name: Save Godot build cache
Expand All @@ -88,22 +95,21 @@ jobs:
cache-name: ${{ matrix.cache-name }}
continue-on-error: true

- name: Generate Godot templates
if: matrix.target == 'template_release'
run: |
cd platform/android/java
./gradlew generateGodotTemplates
cd ../../..
ls -l bin/
# - name: Generate Godot templates
# if: matrix.target == 'template_release'
# run: |
# cd platform/android/java
# ./gradlew generateGodotTemplates
# cd ../../..
# ls -l bin/

- name: Generate Godot editor
if: matrix.target == 'editor'
run: |
cd platform/android/java
./gradlew generateGodotEditor
./gradlew generateGodotHorizonOSEditor
cd ../../..
ls -l bin/android_editor_builds/
platform/android/java/./gradlew generateGodotEditor
cd bin
ls *
rm -f *.zip
rm -f *.aar
- name: Upload artifact
uses: ./.github/actions/upload-artifact
Expand Down
27 changes: 23 additions & 4 deletions .github/workflows/ios_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,29 @@ on:
env:
# Used for the cache key. Add version suffix to force clean build.
GODOT_BASE_BRANCH: master
SCONSFLAGS: verbose=yes warnings=extra werror=yes debug_symbols=no module_text_server_fb_enabled=yes strict_checks=yes
SCONSFLAGS: verbose=yes warnings=extra werror=yes debug_symbols=no strict_checks=yes

concurrency:
group: ci-${{ github.actor }}-${{ github.head_ref || github.run_number }}-${{ github.ref }}-ios
cancel-in-progress: true

jobs:
ios-template:
build-ios:
runs-on: macos-latest
name: Template (target=template_release)
name: ${{ matrix.name }}
strategy:
fail-fast: false
matrix:
include:
- name: Pixel Debug
cache-name: ios_pixel_engine_debug
target: pixel_debug
cache-limit: 2

- name: Pixel Release
cache-name: ios_pixel_engine_release
target: pixel_release
cache-limit: 2

steps:
- name: Checkout
Expand All @@ -25,6 +38,8 @@ jobs:

- name: Restore Godot build cache
uses: ./.github/actions/godot-cache-restore
with:
cache-name: ${{ matrix.cache-name }}
continue-on-error: true

- name: Setup Python and SCons
Expand All @@ -35,13 +50,17 @@ jobs:
with:
sconsflags: ${{ env.SCONSFLAGS }}
platform: ios
target: template_release
target: ${{ matrix.target }}
tests: false
scons-cache-limit: 1

- name: Save Godot build cache
uses: ./.github/actions/godot-cache-save
with:
cache-name: ${{ matrix.cache-name }}
continue-on-error: true

- name: Upload artifact
uses: ./.github/actions/upload-artifact
with:
name: ${{ matrix.cache-name }}
Loading

0 comments on commit 7686b87

Please sign in to comment.