@@ -20,53 +20,61 @@ jobs:
2020 runs-on : ubuntu-latest
2121 container : centos:7
2222 steps :
23- - name : Checkout repository
24- uses : actions/checkout@v1
2523 - name : Install environment
2624 run : |
2725 yum -y update
2826 yum -y install centos-release-scl-rh epel-release
29- yum -y install java-11-openjdk-devel devtoolset-9
27+ yum -y install devtoolset-9
3028 echo Downloading Maven
3129 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
3230 tar xzf $HOME/apache-maven-3.6.3-bin.tar.gz -C /opt/
3331 ln -sf /opt/apache-maven-3.6.3/bin/mvn /usr/bin/mvn
32+ - name : Configure Java
33+ uses : actions/setup-java@v2
34+ with :
35+ distribution : ' adopt'
36+ java-version : ' 17'
37+ - name : Checkout repository
38+ uses : actions/checkout@v1
3439 - name : Build project
3540 run : |
3641 source scl_source enable devtoolset-9 || true
37- export JAVA_HOME=$(dirname $(dirname $(readlink $(readlink $(which javac)))))
3842 echo $JAVA_HOME
3943 mvn -version
40- mvn clean install -Pdev,jdk11 -B -U -e -Dlint.skip=true
44+ mvn clean install -Pdev,jdk17 -B -U -e -Dlint.skip=true
4145 - name : Run lint checks
4246 run : |
43- mvn compiler:compile -Pdev,jdk11 -B -U -e
47+ mvn compiler:compile -Pdev,jdk17 -B -U -e
4448 check-format :
4549 if : github.event_name == 'pull_request'
4650 runs-on : ubuntu-latest
4751 container : centos:7
4852 steps :
49- - name : Checkout repository
50- uses : actions/checkout@v1
5153 - name : Install environment
5254 run : |
5355 yum -y update
5456 yum -y install centos-release-scl-rh epel-release
55- yum -y install java-11-openjdk-devel devtoolset-9
57+ yum -y install devtoolset-9
5658 echo Downloading Maven
5759 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
5860 tar xzf $HOME/apache-maven-3.6.3-bin.tar.gz -C /opt/
5961 ln -sf /opt/apache-maven-3.6.3/bin/mvn /usr/bin/mvn
62+ - name : Configure Java
63+ uses : actions/setup-java@v2
64+ with :
65+ distribution : ' adopt'
66+ java-version : ' 17'
67+ - name : Checkout repository
68+ uses : actions/checkout@v1
6069 - name : Build project
6170 run : |
6271 source scl_source enable devtoolset-9 || true
63- export JAVA_HOME=$(dirname $(dirname $(readlink $(readlink $(which javac)))))
6472 echo $JAVA_HOME
6573 mvn -version
66- mvn clean install -Pdev,jdk11 -B -U -e -Dlint.skip=true -Dmaven.test.skip=true
74+ mvn clean install -Pdev,jdk17 -B -U -e -Dlint.skip=true -Dmaven.test.skip=true
6775 - name : Run format checks
6876 run : |
69- mvn spotless:check -Pdev,jdk11 -B -U -e
77+ mvn spotless:check -Pdev,jdk17 -B -U -e
7078 prepare :
7179 runs-on : ubuntu-latest
7280 outputs :
99107 yum --disablerepo updates -y install $GLIBC
100108 yum -x "$GLIBC" -y update
101109 yum -x "$GLIBC" -y install centos-release-scl-rh epel-release
102- yum -x "$GLIBC" -y install java-1.8.0-openjdk-devel devtoolset-9 rh-git218 patch perl-Data-Dumper python36-devel python36-numpy python36-pip python36-six
110+ yum -x "$GLIBC" -y install devtoolset-9 rh-git218 patch perl-Data-Dumper python36-devel python36-numpy python36-pip python36-six
103111 echo Downloading Maven
104112 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
105113 tar xzf $HOME/apache-maven-3.6.3-bin.tar.gz -C /opt/
@@ -124,6 +132,11 @@ jobs:
124132 rm -f $(find /usr/local/cuda/ -name '*.a' -and -not -name libcudart_static.a -and -not -name libcudadevrt.a)
125133 rm -rf /usr/local/cuda/doc* /usr/local/cuda/libnvvp* /usr/local/cuda/nsight* /usr/local/cuda/samples*
126134 fi
135+ - name : Configure Java
136+ uses : actions/setup-java@v2
137+ with :
138+ distribution : ' adopt'
139+ java-version : ' 11'
127140 - name : Checkout repository
128141 uses : actions/checkout@v1
129142 - name : Build project
@@ -163,6 +176,11 @@ jobs:
163176 curl -L https://github.com/bazelbuild/bazel/releases/download/3.7.2/bazel-3.7.2-installer-darwin-x86_64.sh -o bazel.sh --retry 10
164177 bash bazel.sh
165178 brew install libomp perl
179+ - name : Configure Java
180+ uses : actions/setup-java@v2
181+ with :
182+ distribution : ' adopt'
183+ java-version : ' 11'
166184 - name : Checkout repository
167185 uses : actions/checkout@v1
168186 - name : Build project
@@ -186,7 +204,7 @@ jobs:
186204 df -h
187205 windows-x86_64 :
188206 if : github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'CI build')
189- runs-on : windows-latest
207+ runs-on : windows-2019
190208 needs : prepare
191209 strategy :
192210 matrix :
@@ -223,6 +241,11 @@ jobs:
223241 cp.exe -a cuda/include cuda/lib cuda/bin "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.2/"
224242 )
225243 echo %JAVA_HOME%
244+ - name : Configure Java
245+ uses : actions/setup-java@v2
246+ with :
247+ distribution : ' adopt'
248+ java-version : ' 11'
226249 - name : Checkout repository
227250 uses : actions/checkout@v1
228251 - name : Build project
0 commit comments