-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.19 KB
/
android-ksl.yml
File metadata and controls
44 lines (35 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Android KSL
on:
workflow_dispatch:
jobs:
build-android:
name: Build for aarch64-linux-android
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: aarch64-linux-android
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Install cross
run: cargo install cross --git https://github.com/cross-rs/cross
- name: Update dependencies
run: cargo update
- name: Build with cross
run: cross build --target aarch64-linux-android -p ksl --release
- name: Create or update Release with artifact
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload android target/aarch64-linux-android/release/ksl --clobber || \
gh release create android \
--prerelease \
--title "Android KSL Build" \
--notes "Latest Android build, automatically generated by GitHub Actions." \
target/aarch64-linux-android/release/ksl