From e4a1c21749d42fcdf4c6ce89899d62a2501331ff Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Thu, 29 Oct 2020 14:04:28 +0100 Subject: Run all CI build pipelines on pull request --- .github/workflows/build-simulator.yml | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/build-simulator.yml (limited to '.github/workflows/build-simulator.yml') diff --git a/.github/workflows/build-simulator.yml b/.github/workflows/build-simulator.yml new file mode 100644 index 00000000..8d9356b4 --- /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: [14] + 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 }}-gradle-${{ hashFiles('**/*.gradle*') }} + restore-keys: | + ${{ runner.os }}-gradle- + - name: Build with Gradle + run: ./gradlew assemble + - name: Check with Gradle + run: ./gradlew check --info -- cgit v1.2.3 From 71fed6578389f021b13da8f6bc8f8ec9e85e363b Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Tue, 3 Nov 2020 19:37:28 +0100 Subject: Test Java 8 and Java 15 in CI pipeline This change updates the Github Actions workflow for the simulator to test both Java 8 and Java 15. --- .github/workflows/build-simulator.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.github/workflows/build-simulator.yml') diff --git a/.github/workflows/build-simulator.yml b/.github/workflows/build-simulator.yml index 8d9356b4..57e8b46d 100644 --- a/.github/workflows/build-simulator.yml +++ b/.github/workflows/build-simulator.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - java: [14] + java: [8, 15] steps: - name: Checkout repository uses: actions/checkout@v2 @@ -30,9 +30,9 @@ jobs: - uses: actions/cache@v1 with: path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} + key: ${{ runner.os }}-${{ matrix.java }}-gradle-${{ hashFiles('**/*.gradle*') }} restore-keys: | - ${{ runner.os }}-gradle- + ${{ runner.os }}-${{ matrix.java }}-gradle- - name: Build with Gradle run: ./gradlew assemble - name: Check with Gradle -- cgit v1.2.3