mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-01-01 08:37:42 +00:00
Trying to add android CI builds
This commit is contained in:
parent
67fb32499f
commit
aa27680baf
|
@ -40,6 +40,12 @@ environment:
|
|||
target_name: mac-m1
|
||||
job_name: mac-arm64
|
||||
appveyor_build_worker_image: macos-monterey
|
||||
- channel: stable
|
||||
target: aarch64-linux-android
|
||||
extra_targets: armv7-linux-androideabi i686-linux-android
|
||||
target_name: android
|
||||
job_name: android-arm64
|
||||
appveyor_build_worker_image: Ubuntu
|
||||
|
||||
matrix:
|
||||
fast_finish: true
|
||||
|
@ -156,3 +162,45 @@ for:
|
|||
- cd release
|
||||
- 7z a ../doukutsu-rs_$target_name.zip *
|
||||
- appveyor PushArtifact ../doukutsu-rs_$target_name.zip
|
||||
|
||||
-
|
||||
matrix:
|
||||
only:
|
||||
- appveyor_build_worker_image: Ubuntu
|
||||
job_name: android
|
||||
|
||||
install:
|
||||
- sudo apt-get update && sudo apt-get -y install libasound2-dev libudev-dev libgl1-mesa-dev pkg-config
|
||||
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -yv --default-toolchain $channel --default-host $target
|
||||
- export PATH=$PATH:$HOME/.cargo/bin
|
||||
- rustup update
|
||||
- rustup default $channel
|
||||
- rustup target add $extra_targets
|
||||
- rustc -vV
|
||||
- cargo -vV
|
||||
- java --version
|
||||
|
||||
cache:
|
||||
- '$HOME/.cache'
|
||||
- '$HOME/.cargo/bin'
|
||||
- '$HOME/.cargo/registry/index'
|
||||
- '$HOME/.cargo/registry/cache'
|
||||
- '$HOME/.cargo/git/db'
|
||||
- '$HOME/.gradle/caches'
|
||||
- '$HOME/.gradle/wrapper'
|
||||
- '$HOME/.rustup'
|
||||
- 'app/app/.cxx'
|
||||
- 'app/app/build/intermediates'
|
||||
- 'app/app/build/outputs/'
|
||||
- 'app/build
|
||||
- 'drsandroid/target/aarch64-linux-android'
|
||||
|
||||
build_script:
|
||||
#- export DRS_BUILD_VERSION_OVERRIDE=$APPVEYOR_BUILD_VERSION
|
||||
- if [ "$APPVEYOR_REPO_TAG" = "true" ]; then export DRS_BUILD_VERSION_OVERRIDE=$APPVEYOR_REPO_TAG_NAME; else export DRS_BUILD_VERSION_OVERRIDE=$APPVEYOR_BUILD_VERSION; fi
|
||||
- cd app
|
||||
- ./gradlew assembleRelease
|
||||
- mkdir ../release
|
||||
- cd ..
|
||||
- cp app/app/build/outputs/apk/release/app-release.apk release/doukutsu-rs_$target_name.apk
|
||||
- appveyor PushArtifact release/doukutsu-rs_$target_name.apk
|
||||
|
|
Loading…
Reference in a new issue