diff --git a/.github/workflows/linux-ci.yml b/.github/workflows/linux-ci.yml index 88b1f593d..407d21460 100644 --- a/.github/workflows/linux-ci.yml +++ b/.github/workflows/linux-ci.yml @@ -47,7 +47,7 @@ jobs: # fail-on-alert: true - name: cov - run: ninja -Cbuild coverage + run: ninja -Cbuild coverage-xml - uses: codecov/codecov-action@v1 with: file: build/meson-logs/coverage.xml diff --git a/.github/workflows/macos-ci.yml b/.github/workflows/macos-ci.yml new file mode 100644 index 000000000..84e54df17 --- /dev/null +++ b/.github/workflows/macos-ci.yml @@ -0,0 +1,27 @@ +name: macos-ci + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: macos-10.15 + + steps: + - uses: actions/checkout@v2 + - name: install dependencies + run: HOMEBREW_NO_AUTO_UPDATE=1 brew install pkg-config freetype glib cairo icu4c graphite2 gobject-introspection gtk-doc ninja gcovr + - run: pip3 install meson fonttools --upgrade + - name: run + run: PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig" meson build -Db_coverage=true -Dcoretext=enabled -Dgraphite=enabled -Dauto_features=enabled -Dchafa=disabled -Doptimization=2 + - name: ci + run: meson test --print-errorlogs -Cbuild + + - name: cov + run: ninja -Cbuild coverage-xml + - uses: codecov/codecov-action@v1 + with: + file: build/meson-logs/coverage.xml diff --git a/src/check-symbols.py b/src/check-symbols.py index 8050e1bf9..385959bde 100755 --- a/src/check-symbols.py +++ b/src/check-symbols.py @@ -9,7 +9,8 @@ libs = os.getenv ('libs', '.libs') IGNORED_SYMBOLS = '|'.join(['_fini', '_init', '_fdata', '_ftext', '_fbss', '__bss_start', '__bss_start__', '__bss_end__', '_edata', '_end', '_bss_end__', - '__end__', '__gcov_.*', 'llvm_.*', 'flush_fn_list', 'writeout_fn_list', 'mangle_path']) + '__end__', '__gcov_.*', 'llvm_.*', 'flush_fn_list', 'writeout_fn_list', 'mangle_path', + 'lprofDirMode', 'reset_fn_list']) nm = os.getenv ('NM', shutil.which ('nm')) if not nm: @@ -67,7 +68,7 @@ for soname in ['harfbuzz', 'harfbuzz-subset', 'harfbuzz-icu', 'harfbuzz-gobject' tested = True if not tested: - print ('check-symbols.sh: no shared libraries found; skipping test') + print ('check-symbols.py: no shared libraries found; skipping test') sys.exit (77) sys.exit (stat)