Skip to content

Commit e315a6c

Browse files
committed
fix: update centos gcc version to 4.8.5
Signed-off-by: zongz <[email protected]>
1 parent 6a36587 commit e315a6c

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/java-test.yaml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ jobs:
7979
- name: 'Build and Deploy'
8080
shell: bash
8181
working-directory: java
82-
run: |
83-
mvn clean package -DskipTests=true -Djni.classifier=${{ matrix.classifier }} -Dcargo-build.profile=release
82+
run: mvn clean package -DskipTests=true -Djni.classifier=${{ matrix.classifier }} -Dcargo-build.profile=release
8483

8584
- name: 'Upload artifact'
8685
uses: actions/upload-artifact@v3
@@ -99,17 +98,14 @@ jobs:
9998
- name: Checkout
10099
uses: actions/checkout@v3
101100

102-
- name: Test and Build
101+
- name: Prepare build environment
103102
run: |
104103
yum makecache
105-
yum install -y centos-release-scl-rh centos-release-scl
106-
yum install -y devtoolset-10-gcc devtoolset-10-gcc-c++ devtoolset-10-make
107104
yum install -y wget
105+
yum install -y make
108106
yum install -y epel-release
109107
yum install -y llvm clang llvm-devel
110-
yum install -y gcc
111-
source /opt/rh/devtoolset-10/enable
112-
gcc --version
108+
yum install gcc gcc-c++ glibc-static -y
113109
cat /etc/os-release
114110
115111
- name: Install Python 3
@@ -142,6 +138,11 @@ jobs:
142138
mvn --version
143139
cat /etc/os-release
144140
141+
- name: 'Test'
142+
shell: bash
143+
working-directory: java
144+
run: make test
145+
145146
- name: 'Build and Deploy'
146147
shell: bash
147148
working-directory: java
@@ -159,6 +160,7 @@ jobs:
159160
permissions:
160161
contents: read
161162
packages: write
163+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
162164
needs: [ test, build-on-centos ]
163165
steps:
164166
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)