15 Commits
Author SHA1 Message Date
xixu-me 696440c5c4 fix(actions): install python for chaquopy build 2026-04-19 17:53:01 +08:00
xixu-me 610a674307 fix(actions): prepare local properties before apk build 2026-04-19 17:47:16 +08:00
xixu-me 0d34e6bc05 Merge pull request #6 from xixu-me/dependabot/github_actions/github-actions-e24c266ee1
chore(deps):(deps): bump softprops/action-gh-release from 2 to 3 in the github-actions group
2026-04-12 15:26:25 +08:00
dependabot[bot] 36abecaa7e chore(deps):(deps): bump softprops/action-gh-release
Bumps the github-actions group with 1 update: [softprops/action-gh-release](https://github.com/softprops/action-gh-release).


Updates `softprops/action-gh-release` from 2 to 3
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/v2...v3)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-version: '3'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-12 06:04:17 +00:00
xixu-me 3a64428562 Merge pull request #5 from xixu-me/dependabot/github_actions/github-actions-97f38a5d32
chore(deps):(deps): bump actions/cache from 4 to 5 in the github-actions group
2025-12-14 14:23:06 +08:00
dependabot[bot] b774fbcb36 chore(deps):(deps): bump actions/cache in the github-actions group
Bumps the github-actions group with 1 update: [actions/cache](https://github.com/actions/cache).


Updates `actions/cache` from 4 to 5
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-14 06:05:35 +00:00
xixu-me a11536674e Improve build workflow error handling and reporting
Adds continue-on-error to APK build step and updates release creation to depend on successful APK build. Enhances status reporting to distinguish between build attempts, successes, and failures, with clearer messaging for upstream build issues.
2025-12-08 15:53:24 +08:00
xixu-me 8050ccabe1 Merge pull request #4 from xixu-me/dependabot/github_actions/github-actions-76468cb07f
chore(deps):(deps): bump actions/checkout from 5 to 6 in the github-actions group
2025-11-24 13:17:50 +08:00
dependabot[bot] 96d69128e8 chore(deps):(deps): bump actions/checkout in the github-actions group
Bumps the github-actions group with 1 update: [actions/checkout](https://github.com/actions/checkout).


Updates `actions/checkout` from 5 to 6
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-23 06:04:16 +00:00
xixu-me 7ff5f9a62f Reapply "Merge pull request #3 from xixu-me/dependabot/github_actions/github-actions-02740c4fb1"
This reverts commit 5a4597fa95.
2025-08-24 18:31:23 +08:00
xixu-me 5a4597fa95 Revert "Merge pull request #3 from xixu-me/dependabot/github_actions/github-actions-02740c4fb1"
This reverts commit 4be0521db7, reversing
changes made to 0996fe3acc.
2025-08-24 18:28:34 +08:00
xixu-me 4be0521db7 Merge pull request #3 from xixu-me/dependabot/github_actions/github-actions-02740c4fb1
chore(deps):(deps): bump actions/setup-java from 4 to 5 in the github-actions group
2025-08-24 14:40:29 +08:00
dependabot[bot] 49de3cffdb chore(deps):(deps): bump actions/setup-java in the github-actions group
Bumps the github-actions group with 1 update: [actions/setup-java](https://github.com/actions/setup-java).


Updates `actions/setup-java` from 4 to 5
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-24 06:18:55 +00:00
xixu-me 0996fe3acc Merge pull request #2 from xixu-me/dependabot/github_actions/github-actions-a331d3ec2d
chore(deps):(deps): bump actions/checkout from 4 to 5 in the github-actions group
2025-08-17 14:33:51 +08:00
dependabot[bot] 71856a91f2 chore(deps):(deps): bump actions/checkout in the github-actions group
Bumps the github-actions group with 1 update: [actions/checkout](https://github.com/actions/checkout).


Updates `actions/checkout` from 4 to 5
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-17 06:33:01 +00:00
+48 -12
View File
@@ -38,10 +38,10 @@ jobs:
steps:
- name: Checkout the repository
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Checkout source code
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: ${{ env.SOURCE_REPO }}
ref: ${{ env.SOURCE_BRANCH }}
@@ -143,15 +143,21 @@ jobs:
- name: Set up JDK 17
if: steps.check_build.outputs.build_needed == 'true'
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: "temurin"
java-version: "17"
cache: "gradle"
- name: Set up Python 3.10
if: steps.check_build.outputs.build_needed == 'true'
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Cache Gradle dependencies
if: steps.check_build.outputs.build_needed == 'true'
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: |
~/.gradle/caches
@@ -176,8 +182,31 @@ jobs:
fi
echo "✅ Keystore decoded successfully"
- name: Build release APKs
- name: Prepare Android local.properties
if: steps.check_build.outputs.build_needed == 'true'
run: |
echo "📝 Preparing Android local.properties for CI..."
SDK_DIR="${ANDROID_HOME:-${ANDROID_SDK_ROOT:-}}"
if [ -z "$SDK_DIR" ]; then
echo "❌ ANDROID_HOME / ANDROID_SDK_ROOT is not set"
exit 1
fi
cat > src/local.properties <<EOF
sdk.dir=$SDK_DIR
storeFile=$GITHUB_WORKSPACE/keystore.jks
storePassword=$KEYSTORE_PASSWORD
keyAlias=$KEY_ALIAS
keyPassword=$KEY_PASSWORD
EOF
echo "✅ local.properties created successfully"
- name: Build release APKs
id: build_apks
if: steps.check_build.outputs.build_needed == 'true'
continue-on-error: true
run: |
echo "🔨 Building release APKs..."
cd src
@@ -202,13 +231,17 @@ jobs:
echo "✅ APK build completed successfully"
# Clean up keystore for security
- name: Clean up keystore
if: steps.check_build.outputs.build_needed == 'true'
run: |
# Clean up generated signing files for security
rm -f "$GITHUB_WORKSPACE/keystore.jks"
rm -f "$GITHUB_WORKSPACE/src/local.properties"
echo "🔐 Keystore cleaned up"
- name: Create GitHub Release
if: steps.check_build.outputs.build_needed == 'true'
uses: softprops/action-gh-release@v2
if: steps.check_build.outputs.build_needed == 'true' && steps.build_apks.outcome == 'success'
uses: softprops/action-gh-release@v3
with:
tag_name: ${{ steps.commit_info.outputs.short_hash }}
name: "FongMi TV APK Release ${{ steps.commit_info.outputs.short_hash }}"
@@ -248,7 +281,7 @@ jobs:
echo ""
echo "🚀 **Build Status:**"
if [ "${{ steps.check_build.outputs.build_needed }}" = "true" ]; then
echo " Status: ✅ Build Executed"
echo " Build Attempted: ✅ Yes"
echo " Reason: ${{ steps.check_build.outputs.build_reason }}"
if [ "${{ steps.check_build.outputs.is_first_release }}" = "true" ]; then
echo " Type: 🎉 First Release"
@@ -256,12 +289,15 @@ jobs:
echo " Type: 📦 Update Release"
fi
# Check if release was created successfully
if [ "${{ job.status }}" = "success" ]; then
# Check APK build result
if [ "${{ steps.build_apks.outcome }}" = "success" ]; then
echo " APK Build: ✅ Succeeded"
echo " Release: ✅ Created Successfully"
echo " Tag: ${{ steps.commit_info.outputs.short_hash }}"
else
echo " Release: ❌ Failed to Create"
echo " APK Build: ⚠️ Failed (upstream source issue)"
echo " Release: ⏭️ Skipped due to build failure"
echo " Note: The upstream FongMi/TV repository may have build issues"
fi
else
echo " Status: ⏭️ Build Skipped"