Skip to content

Commit cee4e2f

Browse files
dl239denglong
andauthored
fix: fix github actions (#4033)
Co-authored-by: denglong <[email protected]>
1 parent 99e5e7f commit cee4e2f

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

.github/workflows/cicd.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ jobs:
5050
- uses: actions/checkout@v4
5151
with:
5252
submodules: recursive
53+
- name: Mark repo as safe
54+
run: git config --global --add safe.directory $GITHUB_WORKSPACE
5355
- name: prepare release
5456
run: |
5557
VERSION="snapshot"
@@ -161,13 +163,17 @@ jobs:
161163
CTEST_PARALLEL_LEVEL: 1 # parallel test level for ctest (make test)
162164
steps:
163165
- uses: actions/checkout@v4
164-
165-
# target on macOS >= 12.0
166+
with:
167+
submodules: recursive
166168
- name: Xcode Select Version
167169
uses: maxim-lobanov/setup-xcode@v1
168170
with:
169171
xcode-version: '14.1.0'
170-
172+
- name: Set up JDK 8
173+
uses: actions/setup-java@v4
174+
with:
175+
java-version: '8'
176+
distribution: 'temurin'
171177
- name: prepare release
172178
run: |
173179
VERSION="snapshot"

.github/workflows/integration-test.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,23 @@ env:
2828
jobs:
2929
openmldb-test-python:
3030
runs-on: [self-hosted, generic]
31+
if: github.repository == '4paradigm/OpenMLDB'
3132
container:
3233
image: ghcr.io/4paradigm/hybridsql:latest
3334
steps:
3435
- uses: actions/checkout@v4
36+
with:
37+
submodules: recursive
38+
- name: Mark repo as safe
39+
run: git config --global --add safe.directory $GITHUB_WORKSPACE
40+
- name: Set up JDK 8
41+
uses: actions/setup-java@v4
42+
with:
43+
java-version: '8'
44+
distribution: 'temurin
3545
- name: build openmldb
3646
shell: bash
3747
run: |
38-
git config --system --add safe.directory $(pwd)
3948
make build SQL_JAVASDK_ENABLE=ON CMAKE_INSTALL_PREFIX=openmldb
4049
make install SQL_JAVASDK_ENABLE=ON CMAKE_INSTALL_PREFIX=openmldb
4150
- name: install openmldb

.github/workflows/sdk.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ jobs:
5151
- uses: actions/checkout@v4
5252
with:
5353
submodules: recursive
54-
- uses: actions/setup-java@v2
54+
- uses: actions/setup-java@v4
5555
with:
56-
distribution: "adopt"
56+
distribution: 'temurin'
5757
java-version: "8"
5858
server-id: ossrh
5959
server-username: MAVEN_USERNAME

0 commit comments

Comments
 (0)