diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-11-03 19:51:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-03 19:51:37 +0100 |
| commit | f3f8d1d494a08a032940c6587c7865cd0ac0dd7a (patch) | |
| tree | f929c999e0919af1325c86d7147b6b948b2bdf24 /.github/workflows/build-simulator.yml | |
| parent | fe717acf3136400a8048b5e2aabbc99414c790c1 (diff) | |
| parent | e706cb9ef3e0c8b55746c24808ae90034bfacdd0 (diff) | |
Merge pull request #61 from atlarge-research/ci/limit
Improve CI pipelines
Diffstat (limited to '.github/workflows/build-simulator.yml')
| -rw-r--r-- | .github/workflows/build-simulator.yml | 39 |
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 |
