2020-09-11 13:14:20 +02:00
|
|
|
version: 2.1
|
|
|
|
|
|
|
|
executors:
|
|
|
|
win32-executor:
|
|
|
|
docker:
|
|
|
|
- image: cimg/base:edge-20.04
|
2021-09-07 14:13:23 +02:00
|
|
|
win64-executor:
|
|
|
|
docker:
|
|
|
|
- image: cimg/base:edge-20.04
|
2022-12-18 16:44:41 +01:00
|
|
|
autotools-executor:
|
2020-09-11 15:40:32 +02:00
|
|
|
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
|
2022-12-16 23:34:46 +01:00
|
|
|
- run: PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig" meson setup 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
|
2022-12-18 16:44:41 +01:00
|
|
|
distcheck:
|
|
|
|
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
|
2022-12-18 16:44:41 +01: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
|
2022-12-18 16:44:41 +01:00
|
|
|
- run: rm harfbuzz-* && make distdir
|
|
|
|
- run: cd harfbuzz-* && meson build && ninja -j2 -Cbuild test
|
|
|
|
- run: make dist
|
2020-09-11 15:46:34 +02:00
|
|
|
- persist_to_workspace:
|
|
|
|
root: .
|
|
|
|
paths: harfbuzz-*.tar.xz
|
|
|
|
|
|
|
|
publish-dist:
|
2022-12-18 16:44:41 +01:00
|
|
|
executor: autotools-executor
|
2020-09-11 15:46:34 +02:00
|
|
|
steps:
|
2020-09-11 16:23:00 +02:00
|
|
|
- checkout
|
2020-09-11 15:46:34 +02:00
|
|
|
- attach_workspace:
|
|
|
|
at: .
|
|
|
|
- run: |
|
2022-12-18 16:44:41 +01: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:
|
2022-05-24 03:29:23 +02:00
|
|
|
- image: fedora:36
|
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
|
2022-12-16 23:34:46 +01:00
|
|
|
- run: meson setup build --buildtype=debugoptimized
|
|
|
|
- run: meson compile -Cbuild -j9
|
2020-07-12 20:41:45 +02:00
|
|
|
# TOOD: increase timeouts and remove --no-suite=slow
|
2021-12-12 06:50:06 +01:00
|
|
|
- run: RUN_VALGRIND=1 meson test -Cbuild --no-suite=slow --wrap='valgrind --leak-check=full --error-exitcode=1' --print-errorlogs --num-processes=$(($(nproc)/2 + 1))
|
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
|
2021-11-20 16:09:15 +01:00
|
|
|
- run: pip3 install meson==0.56.0
|
2022-12-16 23:34:46 +01:00
|
|
|
- run: meson setup build --buildtype=minsize
|
|
|
|
- run: meson compile -Cbuild -j9
|
2020-07-08 12:40:25 +02:00
|
|
|
- run: meson test -Cbuild --print-errorlogs
|
2017-11-01 22:10:55 +01:00
|
|
|
|
2021-11-20 19:51:26 +01:00
|
|
|
asan-ubsan:
|
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
|
2021-11-20 16:09:15 +01:00
|
|
|
- run: DEBIAN_FRONTEND=noninteractive apt install -y python3 python3-pip ninja-build clang lld git binutils pkg-config ragel libfreetype6-dev libglib2.0-dev libcairo2-dev libicu-dev libgraphite2-dev
|
|
|
|
- run: pip3 install meson==0.56.0
|
2022-12-16 23:34:46 +01:00
|
|
|
- run: CC=clang CXX=clang++ meson setup build --default-library=static -Db_sanitize=address,undefined --buildtype=debugoptimized --wrap-mode=nodownload -Dexperimental_api=true
|
|
|
|
- run: meson compile -Cbuild -j9
|
|
|
|
- run: meson test -Cbuild --print-errorlogs | asan_symbolize | c++filt
|
2021-11-20 19:51:26 +01:00
|
|
|
|
|
|
|
tsan:
|
|
|
|
docker:
|
|
|
|
- image: ubuntu:20.04
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: apt update || true
|
|
|
|
- run: DEBIAN_FRONTEND=noninteractive apt install -y python3 python3-pip ninja-build clang lld git binutils pkg-config ragel libfreetype6-dev libglib2.0-dev libcairo2-dev libicu-dev libgraphite2-dev
|
|
|
|
- run: pip3 install meson==0.56.0
|
2022-12-16 23:34:46 +01:00
|
|
|
- run: CC=clang CXX=clang++ meson setup build --default-library=static -Db_sanitize=thread --buildtype=debugoptimized --wrap-mode=nodownload -Dexperimental_api=true
|
|
|
|
- run: meson compile -Cbuild -j9
|
|
|
|
- run: meson test -Cbuild --print-errorlogs | asan_symbolize | c++filt
|
2021-11-20 19:51:26 +01:00
|
|
|
|
|
|
|
msan:
|
|
|
|
docker:
|
|
|
|
- image: ubuntu:20.04
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: apt update || true
|
|
|
|
- run: DEBIAN_FRONTEND=noninteractive apt install -y python3 python3-pip ninja-build clang lld git binutils pkg-config ragel libfreetype6-dev libglib2.0-dev libcairo2-dev libicu-dev libgraphite2-dev
|
|
|
|
- run: pip3 install meson==0.56.0
|
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
|
2022-12-16 23:34:46 +01:00
|
|
|
- run: CC=clang CXX=clang++ meson setup build --default-library=static -Db_sanitize=memory --buildtype=debugoptimized --wrap-mode=nodownload -Dauto_features=disabled -Dtests=enabled -Dexperimental_api=true
|
|
|
|
- run: meson compile -Cbuild -j9
|
|
|
|
- run: meson test -Cbuild --print-errorlogs | asan_symbolize | c++filt
|
2021-11-20 19:51:26 +01:00
|
|
|
|
|
|
|
clang-cxx2a:
|
|
|
|
docker:
|
|
|
|
- image: ubuntu:20.04
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: apt update || true
|
|
|
|
- run: DEBIAN_FRONTEND=noninteractive apt install -y clang lld git binutils
|
2022-07-19 21:15:21 +02:00
|
|
|
- run: clang -c src/harfbuzz-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
|
2022-12-16 20:01:26 +01:00
|
|
|
- run: pip3 install meson==0.60.0
|
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:
|
2021-09-07 14:13:23 +02:00
|
|
|
executor: win64-executor
|
2021-08-15 17:24:51 +02:00
|
|
|
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
|
2022-12-16 20:01:26 +01:00
|
|
|
- run: pip3 install meson==0.60.0
|
2021-08-15 17:24:51 +02:00
|
|
|
- run: bash .ci/build-win64.sh
|
|
|
|
- store_artifacts:
|
|
|
|
path: harfbuzz-win64.zip
|
|
|
|
- persist_to_workspace:
|
|
|
|
root: .
|
|
|
|
paths: harfbuzz-win64.zip
|
|
|
|
|
|
|
|
publish-win64:
|
2021-09-07 14:13:23 +02:00
|
|
|
executor: win64-executor
|
2021-08-15 17:24:51 +02:00
|
|
|
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
|
2022-12-18 16:44:41 +01:00
|
|
|
- distcheck:
|
2021-08-18 13:43:54 +02:00
|
|
|
filters: # must have filter or won't work as a dependency
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
2020-09-11 15:46:34 +02:00
|
|
|
- publish-dist:
|
|
|
|
requires:
|
2022-12-18 16:44:41 +01:00
|
|
|
- distcheck
|
2020-09-11 15:46:34 +02:00
|
|
|
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-11-20 19:51:26 +01:00
|
|
|
- asan-ubsan
|
|
|
|
- tsan
|
|
|
|
- msan
|
|
|
|
- clang-cxx2a
|
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: /.*/
|