Skip to content

Commit

Permalink
ci: fix graalvm step
Browse files Browse the repository at this point in the history
  • Loading branch information
nmammeri committed Jun 10, 2024
1 parent 02f3111 commit 72cb5c1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release_pyton_pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,20 @@ jobs:
target: ppc64le
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- uses: graalvm/[email protected]
with:
java-version: '22'
distribution: 'graalvm-community'
set-java-home: 'true'
- name: Example step
run: |
echo "GRAALVM_HOME: $GRAALVM_HOME"
echo "JAVA_HOME: $JAVA_HOME"
java --version
native-image --version
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand Down
6 changes: 3 additions & 3 deletions extract-core/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::process::Command;

fn main() {
let root_dir = env::var("CARGO_MANIFEST_DIR").map(PathBuf::from).unwrap();
let tika_native_dir = root_dir.join("tika-native");
let tika_native_dir = root_dir.join("tika-native").canonicalize().unwrap();
let out_dir = env::var("OUT_DIR").map(PathBuf::from).unwrap();
let target_os = env::var("CARGO_CFG_TARGET_OS").unwrap();

Expand Down Expand Up @@ -34,11 +34,11 @@ fn main() {
}

// Run the gradle build command to build tika-native
fn gradle_build(target_os: &str, tika_native_dir: &PathBuf,
fn gradle_build(target_os: &str, tika_native_dir: &Path,
out_dir: &PathBuf, _dist_dir: &Path
) {
let gradlew = match target_os {
"windows" => "./gradlew.bat",
"windows" => "gradlew.bat",
_ => "./gradlew"
};

Expand Down

0 comments on commit 72cb5c1

Please sign in to comment.