mirror of
https://github.com/googlemaps/android-samples.git
synced 2025-12-08 18:02:20 +00:00
* feat: Adding kotlin sample for MapWithMarker. * Using gradle technique for passing the API key * Adding license headers. * Modify java MapWithMarker to use secure.properties as well. * Adding more license headers * Update build.yml cd * Fix dir. * Using maps_api_key * Update tutorials/kotlin/MapWithMarker/app/src/main/java/com/example/mapwithmarker/MapsMarkerActivity.kt Co-authored-by: Sean Barbeau <sjbarbeau@gmail.com> * Comments * Add missing import Co-authored-by: Sean Barbeau <sjbarbeau@gmail.com>
74 lines
1.5 KiB
YAML
74 lines
1.5 KiB
YAML
name: Build demos
|
|
|
|
# Controls when the action will run. Triggers the workflow on push or pull request
|
|
# events but only for the master branch
|
|
on:
|
|
push:
|
|
branches: [ '*' ]
|
|
pull_request:
|
|
branches: [ '*' ]
|
|
repository_dispatch:
|
|
types: [ build ]
|
|
schedule:
|
|
- cron: '0 0 * * 1'
|
|
|
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
jobs:
|
|
build-ApiDemos:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 45
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: set up JDK 1.8
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 1.8
|
|
|
|
- name: Build and check
|
|
run: |
|
|
cd ApiDemos
|
|
for dir in ./*/ ; do ( cd "$dir" && ./gradlew assembleDebug lintDebug ); done
|
|
|
|
build-WearOS:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 45
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: set up JDK 1.8
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 1.8
|
|
|
|
- name: Build and check
|
|
run: cd WearOS && ./gradlew assembleDebug lintDebug
|
|
|
|
build-tutorials:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 45
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: set up JDK 1.8
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 1.8
|
|
|
|
- name: Build and check
|
|
run: |
|
|
cd tutorials
|
|
for dir in ./*/
|
|
do
|
|
cd "$dir"
|
|
for tutorial in ./*/
|
|
do
|
|
cd "$tutorial" && ./gradlew assembleDebug lintDebug
|
|
cd ..
|
|
done
|
|
cd ..
|
|
done
|