diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d49377c..e5a9e02 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,4 +62,4 @@ jobs: run: | export JAVA_HOME=$(find /opt -name "jdk-17.*") cd src/android - ./gradlew assembleDebug + ./gradlew assembleRelease diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 3637830..a200f10 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -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: diff --git a/README.md b/README.md index d8f0637..1b5c660 100644 --- a/README.md +++ b/README.md @@ -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) + + +## 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). diff --git a/src/android/app/build.gradle.kts b/src/android/app/build.gradle.kts index 3acae1c..51aa13f 100644 --- a/src/android/app/build.gradle.kts +++ b/src/android/app/build.gradle.kts @@ -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") diff --git a/src/package.yml.in b/src/package.yml.in index bf530e7..8adfc19 100644 --- a/src/package.yml.in +++ b/src/package.yml.in @@ -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@PROJECT_VERSION@.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: