Skip to content

Commit

Permalink
Add pwd to environment variable in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
TimDiekmann committed Nov 14, 2024
1 parent c790fbd commit d7e1fb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ jobs:
tar -xzf $temp_dir/pdfium-linux-x64.tgz -C $temp_dir
mv $temp_dir/lib/* "${{ matrix.directory }}/libs/"
rm -rf $temp_dir
echo "PDFIUM_DYNAMIC_LIB_PATH='${{ matrix.directory }}/libs/'" >> $GITHUB_ENV
echo "PDFIUM_DYNAMIC_LIB_PATH='${pwd}/${{ matrix.directory }}/libs/'" >> $GITHUB_ENV
- name: Install Rust toolchain
if: always() && steps.tests.outputs.has-rust == 'true'
Expand Down Expand Up @@ -291,7 +291,7 @@ jobs:
tar -xzf $temp_dir/pdfium-linux-x64.tgz -C $temp_dir
mv $temp_dir/lib/* "${{ matrix.directory }}/libs/"
rm -rf $temp_dir
echo "PDFIUM_DYNAMIC_LIB_PATH='${{ matrix.directory }}/libs/'" >> $GITHUB_ENV
echo "PDFIUM_DYNAMIC_LIB_PATH='${pwd}/${{ matrix.directory }}/libs/'" >> $GITHUB_ENV
- name: Install playwright
if: matrix.package == '@tests/hash-playwright'
Expand Down
3 changes: 2 additions & 1 deletion libs/chonky/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ pub fn link_pdfium() -> Result<Pdfium, Report<ChonkyError>> {

let lib_path = Path::new(lib_path.as_ref())
.canonicalize()
.change_context(ChonkyError::Pdfium)?;
.change_context(ChonkyError::Pdfium)
.attach_printable_lazy(|| format!("could not canonicalize path `{lib_path}`"))?;
Ok(Pdfium::new(
Pdfium::bind_to_library(Pdfium::pdfium_platform_library_name_at_path(&lib_path))
.change_context(ChonkyError::Pdfium)?,
Expand Down

0 comments on commit d7e1fb2

Please sign in to comment.