Skip to content

Commit

Permalink
ci(bindings/java): try to add a containered test
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun committed Sep 24, 2023
1 parent bcda685 commit 895b35b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/bindings_java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,9 @@ jobs:
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
distribution: 'temurin'
distribution: 'zulu'
java-version: '8'
cache: 'maven'
- name: Install Protoc
uses: arduino/setup-protoc@v2
with:
version: "23.4"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build and test
working-directory: bindings/java
# `mvn install` and `mvn artifact:compare` are required to verify reproducible builds:
Expand All @@ -86,3 +81,25 @@ jobs:
run: |
./mvnw clean install -DskipTests
./mvnw verify artifact:compare
centos-containered-test:
runs-on: ubuntu-latest
container: centos/python-38-centos7
steps:
- uses: actions/checkout@v3
- name: Set up rustup
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-init.sh
sh rustup-init.sh -y --default-toolchain none
source "$HOME/.cargo/env"
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '8'
cache: 'maven'
- name: Build and test
working-directory: bindings/java
run: |
# GLIBC is too old on centos
./mvnw clean verify -Dcargo-build.target=x86_64-unknown-linux-musl
2 changes: 1 addition & 1 deletion bindings/java/tools/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# under the License.


from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser, BooleanOptionalAction
from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser
from pathlib import Path
import shutil
import subprocess
Expand Down

0 comments on commit 895b35b

Please sign in to comment.