Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
fetch-depth: 0
submodules: "recursive"
Expand Down Expand Up @@ -93,13 +93,14 @@ jobs:
echo "HAS_GOOGLE_SERVICES=true" >> "$GITHUB_ENV"

- name: Setup Java JDK
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
java-version: "21"
distribution: temurin
cache: "gradle"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add gradle to cache to reduce build time


- name: Setup Android SDK
uses: android-actions/setup-android@v3
uses: android-actions/setup-android@v4.0.1

- name: Accept Licenses
run: yes | sdkmanager --licenses
Expand All @@ -111,7 +112,7 @@ jobs:
run: sdkmanager --list

- name: Setup Xmake
uses: xmake-io/github-action-setup-xmake@v1
uses: xmake-io/github-action-setup-xmake@v1.2.5
with:
xmake-version: "2.9.9"
actions-cache-folder: ".xmake-cache"
Expand Down Expand Up @@ -141,21 +142,21 @@ jobs:

- name: Upload Debug APK
if: env.HAS_GOOGLE_SERVICES == 'true'
uses: actions/upload-artifact@v4.6.2
uses: actions/upload-artifact@v7.0.1
with:
name: LeviLauncher-debug-apk
path: app/build/outputs/apk/debug/*.apk

- name: Upload Unsigned Release APK
if: env.HAS_GOOGLE_SERVICES == 'true'
uses: actions/upload-artifact@v4.6.2
uses: actions/upload-artifact@v7.0.1
with:
name: LeviLauncher-release-unsigned-apk
path: app/build/outputs/apk/release/*-unsigned.apk

- name: Upload Beta APK
if: env.HAS_GOOGLE_SERVICES == 'true'
uses: actions/upload-artifact@v4.6.2
uses: actions/upload-artifact@v7.0.1
with:
name: LeviLauncher-beta-apk
path: app/build/outputs/apk/beta/*.apk
Expand Down Expand Up @@ -185,14 +186,14 @@ jobs:

- name: Upload Signed APK Artifact
if: env.HAS_GOOGLE_SERVICES == 'true' && startsWith(github.ref, 'refs/tags/')
uses: actions/upload-artifact@v4.6.2
uses: actions/upload-artifact@v7.0.1
with:
name: LeviLauncher-${{ github.ref_name }}-release.apk
path: LeviLauncher-${{ github.ref_name }}-release.apk

- name: Release APK to GitHub Releases
if: env.HAS_GOOGLE_SERVICES == 'true' && startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@v3.0.2
with:
files: LeviLauncher-${{ github.ref_name }}-release.apk
env:
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,28 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
defaults:
run:
working-directory: docs
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Set up Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v7
with:
node-version: 24
cache: 'npm'
cache-dependency-path: 'docs/package-lock.json'

- name: Install documentation dependencies
working-directory: docs
run: npm ci

- name: Build documentation
working-directory: docs
run: npm run docs:build

- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v4
uses: actions/upload-pages-artifact@v5
with:
path: docs/.vitepress/dist/

Expand All @@ -52,4 +55,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v5