Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Build shared linux against system lib. #228

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 3 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,10 @@ jobs:
steps:
- uses: actions/checkout@v3

# Install harfbuzz from the source in harfbuzz-sys. Use an out-of-tree
# build to avoid contaminating the source tree.
- name: Build harfbuzz
env:
PREFIX: /usr/local
- name: install harfbuzz from apt
run: |
make -f harfbuzz-sys/makefile.touch touch HARFBUZZ=harfbuzz-sys/harfbuzz
HARFDIR=`pwd`
pushd $RUNNER_TEMP
$HARFDIR/harfbuzz-sys/harfbuzz/configure --prefix=$PREFIX --without-icu --without-freetype --without-glib
make
sudo make install
# Make harfbuzz available for linking and confirm expected location
TEMP_PATH="$(pkg-config --variable=libdir harfbuzz)"
echo "LD_LIBRARY_PATH=$TEMP_PATH" >> $GITHUB_ENV
[[ "$TEMP_PATH" == "$PREFIX/lib" ]] || exit 1
popd
sudo apt update
sudo apt install libharfbuzz-dev

- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
Expand Down
45 changes: 0 additions & 45 deletions harfbuzz-sys/makefile.touch

This file was deleted.