Skip to content

Commit

Permalink
workflow core version option for android
Browse files Browse the repository at this point in the history
  • Loading branch information
zaneschepke committed Oct 10, 2024
1 parent 07f7d52 commit 097b1e3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build-nym-vpn-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
- prerelease
- nightly
- release
core_build:
description: "Core release version tag or \"source"\"
required: true
default: source
secrets:
ANDROID_SIGNING_KEY_ALIAS:
required: false
Expand All @@ -32,6 +36,10 @@ on:
description: "Build type"
required: true
default: debug
core_build:
description: "Core release version tag or \"source"\"
required: true
default: source
secrets:
ANDROID_SIGNING_KEY_ALIAS:
required: false
Expand Down Expand Up @@ -129,25 +137,25 @@ jobs:

- name: Build Fdroid Release APK
if: ${{ inputs.build_type == 'release' }}
run: ./gradlew :app:assembleFdroidRelease --info
run: ./gradlew :app:assembleFdroidRelease -PlibVersion=${{ inputs.core_build }} --info
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}

- name: Build Fdroid Prerelease APK
if: ${{ inputs.build_type == 'prerelease' }}
run: ./gradlew :app:assembleFdroidPrerelease --info
run: ./gradlew :app:assembleFdroidPrerelease -PlibVersion=${{ inputs.core_build }} --info
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}

- name: Build Fdroid Nightly APK
if: ${{ inputs.build_type == 'nightly' }}
run: ./gradlew :app:assembleFdroidNightly --info
run: ./gradlew :app:assembleFdroidNightly -PlibVersion=${{ inputs.core_build }} --info
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}

- name: Build Debug APK
if: ${{ inputs.build_type == 'debug' }}
run: ./gradlew :app:assembleFdroidDebug --stacktrace
run: ./gradlew :app:assembleFdroidDebug -PlibVersion=${{ inputs.core_build }} --stacktrace
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/publish-nym-vpn-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ on:
- release
default: release
required: true
core_build:
description: "Core release version tag or \"source"\"
required: true
default: source

push:
tags:
Expand All @@ -53,7 +57,7 @@ jobs:
secrets: inherit
with:
build_type: ${{ inputs.release_type == '' && 'nightly' || inputs.release_type }}

core_build: ${{ inputs.core_build == '' && 'source' || inputs.core_build }}

publish-github:
if: ${{ inputs.release_type != 'none' }}
Expand Down

0 comments on commit 097b1e3

Please sign in to comment.