File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -40,29 +40,25 @@ jobs:
40
40
- name : Run lint checks
41
41
run : |
42
42
mvn compiler:compile -Pdev,jdk11 -B -U -e
43
- quick-build-jdk8 :
43
+ quick-build-jdk9 :
44
44
if : github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'CI build')
45
45
runs-on : ubuntu-latest
46
46
container : centos:7
47
47
steps :
48
48
- name : Checkout repository
49
- uses : actions/checkout@v1
49
+ uses : actions/checkout@v1
50
50
- name : Setup Java
51
51
uses : actions/setup-java@v1
52
52
with :
53
- java-version : 8
53
+ java-version : 9
54
54
- name : Install environment
55
55
run : |
56
- yum -y update
57
- yum -y install centos-release-scl-rh epel-release
58
- yum -y install devtoolset-7
59
56
echo Downloading Maven
60
57
curl -L https://archive.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz -o $HOME/apache-maven-3.6.3-bin.tar.gz
61
58
tar xzf $HOME/apache-maven-3.6.3-bin.tar.gz -C /opt/
62
59
ln -sf /opt/apache-maven-3.6.3/bin/mvn /usr/bin/mvn
63
60
- name : Build project
64
61
run : |
65
- source scl_source enable devtoolset-7 || true
66
62
export JAVA_HOME=$(dirname $(dirname $(readlink $(readlink $(which javac)))))
67
63
echo $JAVA_HOME
68
64
mvn -version
You can’t perform that action at this time.
0 commit comments