2020-09-11 13:14:20 +02:00
|
|
|
version: 2.1
|
|
|
|
|
|
|
|
executors:
|
|
|
|
win32-executor:
|
|
|
|
docker:
|
|
|
|
- image: cimg/base:edge-20.04
|
2020-09-11 15:40:32 +02:00
|
|
|
autotools-executor:
|
|
|
|
docker:
|
|
|
|
- image: cimg/base:edge-20.04
|
2017-11-01 08:15:27 +01:00
|
|
|
|
2017-10-31 20:42:08 +01:00
|
|
|
jobs:
|
|
|
|
|
2021-07-12 22:24:14 +02:00
|
|
|
macos-aat-fonts:
|
2019-12-10 13:58:04 +01:00
|
|
|
macos:
|
2021-07-12 22:24:14 +02:00
|
|
|
xcode: "12.5.1"
|
2019-03-07 23:03:41 +01:00
|
|
|
steps:
|
|
|
|
- checkout
|
2020-11-21 15:07:57 +01:00
|
|
|
- run: HOMEBREW_NO_AUTO_UPDATE=1 brew install pkg-config ragel freetype glib cairo python3 icu4c graphite2 gobject-introspection gtk-doc ninja
|
2020-07-06 15:59:23 +02:00
|
|
|
- run: pip3 install meson --upgrade
|
2021-04-25 15:43:30 +02:00
|
|
|
- run: PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig" meson build -Dcoretext=enabled -Dgraphite=enabled -Dauto_features=enabled -Dchafa=disabled
|
2020-07-06 14:01:32 +02:00
|
|
|
- run: meson compile -Cbuild
|
|
|
|
- run: meson test -Cbuild --print-errorlogs
|
2020-10-23 18:39:34 +02:00
|
|
|
- store_artifacts:
|
|
|
|
path: build/meson-logs/
|
2019-03-07 23:03:41 +01:00
|
|
|
|
2020-08-11 21:21:59 +02:00
|
|
|
# will be dropped with autotools removal
|
|
|
|
distcheck:
|
2020-09-11 15:40:32 +02:00
|
|
|
executor: autotools-executor
|
2020-08-11 21:21:59 +02:00
|
|
|
steps:
|
|
|
|
- checkout
|
2021-03-22 14:51:17 +01:00
|
|
|
- run: sudo apt update && DEBIAN_FRONTEND=noninteractive sudo apt install -y git ninja-build binutils libtool autoconf automake make gcc g++ pkg-config ragel gtk-doc-tools gobject-introspection libfreetype6-dev libglib2.0-dev libgirepository1.0-dev libcairo2-dev libicu-dev libgraphite2-dev python3 python3-pip
|
2021-07-27 23:40:15 +02:00
|
|
|
- run: pip3 install fonttools meson --upgrade
|
2020-08-11 21:21:59 +02:00
|
|
|
- run: ./autogen.sh
|
2021-04-16 02:37:11 +02:00
|
|
|
- run: make -j2 distcheck
|
2020-08-11 21:21:59 +02:00
|
|
|
- run: rm harfbuzz-* && make distdir
|
2021-04-16 02:37:11 +02:00
|
|
|
- run: cd harfbuzz-* && meson build && ninja -j2 -Cbuild test
|
2020-09-11 15:46:34 +02:00
|
|
|
- run: make dist
|
|
|
|
- persist_to_workspace:
|
|
|
|
root: .
|
|
|
|
paths: harfbuzz-*.tar.xz
|
|
|
|
|
|
|
|
publish-dist:
|
|
|
|
executor: autotools-executor
|
|
|
|
steps:
|
2020-09-11 16:23:00 +02:00
|
|
|
- checkout
|
2020-09-11 15:46:34 +02:00
|
|
|
- attach_workspace:
|
|
|
|
at: .
|
|
|
|
- run: |
|
2020-09-11 16:23:00 +02:00
|
|
|
.ci/publish_release_artifact.sh harfbuzz-$CIRCLE_TAG.tar.xz
|
2020-08-11 21:21:59 +02:00
|
|
|
|
2020-07-08 12:40:25 +02:00
|
|
|
fedora-valgrind:
|
2017-11-01 22:10:55 +01:00
|
|
|
docker:
|
[ci] Pin fedora 33 docker image
g-ir-scanner is broken on 34 image:
FAILED: src/HarfBuzz-0.0.gir
/usr/bin/g-ir-scanner --no-libtool --namespace=HarfBuzz --nsversion=0.0 --warn-all --output src/HarfBuzz-0.0.gir --c-include=hb-gobject.h --cflags-begin -DHB_NO_SINGLE_HEADER_ERROR -DHAVE_GOBJECT -DHB_EXTERN= --cflags-end -I/root/project/src -I/root/project/build/src -I./. -I../. --filelist=/root/project/build/src/libharfbuzz-gobject.so.0.20800.0.p/HarfBuzz_0.0_gir_filelist --include=GObject-2.0 --symbol-prefix=hb --symbol-prefix=hb_gobject --identifier-prefix=hb_ --pkg-export=harfbuzz-gobject --cflags-begin -DHAVE_CONFIG_H -I./. -I../. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I./src/. -I../src/. -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/gobject-introspection-1.0 --cflags-end --add-include-path=/usr/share/gir-1.0 -L/root/project/build/src --extra-library=harfbuzz --library harfbuzz-gobject -L/root/project/build/src -L/root/project/build/src --extra-library=glib-2.0 --extra-library=gobject-2.0 --extra-library=m --extra-library=freetype --extra-library=girepository-1.0 --sources-top-dirs /root/project/subprojects/ --sources-top-dirs /root/project/build/subprojects/
../src/hb-buffer.cc:641: Warning: HarfBuzz: unknown annotation: xconstructor
../src/hb-face.cc:192: Warning: HarfBuzz: unknown annotation: xconstructor
../src/hb-font.cc:551: Warning: HarfBuzz: unknown annotation: xconstructor
../src/hb-font.cc:1519: Warning: HarfBuzz: unknown annotation: xconstructor
../src/hb-map.cc:43: Warning: HarfBuzz: unknown annotation: xconstructor
../src/hb-ot-name.cc:55: Warning: HarfBuzz: unexpected annotation: out
../src/hb-set.cc:43: Warning: HarfBuzz: unknown annotation: xconstructor
../src/hb-shape-plan.cc:173: Warning: HarfBuzz: unknown annotation: xconstructor
../src/hb-shape-plan.cc:201: Warning: HarfBuzz: unknown annotation: xconstructor
../src/hb-unicode.cc:172: Warning: HarfBuzz: unknown annotation: xconstructor
g-ir-scanner: link: gcc -pthread -o /root/project/build/tmp-introspecta9rymai3/HarfBuzz-0.0 /root/project/build/tmp-introspecta9rymai3/HarfBuzz-0.0.o -L. -Wl,-rpath,. -Wl,--no-as-needed -L/root/project/build/src -Wl,-rpath,/root/project/build/src -L/root/project/build/src -Wl,-rpath,/root/project/build/src -L/root/project/build/src -Wl,-rpath,/root/project/build/src -lharfbuzz-gobject -lharfbuzz -lglib-2.0 -lgobject-2.0 -lm -lfreetype -lgirepository-1.0 -lgio-2.0 -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lglib-2.0
ldd: error: you do not have read permission for `/root/project/build/tmp-introspecta9rymai3/HarfBuzz-0.0'
Traceback (most recent call last):
File "/usr/bin/g-ir-scanner", line 99, in <module>
sys.exit(scanner_main(sys.argv))
File "/usr/lib64/gobject-introspection/giscanner/scannermain.py", line 599, in scanner_main
shlibs = create_binary(transformer, options, args)
File "/usr/lib64/gobject-introspection/giscanner/scannermain.py", line 428, in create_binary
shlibs = resolve_shlibs(options, binary, options.libraries)
File "/usr/lib64/gobject-introspection/giscanner/shlibs.py", line 170, in resolve_shlibs
_resolve_non_libtool(options, binary, non_libtool))
File "/usr/lib64/gobject-introspection/giscanner/shlibs.py", line 106, in _resolve_non_libtool
output = subprocess.check_output(args)
File "/usr/lib64/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib64/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ldd', '/root/project/build/tmp-introspecta9rymai3/HarfBuzz-0.0']' returned non-zero exit status 1.
ninja: build stopped: subcommand failed.
2021-05-01 23:50:39 +02:00
|
|
|
- image: fedora:33
|
2017-11-01 22:10:55 +01:00
|
|
|
steps:
|
|
|
|
- checkout
|
2020-11-21 15:07:57 +01:00
|
|
|
- run: dnf install -y pkg-config ragel valgrind gcc gcc-c++ meson git glib2-devel freetype-devel cairo-devel libicu-devel gobject-introspection-devel graphite2-devel redhat-rpm-config python python-pip || true
|
2020-07-08 12:40:25 +02:00
|
|
|
- run: meson build --buildtype=debugoptimized
|
|
|
|
- run: ninja -Cbuild -j9
|
2020-07-12 20:41:45 +02:00
|
|
|
# TOOD: increase timeouts and remove --no-suite=slow
|
2020-10-13 20:21:28 +02:00
|
|
|
- run: RUN_VALGRIND=1 meson test -Cbuild --no-suite=slow --wrap='valgrind --leak-check=full --error-exitcode=1' --print-errorlogs
|
2017-11-02 17:33:12 +01:00
|
|
|
|
2020-07-08 12:40:25 +02:00
|
|
|
alpine:
|
2017-11-02 17:33:12 +01:00
|
|
|
docker:
|
2020-07-08 12:40:25 +02:00
|
|
|
- image: alpine
|
2017-11-02 17:33:12 +01:00
|
|
|
steps:
|
|
|
|
- checkout
|
2020-11-21 15:07:57 +01:00
|
|
|
- run: apk update && apk add ragel gcc g++ glib-dev freetype-dev cairo-dev git py3-pip ninja
|
2020-08-12 21:43:06 +02:00
|
|
|
- run: pip3 install meson==0.47.0
|
2020-07-08 12:40:25 +02:00
|
|
|
- run: meson build --buildtype=minsize
|
|
|
|
- run: ninja -Cbuild -j9
|
|
|
|
- run: meson test -Cbuild --print-errorlogs
|
2017-11-01 22:10:55 +01:00
|
|
|
|
2020-07-08 12:40:25 +02:00
|
|
|
archlinux:
|
2018-02-24 14:12:12 +01:00
|
|
|
docker:
|
2020-07-08 12:40:25 +02:00
|
|
|
- image: archlinux/base
|
2018-02-24 14:12:12 +01:00
|
|
|
steps:
|
|
|
|
- checkout
|
2020-11-21 15:07:57 +01:00
|
|
|
- run: pacman --noconfirm -Syu freetype2 meson git clang cairo icu gettext gobject-introspection gcc gcc-libs glib2 graphite pkg-config ragel python python-pip base-devel gtk-doc
|
2021-07-27 23:40:15 +02:00
|
|
|
- run: pip install flake8 fonttools
|
2020-07-08 12:40:25 +02:00
|
|
|
- run: flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
|
2020-08-10 12:00:34 +02:00
|
|
|
- run: meson build -Dgraphite=enabled -Dauto_features=enabled -Dexperimental_api=true
|
2020-07-08 12:40:25 +02:00
|
|
|
- run: meson compile -Cbuild -j9
|
|
|
|
- run: meson test -Cbuild --print-errorlogs
|
|
|
|
- run: meson dist -Cbuild
|
Minor, fix warnings raised when built with -std=c++2a
Follow up to c184180,
It was raising,
src/hb-ot-layout-common.hh:1067:63: warning: implicit capture of 'this' with a capture default of '=' is deprecated [-Wdeprecated-this-capture]
| hb_filter ([=] (const OffsetTo<TSubTable> &_) { return (this+_).intersects (glyphset, lookup_type); })
^
src/hb-ot-layout-common.hh:1067:19: note: add an explicit capture of 'this' to capture '*this' by reference
| hb_filter ([=] (const OffsetTo<TSubTable> &_) { return (this+_).intersects (glyphset, lookup_type); })
^
, this
and
src/hb-ot-layout-common.hh:2626:38: warning: implicit capture of 'this' with a capture default of '=' is deprecated [-Wdeprecated-this-capture]
{ r.collect_lookups (this, lookup_indexes); })
^
src/hb-ot-layout-common.hh:2625:18: note: add an explicit capture of 'this' to capture '*this' by reference
| hb_apply ([=] (const FeatureTableSubstitutionRecord& r)
^
, this
and
src/hb-ot-hdmx-table.hh:141:44: error: implicit capture of 'this' with a capture default of '=' is deprecated [-Werror,-Wdeprecated-this-capture]
return device_record->widthsZ.as_array (get_num_glyphs ()) [_];
^
src/hb-ot-hdmx-table.hh:137:17: note: add an explicit capture of 'this' to capture '*this' by reference
| hb_map ([=] (hb_codepoint_t _)
^
, this
2020-02-06 09:42:41 +01:00
|
|
|
- run: clang -c src/harfbuzz.cc -DHB_NO_MT
|
2020-07-08 12:40:25 +02:00
|
|
|
- run: clang -c src/hb-*.cc -DHB_NO_MT -DHB_TINY -DHB_NO_OT_FONT
|
2018-10-19 07:54:21 +02:00
|
|
|
|
2020-07-08 12:40:25 +02:00
|
|
|
sanitizers:
|
2018-09-25 07:54:35 +02:00
|
|
|
docker:
|
2020-07-08 12:40:25 +02:00
|
|
|
- image: ubuntu:20.04
|
2018-09-25 07:54:35 +02:00
|
|
|
steps:
|
|
|
|
- checkout
|
2021-03-15 23:47:27 +01:00
|
|
|
- run: apt update || true
|
2020-07-08 12:40:25 +02:00
|
|
|
- run: DEBIAN_FRONTEND=noninteractive apt install -y clang lld git binutils meson pkg-config ragel libfreetype6-dev libglib2.0-dev libcairo2-dev libicu-dev libgraphite2-dev
|
|
|
|
# asan+ubsan
|
2020-08-10 12:00:34 +02:00
|
|
|
- run: rm -rf build && meson build --default-library=static -Db_sanitize=address,undefined --buildtype=debugoptimized --wrap-mode=nodownload -Dexperimental_api=true
|
2020-07-12 20:41:45 +02:00
|
|
|
- run: ninja -Cbuild -j8 && meson test -Cbuild --print-errorlogs | asan_symbolize | c++filt
|
2020-07-08 12:40:25 +02:00
|
|
|
# tsan
|
2020-08-10 12:00:34 +02:00
|
|
|
- run: rm -rf build && meson build --default-library=static -Db_sanitize=thread --buildtype=debugoptimized --wrap-mode=nodownload -Dexperimental_api=true
|
2020-07-12 20:41:45 +02:00
|
|
|
- run: ninja -Cbuild -j8 && meson test -Cbuild --print-errorlogs | asan_symbolize | c++filt
|
2020-07-08 12:40:25 +02:00
|
|
|
# msan, needs --force-fallback-for=glib,freetype2 also which doesn't work yet but runs fuzzer cases at least
|
2020-08-10 12:00:34 +02:00
|
|
|
- run: rm -rf build && meson build --default-library=static -Db_sanitize=memory --buildtype=debugoptimized --wrap-mode=nodownload -Dauto_features=disabled -Dtests=enabled -Dexperimental_api=true
|
2020-07-12 20:41:45 +02:00
|
|
|
- run: ninja -Cbuild -j8 && meson test -Cbuild --print-errorlogs | asan_symbolize | c++filt
|
2021-03-15 23:52:39 +01:00
|
|
|
- run: clang -c src/harfbuzz.cc src/hb-subset*.cc -DHB_NO_MT -Werror -std=c++2a
|
2017-11-01 11:05:46 +01:00
|
|
|
|
2020-07-25 11:15:34 +02:00
|
|
|
crossbuild-win32:
|
2020-09-11 13:14:20 +02:00
|
|
|
executor: win32-executor
|
2017-10-31 20:42:08 +01:00
|
|
|
steps:
|
|
|
|
- checkout
|
2021-08-15 18:27:32 +02:00
|
|
|
- run: sudo apt update && DEBIAN_FRONTEND=noninteractive sudo apt install -y ninja-build gtk-doc-tools python3 python3-pip git g++-mingw-w64-i686 zip
|
2020-11-06 19:02:21 +01:00
|
|
|
- run: pip3 install meson==0.56.0 --upgrade
|
2020-06-01 10:28:31 +02:00
|
|
|
- run: .ci/build-win32.sh
|
|
|
|
- store_artifacts:
|
|
|
|
path: harfbuzz-win32.zip
|
2020-09-11 09:47:08 +02:00
|
|
|
- persist_to_workspace:
|
|
|
|
root: .
|
|
|
|
paths: harfbuzz-win32.zip
|
|
|
|
|
|
|
|
publish-win32:
|
|
|
|
executor: win32-executor
|
|
|
|
steps:
|
2020-09-11 16:23:00 +02:00
|
|
|
- checkout
|
2020-09-11 09:47:08 +02:00
|
|
|
- attach_workspace:
|
|
|
|
at: .
|
2020-09-11 13:54:02 +02:00
|
|
|
- run: |
|
2020-09-11 16:23:00 +02:00
|
|
|
mv harfbuzz-win32{,-$CIRCLE_TAG}.zip
|
|
|
|
.ci/publish_release_artifact.sh harfbuzz-win32-$CIRCLE_TAG.zip
|
2018-01-10 21:21:56 +01:00
|
|
|
|
2021-08-15 17:24:51 +02:00
|
|
|
crossbuild-win64:
|
|
|
|
executor: win32-executor
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: sudo apt update && DEBIAN_FRONTEND=noninteractive sudo apt install -y ninja-build gtk-doc-tools python3 python3-pip git g++-mingw-w64-x86-64 zip
|
|
|
|
- run: pip3 install meson==0.56.0 --upgrade
|
|
|
|
- run: bash .ci/build-win64.sh
|
|
|
|
- store_artifacts:
|
|
|
|
path: harfbuzz-win64.zip
|
|
|
|
- persist_to_workspace:
|
|
|
|
root: .
|
|
|
|
paths: harfbuzz-win64.zip
|
|
|
|
|
|
|
|
publish-win64:
|
|
|
|
executor: win32-executor
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- attach_workspace:
|
|
|
|
at: .
|
|
|
|
- run: |
|
|
|
|
mv harfbuzz-win64{,-$CIRCLE_TAG}.zip
|
|
|
|
.ci/publish_release_artifact.sh harfbuzz-win64-$CIRCLE_TAG.zip
|
|
|
|
|
|
|
|
|
2017-10-31 20:42:08 +01:00
|
|
|
workflows:
|
|
|
|
version: 2
|
2020-09-11 09:47:08 +02:00
|
|
|
|
2017-10-31 20:42:08 +01:00
|
|
|
build:
|
|
|
|
jobs:
|
2021-07-12 22:24:14 +02:00
|
|
|
- macos-aat-fonts
|
2021-08-18 13:43:54 +02:00
|
|
|
- distcheck:
|
|
|
|
filters: # must have filter or won't work as a dependency
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
2020-09-11 15:46:34 +02:00
|
|
|
- publish-dist:
|
|
|
|
requires:
|
|
|
|
- distcheck
|
|
|
|
filters:
|
|
|
|
tags:
|
2020-09-11 21:15:10 +02:00
|
|
|
only: /^\d+\.\d+\.\d+$/
|
2020-09-11 15:46:34 +02:00
|
|
|
branches:
|
|
|
|
ignore: /.*/
|
2020-07-08 12:40:25 +02:00
|
|
|
- fedora-valgrind
|
|
|
|
- alpine
|
2021-02-10 21:49:27 +01:00
|
|
|
#- archlinux
|
2020-07-08 12:40:25 +02:00
|
|
|
- sanitizers
|
2021-08-18 13:43:54 +02:00
|
|
|
- crossbuild-win32:
|
|
|
|
filters: # must have filter or won't work as a dependency
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
|
|
|
- crossbuild-win64:
|
|
|
|
filters: # must have filter or won't work as a dependency
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
2020-09-11 09:47:08 +02:00
|
|
|
- publish-win32:
|
|
|
|
requires:
|
|
|
|
- crossbuild-win32
|
|
|
|
filters:
|
|
|
|
tags:
|
2020-09-11 21:15:10 +02:00
|
|
|
only: /^\d+\.\d+\.\d+$/
|
2020-09-11 09:47:08 +02:00
|
|
|
branches:
|
|
|
|
ignore: /.*/
|
2021-08-15 17:24:51 +02:00
|
|
|
- publish-win64:
|
|
|
|
requires:
|
|
|
|
- crossbuild-win64
|
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /^\d+\.\d+\.\d+$/
|
|
|
|
branches:
|
|
|
|
ignore: /.*/
|