Skip to content

Commit

Permalink
Add Android package step.
Browse files Browse the repository at this point in the history
  • Loading branch information
karnkaul committed Jul 6, 2024
1 parent d080ddf commit 3e1bac8
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ jobs:
run: |
export JAVA_HOME=$(find /opt -name "jdk-17.*")
cd src/android
./gradlew assembleDebug
./gradlew assembleRelease
22 changes: 22 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,28 @@ jobs:
files: ${{ env.PACKAGE_NAME }}
draft: true
fail_on_unmatched_files: true
package-android:
env:
PACKAGE_NAME: NovaSwarm-arm64-android-v0.1.0.apk
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: init
run: |
wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.tar.gz
tar xvzf jdk-17_linux-x64_bin.tar.gz -C /opt
- name: build APK
run: |
export JAVA_HOME=$(find /opt -name "jdk-17.*")
cd src/android
./gradlew assembleRelease
mv app/build/outputs/apk/release/app-release-unsigned.apk ../../$PACKAGE_NAME
- name: upload release
uses: softprops/action-gh-release@v2
with:
files: ${{ env.PACKAGE_NAME }}
draft: true
fail_on_unmatched_files: true
package-macos:
runs-on: macos-latest
env:
Expand Down
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
# spaced
# Nova Swarm

**A 2D space shooter game, homage to Space Impact**

[![Build Status](https://github.com/cpp-gamedev/spaced/actions/workflows/ci.yml/badge.svg)](https://github.com/cpp-gamedev/spaced/actions/workflows/ci.yml)

<!--insert media here-->

## Runtime requirements

1. GPU that supports Vulkan 1.1+.
1. Vulkan 1.1+ loader (driver).
1. Windows:
1. x64 (64 bit Intel/AMD).
1. Windows 10+.
1. Latest Visual C++ runtime.
1. GNU/Linux:
1. x64 (64 bit Intel/AMD).
1. libstdc++6 or newer.
1.MacOS (experimental):
1. arm64 (64 bit ARM).
1. Vulkan SDK must be installed globally.
1. Android:
1. arm64 (64 bit ARM).
4 changes: 2 additions & 2 deletions src/android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
applicationId = "com.karnage.spaced"
minSdk = 28
targetSdk = 34
versionCode = 1
versionName = "1.0"
versionCode = 100
versionName = "0.1.0"

ndk {
abiFilters.add("arm64-v8a")
Expand Down
22 changes: 22 additions & 0 deletions src/package.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,28 @@ jobs:
files: ${{ env.PACKAGE_NAME }}
draft: true
fail_on_unmatched_files: true
package-android:
env:
PACKAGE_NAME: NovaSwarm-arm64-android-v@[email protected]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: init
run: |
wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.tar.gz
tar xvzf jdk-17_linux-x64_bin.tar.gz -C /opt
- name: build APK
run: |
export JAVA_HOME=$(find /opt -name "jdk-17.*")
cd src/android
./gradlew assembleRelease
mv app/build/outputs/apk/release/app-release-unsigned.apk ../../$PACKAGE_NAME
- name: upload release
uses: softprops/action-gh-release@v2
with:
files: ${{ env.PACKAGE_NAME }}
draft: true
fail_on_unmatched_files: true
package-macos:
runs-on: macos-latest
env:
Expand Down

0 comments on commit 3e1bac8

Please sign in to comment.