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

Commit

Permalink
Add android build.
Browse files Browse the repository at this point in the history
Updated build action and removed redundant file

Update the ref.

git subrepo pull --force 11_vsekai_game

subrepo:
  subdir:   "11_vsekai_game"
  merged:   "eb6d5cdb2"
upstream:
  origin:   "https://github.com/V-Sekai/v-sekai-game.git"
  branch:   "main"
  commit:   "eb6d5cdb2"
git-subrepo:
  version:  "0.4.6"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "73a0129"

Updated build process in action.yml

git subrepo push 11_vsekai_game

subrepo:
  subdir:   "11_vsekai_game"
  merged:   "75521d4a0"
upstream:
  origin:   "https://github.com/V-Sekai/v-sekai-game.git"
  branch:   "main"
  commit:   "75521d4a0"
git-subrepo:
  version:  "0.4.6"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "73a0129"

Relocated GitHub actions and scripts to the root directory

git subrepo push 11_vsekai_game

subrepo:
  subdir:   "11_vsekai_game"
  merged:   "ed0b7d5c4"
upstream:
  origin:   "https://github.com/V-Sekai/v-sekai-game.git"
  branch:   "main"
  commit:   "ed0b7d5c4"
git-subrepo:
  version:  "0.4.6"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "73a0129"

Updated GitHub workflows for build management

The checkout code step has been moved further down in the job sequence and now checks out from a different repository.

Revert "The checkout code step has been moved further down in the job sequence and now checks out from a different repository."

This reverts commit e31c8d4.

The concurrency settings in the GitHub workflows file have been removed. y from GitHub workflows

Updated build process and paths
  • Loading branch information
fire committed Jun 24, 2024
1 parent 1a1e354 commit 8f5bdd8
Show file tree
Hide file tree
Showing 26 changed files with 67 additions and 669 deletions.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
103 changes: 57 additions & 46 deletions .github/workflows/build.yml → .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
pull_request:
branches:
- "**"
tags:
- "*"

concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-deploy
Expand All @@ -15,7 +17,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 +97,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 +139,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 +189,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 +211,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 +224,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 +268,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

0 comments on commit 8f5bdd8

Please sign in to comment.