Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Android #124

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions .github/actions/godot-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,14 @@ runs:
mkdir -p bin modules/mono/glue
cd godot
if [[ "${{ inputs.deploy }}" == "true" ]]; then
PLATFORM=${{ inputs.deploy-platform }}
TARGET=${{ inputs.deploy-platform-target }}
ARCH=${{ inputs.deploy-arch }}
export PLATFORM=${{ inputs.deploy-platform }}
export TARGET=${{ inputs.deploy-platform-target }}
export ARCH=${{ inputs.deploy-arch }}
else
PLATFORM=${{ inputs.platform }}
TARGET=${{ inputs.target }}
ARCH=${{ inputs.build-arch }}
export PLATFORM=${{ inputs.platform }}
export TARGET=${{ inputs.target }}
export ARCH=${{ inputs.build-arch }}
fi
echo "Building with flags:" platform=$PLATFORM target=$TARGET tests=${{ inputs.tests }} ${{ env.SCONSFLAGS }}
if [ "$TARGET" != "editor" ]; then rm -rf editor; fi # Ensure we don't include editor code.
scons platform=$PLATFORM target=$TARGET arch=$ARCH tests=${{ inputs.tests }} ${{ env.SCONSFLAGS }}
cp -r bin/* ../bin
cp -r modules/mono/glue/* ../modules/mono/glue
ls -l ../bin
scons platform=$PLATFORM target=$TARGET tests=${{ inputs.tests }} ${{ env.SCONSFLAGS }} arch=$ARCH
4 changes: 2 additions & 2 deletions .github/actions/vsk-generate-constants/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ runs:
export BUILD_DATE_STR="$(date --utc --iso=seconds)"
export BUILD_UNIX_TIME="$(date +%s)"
export BUILD_URL="${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}"
cat << EOF > addons/vsk_version/build_constants.gd
cat << EOF > game/addons/vsk_version/build_constants.gd
## AUTOGENERATED BY BUILD
const BUILD_LABEL = "$BUILD_LABEL"
const BUILD_DATE_STR = "$BUILD_DATE_STR"
const BUILD_UNIX_TIME = "$BUILD_UNIX_TIME"
const BUILD_URL = "$BUILD_URL"
EOF
cat addons/vsk_version/build_constants.gd
cat game/addons/vsk_version/build_constants.gd
File renamed without changes.
101 changes: 55 additions & 46 deletions .github/workflows/build.yml → .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:
env:
GAME_NAME: vsekai_game_
GODOT_REF: groups-4.3.2024-06-19T122756Z
VSK_GAME_BRANCH: 7ebac31f495b952d659bff42dcbea7234e27fc1d
VSK_GAME_BRANCH: eb6d5cdb2f2196abed5aebbfbf936dbbe1a97a72
GODOT_REPOSITORY: v-sekai/godot
SCONSFLAGS: verbose=yes warnings=extra werror=no module_text_server_fb_enabled=yes use_thinlto=yes
DOTNET_NOLOGO: true
Expand Down Expand Up @@ -95,49 +95,21 @@ jobs:
arch: _arm64
deploy-platform-target: editor

# - name: linux_editor_android_arm32_deploy
# runs-on: ubuntu-22.04
# cache-name: linux-editor-deploy-android-editor
# target: editor
# tests: false
# sconsflags: linker=gold precision=double
# doc-test: false
# bin: ./godot/bin/godot.linuxbsd.editor.double.arm64
# deploy-bin: ./godot/bin/libgodot.android.editor.double.arm64.so
# editor-bin-name: godot.linuxbsd.editor.double.arm64
# proj-conv: false
# artifact: true
# platform: linuxbsd
# deploy: false
# deploy-pdb: true
# deploy-platform: android
# export-platform: Android
# build-arch: arm64
# deploy-arch: arm32
# arch: _arm32
# deploy-platform-target: editor

# - name: linux_editor_android_arm64_deploy
# runs-on: ubuntu-22.04
# cache-name: linux-editor-deploy-android-editor
# target: editor
# tests: false
# sconsflags: linker=gold precision=double
# doc-test: false
# bin: ./godot/bin/godot.linuxbsd.editor.double.arm64
# deploy-bin: ./godot/bin/libgodot.android.editor.double.arm32.so
# editor-bin-name: godot.linuxbsd.editor.double.arm64
# proj-conv: false
# artifact: true
# platform: linuxbsd
# deploy: true
# deploy-pdb: true
# deploy-platform: android
# export-platform: Android
# build-arch: arm32
# deploy-arch: arm64
# arch: _arm64
# deploy-platform-target: editor
- name: linux_editor_android_arm64_deploy
runs-on: ubuntu-22.04
cache-name: linux-editor-deploy-android-editor
target: editor
tests: false
sconsflags: linker=gold precision=double
doc-test: false
bin: ./godot/bin/libgodot.android.editor.double.arm32.so
editor-bin-name: libgodot.android.editor.double.arm32.so
proj-conv: false
artifact: true
platform: android
deploy: false
build-arch: arm64
arch: _arm64

- name: linux_editor_web_deploy
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -165,11 +137,15 @@ jobs:
with:
egress-policy: audit

- name: Checkout code
uses: actions/checkout@v2

- name: Checkout code
uses: actions/checkout@v2
with:
repository: V-Sekai/v-sekai-game
ref: ${{ env.VSK_GAME_BRANCH }}
path: game

- name: Linux dependencies for gold linker
if: ${{ matrix.platform == 'linux' }}
Expand Down Expand Up @@ -211,7 +187,7 @@ jobs:
emcc -v
shell: bash

- name: Setup python, scons and golang
- name: Setup godot, python, scons and golang
uses: ./.github/actions/godot-deps
with:
godot-ref: ${{ env.GODOT_REF }}
Expand All @@ -233,7 +209,9 @@ jobs:
platform: ${{ matrix.platform }}
target: ${{ matrix.target }}
tests: ${{ matrix.tests }}
build-arch: ${{ matrix.build-arch }}
deploy: ${{ matrix.deploy }}
deploy-arch: ${{ matrix.deploy-arch }}
deploy-platform: ${{ matrix.deploy-platform }}
deploy-platform-target: ${{ matrix.deploy-platform-target }}

Expand All @@ -244,11 +222,42 @@ jobs:
sconsflags: ${{ env.SCONSFLAGS }} ${{ matrix.sconsflags }}
platform: ${{ matrix.platform }}
target: ${{ matrix.target }}
build-arch: ${{ matrix.build-arch }}
tests: false
deploy: false
deploy-arch: ${{ matrix.deploy-arch }}
deploy-platform: ${{ matrix.platform }}
deploy-platform-target: ${{ matrix.target }}

- name: Compilation
if: ${{ matrix.deploy-platform == 'android' && matrix.build-arch == 'arm64' }}
uses: ./.github/actions/godot-build
with:
sconsflags: ${{ env.SCONSFLAGS }} ${{ matrix.sconsflags }}
platform: ${{ matrix.platform }}
target: ${{ matrix.target }}
build-arch: ${{ matrix.build-arch }}
tests: false
deploy: false

- name: Generate APK
if: ${{ matrix.deploy-platform == 'android' && matrix.build-arch == 'arm64' }}
run: |
cd godot/platform/android/java
./gradlew generateGodotTemplates

- name: Upload APK
uses: actions/upload-artifact@v2
if: ${{ matrix.deploy-platform == 'android' && matrix.build-arch == 'arm64' }}
with:
name: android_release_apk
path: godot/bin/android_release.apk

- name: Remove godot engine directory
shell: bash
run: |
rm -rf godot

- name: Generate build constants
uses: ./.github/actions/vsk-generate-constants

Expand All @@ -257,7 +266,7 @@ jobs:
run: |
mkdir -p .godot/editor .godot/imported export_${{ matrix.deploy-platform }}
chmod +x ${{ matrix.bin }}
${{ matrix.bin }} --headless --xr-mode off --export-pack ${{ matrix.export-platform }} `pwd`/${{ env.GAME_NAME }}${{ matrix.deploy-platform }}.pck --path . || true
${{ matrix.bin }} --headless --xr-mode off --export-pack ${{ matrix.export-platform }} `pwd`/${{ env.GAME_NAME }}${{ matrix.deploy-platform }}.pck --path game || true
timeout-minutes: 20
shell: bash

Expand Down
57 changes: 0 additions & 57 deletions 11_vsekai_game/.github/ISSUE_TEMPLATE/bug_report.yml

This file was deleted.

6 changes: 0 additions & 6 deletions 11_vsekai_game/.github/ISSUE_TEMPLATE/config.yml

This file was deleted.

33 changes: 0 additions & 33 deletions 11_vsekai_game/.github/ISSUE_TEMPLATE/feature_proposal.yml

This file was deleted.

56 changes: 0 additions & 56 deletions 11_vsekai_game/.github/actions/godot-build/action.yml

This file was deleted.

22 changes: 0 additions & 22 deletions 11_vsekai_game/.github/actions/godot-cache/action.yml

This file was deleted.

Loading
Loading