Skip to content

Commit

Permalink
set jdk with setup-java
Browse files Browse the repository at this point in the history
  • Loading branch information
whhe committed Jun 18, 2024
1 parent 71b5fcc commit 25daf6f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/cmake_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ jobs:
container: 'centos:7'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'
- name: Install dependencies
run: |
curl -fsSLO --compressed https://cmake.org/files/v3.22/cmake-3.22.3-linux-x86_64.tar.gz
tar -zxvf cmake-3.22.3-linux-x86_64.tar.gz -C /usr --strip-components=1 --no-same-owner
yum install -y which git wget rpm rpm-build cpio gcc gcc-c++ make glibc-devel glibc-headers libstdc++-static binutils openssl-devel libaio-devel java-11-openjdk
yum install -y which git wget rpm rpm-build cpio gcc gcc-c++ make glibc-devel glibc-headers libstdc++-static binutils openssl-devel libaio-devel
yum install -y centos-release-scl
yum install -y devtoolset-9
echo "source /opt/rh/devtoolset-9/enable" >> /etc/bashrc
Expand Down

0 comments on commit 25daf6f

Please sign in to comment.