Skip to content

Commit fa31303

Browse files
committed
androidビルド追加
1 parent 07a5985 commit fa31303

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/deploy.yaml

+13-1
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,24 @@ jobs:
2222
os: macos
2323
- target: aarch64-unknown-linux-gnu
2424
os: raspi
25+
- target: aarch64-linux-android
26+
os: android
2527
steps:
2628
- uses: actions/checkout@v4
29+
- name: Setup NDK
30+
if: matrix.os == 'android'
31+
uses: nttld/setup-ndk@v1
32+
with:
33+
ndk-version: r26d
2734
- name: Setup Rust
2835
uses: dtolnay/rust-toolchain@stable
2936
with:
3037
toolchain: stable
3138
targets: ${{ matrix.target }}
3239
components: rust-src rustc-dev llvm-tools-preview
33-
# msvc: ${{ matrix.os == 'windows' }}
40+
- name: Install Android toolchain
41+
if: matrix.os == 'android'
42+
run: rustup target add aarch64-linux-android
3443
- name: Install Windows toolchain
3544
if: matrix.os == 'windows'
3645
run: |
@@ -53,6 +62,9 @@ jobs:
5362
rustup target add aarch64-unknown-linux-gnu
5463
- name: Build
5564
run: cargo build --release --target ${{ matrix.target }}
65+
env:
66+
CC_aarch64_linux_android: ${{ env.ANDROID_NDK_HOME }}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android33-clang
67+
CXX_aarch64_linux_android: ${{ env.ANDROID_NDK_HOME }}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android33-clang++
5668
- name: Upload artifact
5769
uses: actions/upload-artifact@v4
5870
with:

0 commit comments

Comments
 (0)