Rebuild core #21
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: Rust | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/checkout@v4 | |
with: | |
repository: KDAB/android_openssl | |
path: ssl | |
- uses: nttld/setup-ndk@v1 | |
with: | |
ndk-version: r21e | |
- name: check ndk | |
run: cd $ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin && pwd && ls | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- uses: shogo82148/actions-setup-perl@v1 | |
with: | |
perl-version: '5.34' | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Build APK | |
run: flutter build apk | |
# - name: PreBuild | |
# run: rustup target add aarch64-linux-android && sudo apt-get update && sudo apt-get install -y android-liblog | |
# - name: Build | |
# run: cd rust && export PATH="/usr/local/lib/android/sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH" && cargo b --target aarch64-linux-android --release |