summaryrefslogtreecommitdiff
path: root/.github/workflows/build-simulator.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build-simulator.yml')
-rw-r--r--.github/workflows/build-simulator.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/.github/workflows/build-simulator.yml b/.github/workflows/build-simulator.yml
new file mode 100644
index 00000000..57e8b46d
--- /dev/null
+++ b/.github/workflows/build-simulator.yml
@@ -0,0 +1,39 @@
+name: Build Simulator
+
+on:
+ push:
+ paths:
+ - 'simulator/**'
+ pull_request:
+ branches: [master]
+
+defaults:
+ run:
+ working-directory: simulator
+
+jobs:
+ build:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ubuntu-latest]
+ java: [8, 15]
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v2
+ - name: Set up JDK
+ uses: actions/setup-java@v1
+ with:
+ java-version: ${{ matrix.java }}
+ - name: Grant execute permission for gradlew
+ run: chmod +x gradlew
+ - uses: actions/cache@v1
+ with:
+ path: ~/.gradle/caches
+ key: ${{ runner.os }}-${{ matrix.java }}-gradle-${{ hashFiles('**/*.gradle*') }}
+ restore-keys: |
+ ${{ runner.os }}-${{ matrix.java }}-gradle-
+ - name: Build with Gradle
+ run: ./gradlew assemble
+ - name: Check with Gradle
+ run: ./gradlew check --info