Skip to content

Commit 29aeddf

Browse files
committed
fix: fix kotlin github action
Signed-off-by: zongz <[email protected]>
1 parent 758b62f commit 29aeddf

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/kotlin-test.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,7 @@ jobs:
9090
kotlin/target/classes/native
9191
9292
build-centos7:
93-
runs-on: ubuntu-latest
94-
container:
95-
image: "kcllang/kcl-java-builder-centos7:0.1.0"
93+
runs-on: ubuntu-20.04
9694

9795
permissions:
9896
contents: read
@@ -128,10 +126,13 @@ jobs:
128126
name: kcl-lib-osx-aarch_64
129127
path: kotlin/native
130128

131-
- name: Package Kotlin artifact
132-
working-directory: kotlin
129+
- name: Run tests and package in CentOS 7 container
133130
run: |
134-
rustup default stable && mvn package -DskipTests=true -Dcargo-build.profile=release
131+
docker run --rm -v ${{ github.workspace }}/kotlin:/work kcllang/kcl-java-builder-centos7:0.1.0 bash -c "
132+
cd /work &&
133+
rustup default stable &&
134+
mvn package -DskipTests=true -Dcargo-build.profile=release
135+
"
135136
136137
- name: Upload artifact
137138
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)