Skip to content
Open
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
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,19 @@ jobs:
id: plutobook-cache
with:
path: tmp/plutobook-ci-install
key: plutobook-v0.17.0-${{ runner.os }}-${{ hashFiles('.github/workflows/ci.yml') }}
key: plutobook-v0.18.0-${{ runner.os }}-${{ hashFiles('.github/workflows/ci.yml') }}
restore-keys: |
plutobook-v0.17.0-${{ runner.os }}-
plutobook-v0.18.0-${{ runner.os }}-

- name: Build PlutoBook
if: steps.plutobook-cache.outputs.cache-hit != 'true'
run: |
git clone --depth 1 --branch v0.17.0 https://github.com/plutoprint/plutobook.git tmp/plutobook-ci-src
git clone --depth 1 --branch v0.18.0 https://github.com/plutoprint/plutobook.git tmp/plutobook-ci-src
meson setup tmp/plutobook-ci-build tmp/plutobook-ci-src \
--prefix="$PWD/tmp/plutobook-ci-install" \
--libdir=lib \
--buildtype=release \
-Dcpp_args="['-include', 'memory_resource']" \
--force-fallback-for=harfbuzz \
-Dcurl=disabled \
-Dturbojpeg=disabled \
Expand Down Expand Up @@ -129,14 +130,14 @@ jobs:
id: plutobook-cache-macos
with:
path: tmp/plutobook-ci-install
key: plutobook-v0.17.0-${{ runner.os }}-${{ hashFiles('.github/workflows/ci.yml') }}
key: plutobook-v0.18.0-${{ runner.os }}-${{ hashFiles('.github/workflows/ci.yml') }}
restore-keys: |
plutobook-v0.17.0-${{ runner.os }}-
plutobook-v0.18.0-${{ runner.os }}-

- name: Build PlutoBook
if: steps.plutobook-cache-macos.outputs.cache-hit != 'true'
run: |
git clone --depth 1 --branch v0.17.0 https://github.com/plutoprint/plutobook.git tmp/plutobook-ci-src
git clone --depth 1 --branch v0.18.0 https://github.com/plutoprint/plutobook.git tmp/plutobook-ci-src
meson setup tmp/plutobook-ci-build tmp/plutobook-ci-src \
--prefix="$PWD/tmp/plutobook-ci-install" \
--libdir=lib \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ Build an Apple Silicon macOS platform gem with a vendored PlutoBook library:
bundle exec rake package:darwin_arm64
```

These tasks check out PlutoBook `v0.17.0`, build it into `lib/page_print/vendor/<platform>`, and write a platform gem to `pkg/`. Platform gems compile the Ruby extension during gem install to avoid tying the gem to the build machine's Ruby version.
These tasks check out PlutoBook `v0.18.0`, build it into `lib/page_print/vendor/<platform>`, and write a platform gem to `pkg/`. Platform gems compile the Ruby extension during gem install to avoid tying the gem to the build machine's Ruby version.

Native gems bundle PlutoBook and its non-system shared library dependencies. Optional PlutoBook features for curl, TurboJPEG, and WebP are disabled to keep the bundled dependency set smaller.

Expand Down
2 changes: 1 addition & 1 deletion rakelib/package_darwin.rake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require "bundler"
require "rbconfig"
require "shellwords"

PAGE_PRINT_PLUTOBOOK_VERSION = "v0.17.0" unless defined?(PAGE_PRINT_PLUTOBOOK_VERSION)
PAGE_PRINT_PLUTOBOOK_VERSION = "v0.18.0" unless defined?(PAGE_PRINT_PLUTOBOOK_VERSION)
PAGE_PRINT_DARWIN_PLATFORM = "arm64-darwin"
PAGE_PRINT_DARWIN_SYSTEM_PREFIXES = [
"/System/Library/",
Expand Down
4 changes: 2 additions & 2 deletions rakelib/package_linux.rake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ require "rbconfig"
require "rubygems/package_task"
require "shellwords"

PAGE_PRINT_PLUTOBOOK_VERSION = "v0.17.0" unless defined?(PAGE_PRINT_PLUTOBOOK_VERSION)
PAGE_PRINT_PLUTOBOOK_VERSION = "v0.18.0" unless defined?(PAGE_PRINT_PLUTOBOOK_VERSION)
PAGE_PRINT_LINUX_PLATFORM = "x86_64-linux"
PAGE_PRINT_LINUX_SYSTEM_LIBRARIES = %w[
ld-linux
Expand Down Expand Up @@ -38,7 +38,7 @@ namespace :package do
FileUtils.mkdir_p(File.join(root, "pkg"))

sh "git clone --depth 1 --branch #{PAGE_PRINT_PLUTOBOOK_VERSION.shellescape} https://github.com/plutoprint/plutobook.git #{plutobook_source_dir.shellescape}"
sh "meson setup #{plutobook_build_dir.shellescape} #{plutobook_source_dir.shellescape} --prefix=#{plutobook_install_dir.shellescape} --libdir=lib --buildtype=release --force-fallback-for=harfbuzz -Dcurl=disabled -Dturbojpeg=disabled -Dwebp=disabled -Dtools=disabled -Dtests=disabled -Dexamples=disabled"
sh "meson setup #{plutobook_build_dir.shellescape} #{plutobook_source_dir.shellescape} --prefix=#{plutobook_install_dir.shellescape} --libdir=lib --buildtype=release -Dcpp_args=\"['-include', 'memory_resource']\" --force-fallback-for=harfbuzz -Dcurl=disabled -Dturbojpeg=disabled -Dwebp=disabled -Dtools=disabled -Dtests=disabled -Dexamples=disabled"
sh "meson compile -C #{plutobook_build_dir.shellescape}"
sh "meson install -C #{plutobook_build_dir.shellescape}"

Expand Down
Loading