2017-10-31 19:42:08 +00:00
|
|
|
version: 2
|
2017-11-01 07:15:27 +00:00
|
|
|
|
2017-10-31 19:42:08 +00:00
|
|
|
jobs:
|
|
|
|
|
2018-11-24 22:09:00 +00:00
|
|
|
macos-10.12.6-aat-fonts:
|
2018-03-23 14:07:01 +00:00
|
|
|
macos:
|
2019-10-24 17:35:38 +00:00
|
|
|
xcode: "9.0.1"
|
2018-03-23 14:07:01 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
2020-07-06 12:01:32 +00:00
|
|
|
- run: HOMEBREW_NO_AUTO_UPDATE=1 brew install meson pkg-config ragel freetype glib cairo python3
|
|
|
|
- run: meson build
|
|
|
|
- run: meson compile -Cbuild # or ninja -Cbuild
|
|
|
|
- run: meson test -Cbuild --print-errorlogs
|
2018-03-23 14:07:01 +00:00
|
|
|
|
2018-11-24 22:09:00 +00:00
|
|
|
macos-10.13.6-aat-fonts:
|
|
|
|
macos:
|
|
|
|
xcode: "10.1.0"
|
|
|
|
steps:
|
|
|
|
- checkout
|
2020-07-06 12:01:32 +00:00
|
|
|
- run: HOMEBREW_NO_AUTO_UPDATE=1 brew install meson pkg-config ragel freetype glib cairo python3
|
|
|
|
- run: meson build
|
|
|
|
- run: meson compile -Cbuild
|
|
|
|
- run: meson test -Cbuild --print-errorlogs
|
2018-11-24 22:09:00 +00:00
|
|
|
|
2019-09-14 06:05:08 +00:00
|
|
|
macos-10.14.4-aat-fonts:
|
2019-03-07 22:03:41 +00:00
|
|
|
macos:
|
2019-12-10 12:58:04 +00:00
|
|
|
xcode: "11.1.0"
|
|
|
|
steps:
|
|
|
|
- checkout
|
2020-07-06 12:01:32 +00:00
|
|
|
- run: HOMEBREW_NO_AUTO_UPDATE=1 brew install meson pkg-config ragel freetype glib cairo python3 icu4c graphite2
|
|
|
|
- run: PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig" CPPFLAGS="-I/usr/local/opt/icu4c/include" meson build -Dcoretext=enabled
|
|
|
|
- run: meson compile -Cbuild
|
|
|
|
- run: meson test -Cbuild --print-errorlogs
|
2019-12-10 12:58:04 +00:00
|
|
|
|
2020-04-02 20:42:16 +00:00
|
|
|
macos-10.15.3-aat-fonts:
|
2019-12-10 12:58:04 +00:00
|
|
|
macos:
|
2020-04-02 20:42:16 +00:00
|
|
|
xcode: "11.4.0"
|
2019-03-07 22:03:41 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
2020-07-06 12:01:32 +00:00
|
|
|
- run: HOMEBREW_NO_AUTO_UPDATE=1 brew install meson pkg-config ragel freetype glib cairo python3 icu4c graphite2 gobject-introspection gtk-doc
|
|
|
|
- run: PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig" CPPFLAGS="-I/usr/local/opt/icu4c/include" meson build -Dcoretext=enabled -Dgraphite=enabled -Dauto_features=enabled
|
|
|
|
- run: meson compile -Cbuild
|
|
|
|
- run: meson test -Cbuild --print-errorlogs
|
2019-03-07 22:03:41 +00:00
|
|
|
|
2018-01-10 20:21:56 +00:00
|
|
|
distcheck:
|
2017-11-21 06:07:26 +00:00
|
|
|
docker:
|
2020-02-19 11:45:18 +00:00
|
|
|
- image: ubuntu:19.10
|
2017-11-21 06:07:26 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
2020-05-21 13:11:45 +00:00
|
|
|
- run: apt update && 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
|
|
|
|
- run: pip3 install fonttools meson --upgrade
|
2018-02-15 09:25:24 +00:00
|
|
|
- run: ./autogen.sh
|
2018-09-29 20:45:25 +00:00
|
|
|
- run: make -j32
|
2018-02-15 09:25:24 +00:00
|
|
|
- run: make distcheck || .ci/fail.sh
|
2020-03-12 17:35:01 +00: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 06:07:26 +00:00
|
|
|
|
2019-06-10 11:26:36 +00:00
|
|
|
alpine-O3-Os-NOMMAP:
|
2017-11-01 21:10:55 +00:00
|
|
|
docker:
|
2018-01-10 20:21:56 +00:00
|
|
|
- image: alpine
|
2017-11-01 21:10:55 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
2020-05-30 10:15:22 +00:00
|
|
|
- run: apk update && apk add ragel make pkgconfig libtool autoconf automake gettext gcc g++ glib-dev freetype-dev cairo-dev python3
|
2018-02-20 07:23:10 +00:00
|
|
|
# C??FLAGS are not needed for a regular build
|
2018-06-30 21:24:14 +00:00
|
|
|
- run: CFLAGS="-O3" CXXFLAGS="-O3 -DHB_NO_MMAP" ./autogen.sh
|
2018-09-29 20:45:25 +00:00
|
|
|
- run: make -j32
|
2018-02-15 09:25:24 +00:00
|
|
|
- run: make check || .ci/fail.sh
|
2019-06-10 11:26:36 +00:00
|
|
|
- run: make clean
|
2019-06-10 15:16:51 +00:00
|
|
|
- run: CFLAGS="-Os -DHB_OPTIMIZE_SIZE" CXXFLAGS="-Os -DHB_NO_MMAP -DHB_OPTIMIZE_SIZE" ./autogen.sh
|
2019-06-10 11:26:36 +00:00
|
|
|
- run: make -j32
|
|
|
|
- run: make check || .ci/fail.sh
|
2017-11-02 16:33:12 +00:00
|
|
|
|
2019-01-04 19:40:39 +00:00
|
|
|
archlinux-py3-all:
|
2017-11-02 16:33:12 +00:00
|
|
|
docker:
|
2019-02-09 13:03:28 +00:00
|
|
|
- image: archlinux/base
|
2017-11-02 16:33:12 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
2019-02-09 21:38:05 +00:00
|
|
|
- run: pacman --noconfirm -Syu freetype2 cairo icu gettext gobject-introspection gcc gcc-libs glib2 graphite pkg-config ragel python python-pip make which base-devel
|
2018-12-31 03:30:43 +00:00
|
|
|
- run: pip install flake8 fonttools
|
|
|
|
- run: flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
|
2018-02-20 07:23:10 +00:00
|
|
|
# C??FLAGS are not needed for a regular build
|
2019-01-18 00:12:07 +00:00
|
|
|
- run: ./autogen.sh --with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2
|
2019-01-04 19:40:39 +00:00
|
|
|
- run: make -j32 CPPFLAGS="-Werror"
|
|
|
|
- run: make check CPPFLAGS="-Werror" || .ci/fail.sh
|
2017-11-01 21:10:55 +00:00
|
|
|
|
2019-06-18 07:44:10 +00:00
|
|
|
clang-O3-O0-and-nobuildsystem:
|
2018-02-24 13:12:12 +00:00
|
|
|
docker:
|
2020-02-19 09:49:38 +00:00
|
|
|
- image: ubuntu:19.10
|
2018-02-24 13:12:12 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
2018-06-27 13:44:52 +00:00
|
|
|
- run: apt update || true
|
2019-03-29 21:14:55 +00:00
|
|
|
- run: apt install -y clang wget autoconf automake libtool pkg-config ragel libfreetype6-dev libfontconfig1-dev libglib2.0-dev libcairo2-dev libicu-dev libgraphite2-dev python python-pip
|
2018-02-24 13:12:12 +00:00
|
|
|
- run: pip install fonttools
|
2018-10-01 06:10:29 +00:00
|
|
|
- run: CFLAGS="-O3" CXXFLAGS="-O3" CC=clang CXX=clang++ ./autogen.sh --with-freetype --with-fontconfig --with-glib --with-cairo --with-icu --with-graphite2
|
2018-09-29 20:45:25 +00:00
|
|
|
- run: make -j32
|
2020-02-19 09:49:38 +00:00
|
|
|
- run: make check || .ci/fail.sh
|
|
|
|
- run: make clean
|
2018-10-01 06:10:29 +00:00
|
|
|
- run: CFLAGS="-O0" CXXFLAGS="-O0" CC=clang CXX=clang++ ./autogen.sh --with-freetype --with-fontconfig --with-glib --with-cairo --with-icu --with-graphite2
|
2018-09-29 20:45:25 +00:00
|
|
|
- run: make -j32
|
2020-06-11 21:16:23 +00:00
|
|
|
- run: HB_TEST_SUBSET_FUZZER_TIMEOUT=30 make check || .ci/fail.sh
|
2019-10-23 08:48:21 +00:00
|
|
|
- run: make clean
|
2019-10-29 19:25:34 +00:00
|
|
|
- run: make -Csrc CPPFLAGS="-DHB_TINY -DHB_NO_OT_FONT" libharfbuzz-subset.la && make clean
|
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 08:42:41 +00:00
|
|
|
- run: clang -c src/harfbuzz.cc -DHB_NO_MT
|
|
|
|
# -Werror -Werror=deprecated-this-capture can be added but it will confuse contributors so let's skip for now
|
|
|
|
- run: clang -c src/hb-*.cc -DHB_NO_MT -std=c++2a -fno-exceptions
|
2018-02-24 13:12:12 +00:00
|
|
|
|
2018-10-19 05:54:21 +00:00
|
|
|
gcc-valgrind:
|
|
|
|
docker:
|
2020-02-19 09:49:38 +00:00
|
|
|
- image: ubuntu:19.10
|
2018-10-19 05:54:21 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: apt update || true
|
|
|
|
- run: apt install -y gcc binutils libtool autoconf automake make pkg-config gtk-doc-tools ragel libfreetype6-dev libfontconfig1-dev libglib2.0-dev libcairo2-dev libicu-dev libgraphite2-dev python python-pip valgrind
|
|
|
|
- run: pip install fonttools
|
|
|
|
- run: ./autogen.sh --with-freetype --with-glib --with-cairo --with-icu --with-graphite2 --with-fontconfig
|
|
|
|
- run: make -j32
|
2018-10-19 15:16:41 +00:00
|
|
|
# run-shape-fuzzer-tests.py automatically runs valgrind if see available
|
|
|
|
# but test/api runs it by request, we probably should normalize the approaches
|
2020-06-12 13:03:11 +00:00
|
|
|
- run: HB_TEST_SHAPE_FUZZER_TIMEOUT=3 HB_TEST_SUBSET_FUZZER_TIMEOUT=50 RUN_VALGRIND=1 make check && make -Ctest/api check-valgrind || .ci/fail.sh
|
2018-10-19 15:16:41 +00:00
|
|
|
# informational for now
|
|
|
|
- run: make -Ctest/api check-symbols || true
|
2018-10-19 05:54:21 +00:00
|
|
|
|
2018-09-25 05:54:35 +00:00
|
|
|
clang-everything:
|
|
|
|
docker:
|
2020-02-19 09:49:38 +00:00
|
|
|
- image: ubuntu:19.10
|
2018-09-25 05:54:35 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: apt update || true; apt install -y wget gnupg
|
|
|
|
- run: wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
|
2020-02-19 09:49:38 +00:00
|
|
|
- run: echo "deb http://apt.llvm.org/eoan/ llvm-toolchain-eoan main" > /etc/apt/sources.list.d/llvmdev.list
|
|
|
|
- run: echo "deb-src http://apt.llvm.org/eoan/ llvm-toolchain-eoan main" > /etc/apt/sources.list.d/llvmdevsrc.list
|
2018-09-25 05:54:35 +00:00
|
|
|
- run: apt update || true
|
2018-10-02 18:09:19 +00:00
|
|
|
- run: apt install -y clang lld binutils libtool autoconf automake make pkg-config gtk-doc-tools ragel libfreetype6-dev libfontconfig1-dev libglib2.0-dev libcairo2-dev libicu-dev libgraphite2-dev python python-pip
|
2018-09-25 05:54:35 +00:00
|
|
|
- run: pip install fonttools
|
2019-09-21 11:54:41 +00:00
|
|
|
- run: CFLAGS="-Weverything -Wno-reserved-id-macro -Wno-conversion -Wno-padded -Wno-sign-conversion -Wno-cast-qual -Wno-documentation -Wno-documentation-unknown-command -DHB_WITH_WIN1256" CXXFLAGS="-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" CC=clang CXX=clang++ ./autogen.sh --with-freetype --with-glib --with-cairo --with-icu --with-graphite2 --with-fontconfig
|
2018-10-01 20:46:08 +00:00
|
|
|
- run: make -j32 CPPFLAGS="-Werror"
|
2020-06-11 21:16:23 +00:00
|
|
|
- run: HB_TEST_SUBSET_FUZZER_TIMEOUT=30 make check CPPFLAGS="-Werror" || .ci/fail.sh
|
2018-09-25 05:54:35 +00:00
|
|
|
|
2018-09-22 10:52:17 +00:00
|
|
|
clang-asan:
|
|
|
|
docker:
|
2020-02-19 09:49:38 +00:00
|
|
|
- image: ubuntu:19.10
|
2018-09-22 10:52:17 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
2018-09-24 21:30:32 +00:00
|
|
|
- run: apt update || true; apt install -y wget gnupg
|
|
|
|
- run: wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
|
2020-02-19 09:49:38 +00:00
|
|
|
- run: echo "deb http://apt.llvm.org/eoan/ llvm-toolchain-eoan main" > /etc/apt/sources.list.d/llvmdev.list
|
|
|
|
- run: echo "deb-src http://apt.llvm.org/eoan/ llvm-toolchain-eoan main" > /etc/apt/sources.list.d/llvmdevsrc.list
|
2018-09-22 10:52:17 +00:00
|
|
|
- run: apt update || true
|
2018-09-24 21:30:32 +00:00
|
|
|
- run: apt install -y clang lld binutils libtool autoconf automake make pkg-config gtk-doc-tools ragel libfreetype6-dev libglib2.0-dev libcairo2-dev libicu-dev libgraphite2-dev python python-pip
|
2018-09-22 10:52:17 +00:00
|
|
|
- run: pip install fonttools
|
2018-09-26 20:38:06 +00:00
|
|
|
- run: CPPFLAGS="-fsanitize=address" LDFLAGS="-fsanitize=address -O1 -g -fno-omit-frame-pointer" CFLAGS="-fsanitize=address -O1 -g -fno-omit-frame-pointer" CXXFLAGS="-fsanitize=address -O1 -g -fno-omit-frame-pointer" LD=ld.lld CC=clang CXX=clang++ ./autogen.sh --with-freetype --with-glib --with-cairo --with-icu --with-graphite2
|
2018-09-29 20:45:25 +00:00
|
|
|
- run: make -j32
|
2020-06-12 13:03:11 +00:00
|
|
|
- run: HB_TEST_SUBSET_FUZZER_TIMEOUT=30 make check || .ci/fail.sh | asan_symbolize | c++filt
|
2018-09-22 10:52:17 +00:00
|
|
|
|
|
|
|
clang-msan:
|
|
|
|
docker:
|
2020-02-19 09:49:38 +00:00
|
|
|
- image: ubuntu:19.10
|
2018-09-22 10:52:17 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
2018-09-24 21:30:32 +00:00
|
|
|
- run: apt update || true; apt install -y wget gnupg
|
|
|
|
- run: wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
|
2020-02-19 09:49:38 +00:00
|
|
|
- run: echo "deb http://apt.llvm.org/eoan/ llvm-toolchain-eoan main" > /etc/apt/sources.list.d/llvmdev.list
|
|
|
|
- run: echo "deb-src http://apt.llvm.org/eoan/ llvm-toolchain-eoan main" > /etc/apt/sources.list.d/llvmdevsrc.list
|
2018-09-22 10:52:17 +00:00
|
|
|
- run: apt update || true
|
2018-10-01 20:46:08 +00:00
|
|
|
- run: apt install -y clang lld binutils libtool autoconf automake gtk-doc-tools gettext make pkg-config ragel libcairo2-dev libicu-dev libmount-dev libgraphite2-dev python python-pip
|
2018-09-22 10:52:17 +00:00
|
|
|
- run: pip install fonttools
|
2018-09-30 13:01:28 +00:00
|
|
|
- run: update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.lld" 10
|
2018-10-01 20:46:08 +00:00
|
|
|
- run: wget https://ftp.gnome.org/pub/gnome/sources/glib/2.58/glib-2.58.1.tar.xz && tar xf glib-2.58.1.tar.xz && cd glib-2.58.1 && ./autogen.sh --with-pcre CPPFLAGS="-fsanitize=memory" LDFLAGS="-fsanitize=memory" CFLAGS="-fsanitize=memory" CXXFLAGS="-fsanitize=memory" LD=ld.lld CC=clang CXX=clang++ && make -j32 && make install && cd ..
|
2018-09-30 14:14:15 +00:00
|
|
|
- run: wget http://download.savannah.gnu.org/releases/freetype/freetype-2.9.tar.bz2 && tar xf freetype-2.9.tar.bz2 && cd freetype-2.9 && ./autogen.sh && ./configure CPPFLAGS="-fsanitize=memory" LDFLAGS="-fsanitize=memory -O1 -g -fno-omit-frame-pointer" CFLAGS="-fsanitize=memory -O1 -g -fno-omit-frame-pointer" CXXFLAGS="-fsanitize=memory -O1 -g -fno-omit-frame-pointer" LD=ld.lld CC=clang CXX=clang++ && make -j32 && make install && cd ..
|
2018-10-06 19:12:56 +00:00
|
|
|
- run: CPPFLAGS="-fsanitize=memory -fsanitize-memory-track-origins" LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins -O1 -g -fno-omit-frame-pointer" CFLAGS="-fsanitize=memory -fsanitize-memory-track-origins -O1 -g -fno-omit-frame-pointer" CXXFLAGS="-fsanitize=memory -fsanitize-memory-track-origins -O1 -g -fno-omit-frame-pointer" LD=ld.lld CC=clang CXX=clang++ ./autogen.sh --with-freetype --with-glib --without-icu
|
2020-06-21 04:21:46 +00:00
|
|
|
- run: make -j32 && MSAN_OPTIONS=exitcode=42 HB_TEST_SUBSET_FUZZER_TIMEOUT=60 make check || .ci/fail.sh | asan_symbolize | c++filt
|
2018-09-22 10:52:17 +00:00
|
|
|
|
|
|
|
clang-tsan:
|
|
|
|
docker:
|
2020-02-19 09:49:38 +00:00
|
|
|
- image: ubuntu:19.10
|
2018-09-22 10:52:17 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
2018-09-24 21:30:32 +00:00
|
|
|
- run: apt update || true; apt install -y wget gnupg
|
|
|
|
- run: wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
|
2020-02-19 09:49:38 +00:00
|
|
|
- run: echo "deb http://apt.llvm.org/eoan/ llvm-toolchain-eoan main" > /etc/apt/sources.list.d/llvmdev.list
|
|
|
|
- run: echo "deb-src http://apt.llvm.org/eoan/ llvm-toolchain-eoan main" > /etc/apt/sources.list.d/llvmdevsrc.list
|
2018-09-22 10:52:17 +00:00
|
|
|
- run: apt update || true
|
2018-09-24 21:30:32 +00:00
|
|
|
- run: apt install -y clang lld binutils libtool autoconf automake make pkg-config ragel libfreetype6-dev libglib2.0-dev libcairo2-dev libicu-dev libgraphite2-dev python python-pip
|
2018-09-22 10:52:17 +00:00
|
|
|
- run: pip install fonttools
|
2019-12-15 19:51:10 +00:00
|
|
|
- run: CPPFLAGS="-fsanitize=thread" LDFLAGS="-fsanitize=thread -O3" CFLAGS="-fsanitize=thread -O3" CXXFLAGS="-fsanitize=thread -O3" LD=ld.lld CC=clang CXX=clang++ ./autogen.sh --with-freetype --with-glib --with-cairo --with-icu --with-graphite2
|
2018-09-29 20:45:25 +00:00
|
|
|
- run: make -j32
|
2020-06-20 21:24:57 +00:00
|
|
|
- run: HB_TEST_SUBSET_FUZZER_TIMEOUT=60 make check || .ci/fail.sh | asan_symbolize | c++filt
|
2018-09-22 10:52:17 +00:00
|
|
|
|
|
|
|
clang-ubsan:
|
|
|
|
docker:
|
2020-02-19 09:49:38 +00:00
|
|
|
- image: ubuntu:19.10
|
2018-09-22 10:52:17 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
2018-09-24 21:30:32 +00:00
|
|
|
- run: apt update || true; apt install -y wget gnupg
|
|
|
|
- run: wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
|
2020-02-19 09:49:38 +00:00
|
|
|
- run: echo "deb http://apt.llvm.org/eoan/ llvm-toolchain-eoan main" > /etc/apt/sources.list.d/llvmdev.list
|
|
|
|
- run: echo "deb-src http://apt.llvm.org/eoan/ llvm-toolchain-eoan main" > /etc/apt/sources.list.d/llvmdevsrc.list
|
2018-09-22 10:52:17 +00:00
|
|
|
- run: apt update || true
|
2018-09-24 21:30:32 +00:00
|
|
|
- run: apt install -y clang lld binutils libtool autoconf automake make pkg-config ragel libfreetype6-dev libglib2.0-dev libcairo2-dev libicu-dev libgraphite2-dev python python-pip
|
2018-09-22 10:52:17 +00:00
|
|
|
- run: pip install fonttools
|
2019-09-17 20:13:44 +00:00
|
|
|
- run: CPPFLAGS="-fsanitize=undefined -fno-sanitize-recover=undefined" LDFLAGS="-fsanitize=undefined -fno-sanitize-recover=undefined -O1 -g -fno-omit-frame-pointer" CFLAGS="-fsanitize=undefined -O1 -g -fno-omit-frame-pointer" CXXFLAGS="-fsanitize=undefined -O1 -g -fno-omit-frame-pointer" LD=ld.lld CC=clang CXX=clang++ ./autogen.sh --with-freetype --with-glib --with-cairo --with-icu --with-graphite2
|
2018-09-29 20:45:25 +00:00
|
|
|
- run: make -j32
|
2020-06-20 21:24:57 +00:00
|
|
|
- run: UBSAN_OPTIONS=print_stacktrace=1 HB_TEST_SUBSET_FUZZER_TIMEOUT=60 make check || .ci/fail.sh | asan_symbolize | c++filt
|
2018-09-22 10:52:17 +00:00
|
|
|
|
2020-06-01 08:28:31 +00:00
|
|
|
fedora-O0-debug-outoftreebuild:
|
2017-11-01 10:05:46 +00:00
|
|
|
docker:
|
2018-01-10 20:21:56 +00:00
|
|
|
- image: fedora
|
2017-11-01 10:05:46 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
2020-06-01 08:28:31 +00:00
|
|
|
- run: dnf install -y pkg-config ragel gcc gcc-c++ automake autoconf libtool make which diffutils glib2-devel freetype-devel cairo-devel libicu-devel gobject-introspection-devel graphite2-devel redhat-rpm-config python python-pip || true
|
2019-09-14 06:48:47 +00:00
|
|
|
- run: NOCONFIGURE=1 ./autogen.sh
|
2020-06-11 21:16:23 +00:00
|
|
|
- run: mkdir build && cd build && CFLAGS="-O0" CXXFLAGS="-O0" CPPFLAGS="-DHB_DEBUG" ../configure --with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2 && make -j32 && (HB_TEST_SUBSET_FUZZER_TIMEOUT=30 make check || ../.ci/fail.sh)
|
2017-11-01 10:05:46 +00:00
|
|
|
|
2020-06-01 08:28:31 +00:00
|
|
|
meson-gcc-mingw:
|
2017-10-31 19:42:08 +00:00
|
|
|
docker:
|
2020-02-19 11:45:18 +00:00
|
|
|
- image: ubuntu:19.10
|
2017-10-31 19:42:08 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
2020-06-01 08:28:31 +00:00
|
|
|
- run: apt update && 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
|
|
|
|
- run: pip3 install fonttools --upgrade
|
|
|
|
- run: pip3 install git+https://github.com/mesonbuild/meson # use C linker, remove when meson 0.55 is released
|
2020-06-04 05:02:20 +00:00
|
|
|
# a regular meson run
|
2020-06-28 19:49:38 +00:00
|
|
|
- run: meson build && ninja -j9 -Cbuild test
|
2020-06-03 23:40:11 +00:00
|
|
|
# test a meson based dist
|
2020-06-04 05:02:20 +00:00
|
|
|
- run: meson dist -Cbuild && rm -rf build
|
2020-04-20 20:43:13 +00:00
|
|
|
# test experimental APIs
|
2020-06-28 20:09:43 +00:00
|
|
|
- run: meson build -Dexperimental_api=true -Dexperimental_api=true -Doptimization=2 && ninja -j9 -Cbuild test # or meson test -Cbuild
|
2020-06-09 13:07:36 +00:00
|
|
|
# run benchmarks
|
|
|
|
- run: build/perf/perf && meson test -Cbuild --benchmark && rm -rf build # or ninja -Cbuild benchmark
|
2020-06-01 08:28:31 +00:00
|
|
|
# mingw
|
|
|
|
- run: .ci/build-win32.sh
|
|
|
|
- store_artifacts:
|
|
|
|
path: harfbuzz-win32.zip
|
2018-01-10 20:21:56 +00:00
|
|
|
|
2017-10-31 19:42:08 +00:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build:
|
|
|
|
jobs:
|
2018-03-23 14:07:01 +00:00
|
|
|
# macOS
|
2018-11-24 22:09:00 +00:00
|
|
|
- macos-10.12.6-aat-fonts
|
|
|
|
- macos-10.13.6-aat-fonts
|
2019-09-14 06:05:08 +00:00
|
|
|
- macos-10.14.4-aat-fonts
|
2020-04-02 20:42:16 +00:00
|
|
|
- macos-10.15.3-aat-fonts
|
2018-03-23 14:07:01 +00:00
|
|
|
|
2018-01-04 06:41:34 +00:00
|
|
|
- distcheck
|
2018-01-10 20:21:56 +00:00
|
|
|
|
|
|
|
# autotools based builds
|
2019-06-10 11:26:36 +00:00
|
|
|
- alpine-O3-Os-NOMMAP
|
2019-01-04 19:40:39 +00:00
|
|
|
- archlinux-py3-all
|
2018-10-19 05:54:21 +00:00
|
|
|
- gcc-valgrind
|
2019-06-18 07:44:10 +00:00
|
|
|
- clang-O3-O0-and-nobuildsystem
|
2020-05-21 02:39:03 +00:00
|
|
|
- clang-everything
|
|
|
|
- clang-asan
|
|
|
|
- clang-msan
|
|
|
|
- clang-tsan
|
|
|
|
- clang-ubsan
|
2020-06-01 08:28:31 +00:00
|
|
|
- fedora-O0-debug-outoftreebuild
|
2018-01-10 20:21:56 +00:00
|
|
|
|
2020-06-01 08:28:31 +00:00
|
|
|
- meson-gcc-mingw
|