mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Add android build to CI
This commit is contained in:
parent
4359e04810
commit
69624ba7a5
18
.github/workflows/rust.yml
vendored
18
.github/workflows/rust.yml
vendored
@ -7,7 +7,7 @@ env:
|
||||
|
||||
jobs:
|
||||
build-x86:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
@ -18,8 +18,20 @@ jobs:
|
||||
- name: Build
|
||||
run: cargo build --bin mapr
|
||||
|
||||
build-aarch64-android:
|
||||
runs-on: ubuntu-20.04
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
- name: Build
|
||||
run: tools/build-android
|
||||
|
||||
build-wasm:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
@ -46,7 +58,7 @@ jobs:
|
||||
rsync -e "ssh -o StrictHostKeyChecking=no -i id_rsa" -r "dist/demo/." max@maxammann.org:~/public_html/mapr/
|
||||
|
||||
book:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
webgl_flag=""
|
||||
run=false
|
||||
|
||||
TEMP=$(getopt --long -o "g" "$@")
|
||||
eval set -- "$TEMP"
|
||||
while true; do
|
||||
case "$1" in
|
||||
-g)
|
||||
webgl_flag="web-webgl,"
|
||||
run=true
|
||||
shift 2
|
||||
;;
|
||||
*)
|
||||
@ -18,4 +18,9 @@ while true; do
|
||||
done
|
||||
|
||||
cargo install cargo-apk
|
||||
cargo apk run --lib
|
||||
|
||||
if [ "$run" = true ] ; then
|
||||
cargo apk run --lib
|
||||
else
|
||||
cargo apk build --lib
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user