Skip to content

Set up CI for Spatial SDK Samples #2

Set up CI for Spatial SDK Samples

Set up CI for Spatial SDK Samples #2

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
folder:
- AnimationsSample
- CodelabStarters/CustomComponentsStarter
- CustomComponentsSample
- HybridSample
- MediaPlayerSample
- MixedRealitySample
- MrukSample
- Object3DSample
- PhysicsSample
- Showcases/focus
- Showcases/geo_voyage
- Showcases/media_view
- SpatialVideoSample
- StarterSample
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Setup Android SDK
uses: android-actions/setup-android@v3
with:
packages: "ndk;27.0.12077973"
- name: Build with Gradle
working-directory: ${{ matrix.folder }}
run: ./gradlew build --exclude-task ":app:export"