Skip to content

Commit

Permalink
added alpha release for non-master branch CI
Browse files Browse the repository at this point in the history
uses the dev icon(arts)
updated conditional CI
  • Loading branch information
ArthurKun21 committed Dec 31, 2023
1 parent 2bfc379 commit 057efec
Show file tree
Hide file tree
Showing 21 changed files with 46 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,34 @@ jobs:
echo "FGA_VERSION_NAME=$VERSION_NAME" >>${GITHUB_ENV}
- name: Build Android Package
run: ./gradlew assembleCi --scan --parallel --no-daemon
run: |
if [[ ${{ github.ref }} == "refs/heads/master ]]; then
./gradlew assembleCi --scan --parallel --no-daemon
else
./gradlew assembleAlpha --scan --parallel --no-daemon
fi
- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: apk
path: app/build/outputs/apk/ci/app-ci.apk
path: |
if [[ ${{ github.ref }} == "refs/heads/master ]]; then
app/build/outputs/apk/ci/app-ci.apk
else
app/build/outputs/apk/alpha/app-alpha.apk
fi
- name: Upload De-obfuscation mapping file
uses: actions/upload-artifact@v4
with:
name: mapping-ci
path: app/build/outputs/mapping/ci/mapping.txt
path: |
if [[ ${{ github.ref }} == "refs/heads/master ]]; then
app/build/outputs/mapping/ci/mapping.txt
else
app/build/outputs/mapping/alpha/mapping.txt
fi
# Release master branch
canary:
Expand Down
11 changes: 11 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,17 @@ android {
applicationIdSuffix = ".debug"
signingConfig = signingConfigs.getByName("debug")

ndk {
//noinspection ChromeOsAbiSupport
abiFilters.add("armeabi-v7a")
abiFilters.add("arm64-v8a")
}
}
create("alpha") {
initWith(getByName("release"))
applicationIdSuffix = ".debug"
signingConfig = signingConfigs.getByName("debug")

ndk {
//noinspection ChromeOsAbiSupport
abiFilters.add("armeabi-v7a")
Expand Down
5 changes: 5 additions & 0 deletions app/src/alpha/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>
5 changes: 5 additions & 0 deletions app/src/alpha/res/mipmap-anydpi-v26/ic_launcher_round.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>
Binary file added app/src/alpha/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/alpha/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/alpha/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/alpha/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/alpha/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions app/src/alpha/res/values/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#FFFFFF</color>
</resources>
3 changes: 3 additions & 0 deletions app/src/alpha/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<resources>
<string name="app_name" translatable="false">FGA (Alpha)</string>
</resources>

0 comments on commit 057efec

Please sign in to comment.