2017-10-31 20:42:08 +01:00
|
|
|
version: 2
|
2017-11-01 08:15:27 +01:00
|
|
|
|
2017-10-31 20:42:08 +01:00
|
|
|
jobs:
|
|
|
|
|
2018-11-24 23:09:00 +01:00
|
|
|
macos-10.12.6-aat-fonts:
|
2018-03-23 15:07:01 +01:00
|
|
|
macos:
|
2019-10-24 19:35:38 +02:00
|
|
|
xcode: "9.0.1"
|
2018-03-23 15:07:01 +01:00
|
|
|
steps:
|
|
|
|
- checkout
|
2020-07-06 15:59:23 +02:00
|
|
|
- run: HOMEBREW_NO_AUTO_UPDATE=1 brew install pkg-config ragel freetype glib cairo python3 ninja
|
|
|
|
- run: pip3 install meson --upgrade
|
2020-07-06 14:01:32 +02:00
|
|
|
- run: meson build
|
|
|
|
- run: meson compile -Cbuild # or ninja -Cbuild
|
|
|
|
- run: meson test -Cbuild --print-errorlogs
|
2018-03-23 15:07:01 +01:00
|
|
|
|
2018-11-24 23:09:00 +01:00
|
|
|
macos-10.13.6-aat-fonts:
|
|
|
|
macos:
|
|
|
|
xcode: "10.1.0"
|
|
|
|
steps:
|
|
|
|
- checkout
|
2020-07-06 15:59:23 +02:00
|
|
|
- run: HOMEBREW_NO_AUTO_UPDATE=1 brew install pkg-config ragel freetype glib cairo python3 ninja
|
|
|
|
- run: pip3 install meson --upgrade
|
2020-07-06 14:01:32 +02:00
|
|
|
- run: meson build
|
|
|
|
- run: meson compile -Cbuild
|
|
|
|
- run: meson test -Cbuild --print-errorlogs
|
2018-11-24 23:09:00 +01:00
|
|
|
|
2019-09-14 08:05:08 +02:00
|
|
|
macos-10.14.4-aat-fonts:
|
2019-03-07 23:03:41 +01:00
|
|
|
macos:
|
2019-12-10 13:58:04 +01:00
|
|
|
xcode: "11.1.0"
|
|
|
|
steps:
|
|
|
|
- checkout
|
2020-07-06 15:59:23 +02:00
|
|
|
- run: HOMEBREW_NO_AUTO_UPDATE=1 brew install pkg-config ragel freetype glib cairo python3 icu4c graphite2 ninja
|
|
|
|
- run: pip3 install meson --upgrade
|
2020-07-06 15:58:31 +02:00
|
|
|
- run: PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig" meson build -Dcoretext=enabled
|
2020-07-06 14:01:32 +02:00
|
|
|
- run: meson compile -Cbuild
|
|
|
|
- run: meson test -Cbuild --print-errorlogs
|
2019-12-10 13:58:04 +01:00
|
|
|
|
2020-04-02 22:42:16 +02:00
|
|
|
macos-10.15.3-aat-fonts:
|
2019-12-10 13:58:04 +01:00
|
|
|
macos:
|
2020-04-02 22:42:16 +02:00
|
|
|
xcode: "11.4.0"
|
2019-03-07 23:03:41 +01:00
|
|
|
steps:
|
|
|
|
- checkout
|
2020-07-06 15:59:23 +02:00
|
|
|
- run: HOMEBREW_NO_AUTO_UPDATE=1 brew install pkg-config ragel freetype glib cairo python3 icu4c graphite2 gobject-introspection gtk-doc ninja
|
|
|
|
- run: pip3 install meson --upgrade
|
2020-07-06 15:58:31 +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
|
2020-07-06 14:01:32 +02:00
|
|
|
- run: meson compile -Cbuild
|
|
|
|
- run: meson test -Cbuild --print-errorlogs
|
2019-03-07 23:03:41 +01:00
|
|
|
|
2020-07-08 12:40:25 +02:00
|
|
|
# will be dropped with autotools removal
|
2018-01-10 21:21:56 +01:00
|
|
|
distcheck:
|
2017-11-21 07:07:26 +01:00
|
|
|
docker:
|
2020-07-08 12:40:25 +02:00
|
|
|
- image: ubuntu:20.04
|
2017-11-21 07:07:26 +01:00
|
|
|
steps:
|
|
|
|
- checkout
|
2020-07-08 12:40:25 +02:00
|
|
|
- run: apt update && DEBIAN_FRONTEND=noninteractive apt install -y git ninja-build binutils libtool autoconf automake make gcc g++ pkg-config ragel gtk-doc-tools libfontconfig1-dev libfreetype6-dev libglib2.0-dev libcairo2-dev libicu-dev libgraphite2-dev python3 python3-pip cmake
|
2020-05-21 15:11:45 +02:00
|
|
|
- run: pip3 install fonttools meson --upgrade
|
2018-02-15 10:25:24 +01:00
|
|
|
- run: ./autogen.sh
|
2018-09-29 22:45:25 +02:00
|
|
|
- run: make -j32
|
2018-02-15 10:25:24 +01:00
|
|
|
- run: make distcheck || .ci/fail.sh
|
2020-03-12 18:35:01 +01:00
|
|
|
- run: rm harfbuzz-* && make distdir
|
|
|
|
- run: cd harfbuzz-* && meson build && ninja -Cbuild test
|
|
|
|
- run: cd harfbuzz-* && cmake -Bcmakebuild -H. && cmake --build cmakebuild
|
2017-11-21 07:07:26 +01:00
|
|
|
|
2020-07-08 12:40:25 +02:00
|
|
|
fedora-valgrind:
|
2017-11-01 22:10:55 +01:00
|
|
|
docker:
|
2020-07-08 12:40:25 +02:00
|
|
|
- image: fedora
|
2017-11-01 22:10:55 +01:00
|
|
|
steps:
|
|
|
|
- checkout
|
2020-07-08 12:40:25 +02: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
|
|
|
|
- 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
|
|
|
|
- run: RUN_VALGRIND=1 HB_TEST_SHAPE_FUZZER_TIMEOUT=5 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-07-08 12:40:25 +02:00
|
|
|
- run: apk update && apk add ragel meson gcc g++ glib-dev freetype-dev cairo-dev git
|
|
|
|
- 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-07-08 12:40:25 +02: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
|
|
|
|
- run: pip install flake8 fonttools
|
2020-07-25 11:15:34 +02:00
|
|
|
- run: pip install git+https://github.com/mesonbuild/meson
|
2020-07-08 12:40:25 +02:00
|
|
|
- run: flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
|
|
|
|
- run: meson build -Dgraphite=enabled -Dauto_features=enabled
|
|
|
|
- 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
|
2020-07-08 12:40:25 +02:00
|
|
|
- run: apt update || true; DEBIAN_FRONTEND=noninteractive apt install -y wget gnupg
|
2020-07-20 21:27:27 +02:00
|
|
|
#- run: wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
|
|
|
|
#- run: echo "deb http://apt.llvm.org/focal/ llvm-toolchain-focal main" > /etc/apt/sources.list.d/llvmdev.list
|
|
|
|
#- run: echo "deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal main" > /etc/apt/sources.list.d/llvmdevsrc.list
|
|
|
|
#- 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
|
|
|
|
- run: rm -rf build && meson build --default-library=static -Db_sanitize=address,undefined --buildtype=debugoptimized --wrap-mode=nodownload
|
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
|
|
|
|
- run: rm -rf build && meson build --default-library=static -Db_sanitize=thread --buildtype=debugoptimized --wrap-mode=nodownload
|
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
|
|
|
|
- run: rm -rf build && meson build --default-library=static -Db_sanitize=memory --buildtype=debugoptimized --wrap-mode=nodownload -Dauto_features=disabled -Dtests=enabled
|
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
|
|
|
# test -std=c++2a and -Weverything of nightly clang builds
|
2020-07-09 08:27:51 +02:00
|
|
|
- run: clang -c src/harfbuzz.cc src/hb-subset*.cc -DHB_NO_MT -Werror -std=c++2a
|
2020-07-08 16:59:47 +02:00
|
|
|
- run: clang -c src/hb-*.cc -DHB_NO_MT -Werror -Weverything -Wno-old-style-cast -Wno-documentation -Wno-documentation-unknown-command -Wno-c++98-compat -Wno-cast-qual -Wno-c++98-compat-pedantic -Wno-sign-conversion -Wno-padded -Wno-shorten-64-to-32 -Wno-reserved-id-macro -Wno-float-conversion -Wno-format-pedantic -Wno-shadow -Wno-conversion -Wno-zero-as-null-pointer-constant -Wno-missing-field-initializers -Wno-used-but-marked-unused -Wno-unused-macros -Wno-comma -Wno-float-equal -Wno-disabled-macro-expansion -Wno-weak-vtables -Wno-unused-parameter -Wno-covered-switch-default -Wno-unreachable-code -Wno-unused-template -DHB_WITH_WIN1256
|
2017-11-01 11:05:46 +01:00
|
|
|
|
2020-07-25 11:15:34 +02:00
|
|
|
crossbuild-win32:
|
2017-10-31 20:42:08 +01:00
|
|
|
docker:
|
2020-07-08 12:40:25 +02:00
|
|
|
- image: ubuntu:20.04
|
2017-10-31 20:42:08 +01:00
|
|
|
steps:
|
|
|
|
- checkout
|
2020-07-08 12:40:25 +02:00
|
|
|
- run: apt update && DEBIAN_FRONTEND=noninteractive apt install -y ninja-build binutils meson gcc g++ pkg-config ragel gtk-doc-tools libfreetype6-dev libglib2.0-dev libcairo2-dev libicu-dev libgraphite2-dev python3 python3-pip git g++-mingw-w64-i686 zip
|
2020-06-01 10:28:31 +02:00
|
|
|
- run: .ci/build-win32.sh
|
|
|
|
- store_artifacts:
|
|
|
|
path: harfbuzz-win32.zip
|
2018-01-10 21:21:56 +01:00
|
|
|
|
2017-10-31 20:42:08 +01:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build:
|
|
|
|
jobs:
|
2018-11-24 23:09:00 +01:00
|
|
|
- macos-10.12.6-aat-fonts
|
|
|
|
- macos-10.13.6-aat-fonts
|
2019-09-14 08:05:08 +02:00
|
|
|
- macos-10.14.4-aat-fonts
|
2020-04-02 22:42:16 +02:00
|
|
|
- macos-10.15.3-aat-fonts
|
2020-07-08 12:40:25 +02:00
|
|
|
- distcheck # will be dropped with autotools removal
|
|
|
|
- fedora-valgrind
|
|
|
|
- alpine
|
|
|
|
- archlinux
|
|
|
|
- sanitizers
|
2020-07-25 11:15:34 +02:00
|
|
|
- crossbuild-win32
|