Fix vita build #75
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android CI Build | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
android-build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install latest nightly | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: true | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v3 | |
- name: Install Deps | |
run: | | |
sdkmanager "platforms;android-30" | |
wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.asc | |
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.3.250-jammy.list https://packages.lunarg.com/vulkan/1.3.250/lunarg-vulkan-1.3.250-jammy.list | |
sudo apt update | |
sudo apt install vulkan-sdk nasm | |
- name: Set NDK_HOME env | |
run: echo "NDK_HOME=$ANDROID_NDK_LATEST_HOME" >> $GITHUB_ENV | |
- name: Cache ffmpeg | |
uses: actions/cache@v3 | |
with: | |
path: vcpkg_installed | |
key: ${{ runner.os }}-android-build-ffmpeg | |
- name: Install ffmpeg | |
run: | | |
vcpkg x-update-baseline | |
vcpkg install --triplet=arm64-android | |
vcpkg integrate install | |
tree vcpkg_installed | |
- name: Install Android targets | |
run: rustup target add aarch64-linux-android | |
- name: Install Cargo APK | |
run: cargo install --force cargo-apk | |
- name: Build APK | |
run: cd yaobow/yaobow && cargo apk build --lib |