Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

Commit 2be636e

Browse files
committed
CI: add/update PR build action
1 parent b70be13 commit 2be636e

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/build-pr.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: build PR
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Cache m2 folder
16+
uses: actions/cache@v2
17+
env:
18+
cache-name: cache-m2
19+
with:
20+
path: ~/.m2/repository
21+
key: ${{ runner.os }}-build-${{ env.cache-name }}
22+
restore-keys: |
23+
${{ runner.os }}-build-${{ env.cache-name }}-
24+
${{ runner.os }}-build-
25+
${{ runner.os }}-
26+
27+
- name: Set up JDK 8
28+
uses: actions/setup-java@v2
29+
with:
30+
java-version: '8'
31+
distribution: 'zulu'
32+
- name: Set up CI environment
33+
run: .github/setup.sh
34+
- name: Execute the build
35+
run: .github/build.sh

0 commit comments

Comments
 (0)