[ci] Clean a bit and add some consistency
This commit is contained in:
parent
edd5a37e79
commit
35f0184bfd
|
@ -15,46 +15,54 @@ jobs:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout
|
||||||
- uses: hendrikmuhs/ccache-action@v1.2
|
uses: actions/checkout@v3
|
||||||
- name: install dependencies
|
- name: Setup Ccache
|
||||||
run: sudo apt-get update && sudo apt-get install pkg-config gcc gtk-doc-tools libfreetype6-dev libglib2.0-dev libcairo2-dev libicu-dev libgraphite2-dev python3 python3-setuptools ninja-build gobject-introspection libgirepository1.0-dev
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
- run: sudo pip3 install fonttools meson==0.56.0 gcovr==5.0
|
- name: Install Dependencies
|
||||||
- name: run
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install \
|
||||||
|
gcc \
|
||||||
|
gobject-introspection \
|
||||||
|
gtk-doc-tools \
|
||||||
|
libcairo2-dev \
|
||||||
|
libfreetype6-dev \
|
||||||
|
libgirepository1.0-dev \
|
||||||
|
libglib2.0-dev \
|
||||||
|
libgraphite2-dev \
|
||||||
|
libicu-dev \
|
||||||
|
ninja-build \
|
||||||
|
pkg-config \
|
||||||
|
python3 \
|
||||||
|
python3-setuptools
|
||||||
|
- name: Install Python Dependencies
|
||||||
|
run: sudo pip3 install fonttools meson==0.56.0 gcovr==5.0
|
||||||
|
- name: Setup Meson
|
||||||
run: |
|
run: |
|
||||||
ccache --version
|
ccache --version
|
||||||
meson setup build -Db_coverage=true --auto-features=enabled -Dgraphite=enabled -Dchafa=disabled -Dragel_subproject=true -Doptimization=2
|
meson setup build \
|
||||||
- name: ci
|
-Dauto_features=enabled \
|
||||||
|
-Dchafa=disabled \
|
||||||
|
-Dgraphite=enabled \
|
||||||
|
-Doptimization=2 \
|
||||||
|
-Db_coverage=true \
|
||||||
|
-Dragel_subproject=true
|
||||||
|
- name: Build
|
||||||
|
run: meson compile -Cbuild
|
||||||
|
- name: Test
|
||||||
run: meson test --print-errorlogs -Cbuild
|
run: meson test --print-errorlogs -Cbuild
|
||||||
|
- name: Generate Documentations
|
||||||
- name: generate documentations
|
|
||||||
run: ninja -Cbuild harfbuzz-doc
|
run: ninja -Cbuild harfbuzz-doc
|
||||||
- name: deploy documentations
|
- name: Deploy Documentations
|
||||||
if: github.ref_type == 'tag'
|
if: github.ref_type == 'tag'
|
||||||
run: .ci/deploy-docs.sh
|
run: .ci/deploy-docs.sh
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
REVISION: ${{ github.sha }}
|
REVISION: ${{ github.sha }}
|
||||||
|
- name: Generate Coverage
|
||||||
# waiting for https://github.com/rhysd/github-action-benchmark/issues/36 to happen
|
|
||||||
# - name: benchmark
|
|
||||||
# run: build/perf/perf --benchmark_format=json > perf/result.json
|
|
||||||
# - name: store benchmark result
|
|
||||||
# uses: rhysd/github-action-benchmark@b2ee598
|
|
||||||
# if: github.event_name != 'pull_request'
|
|
||||||
# with:
|
|
||||||
# name: C++ Benchmark
|
|
||||||
# tool: 'googlecpp'
|
|
||||||
# output-file-path: perf/result.json
|
|
||||||
# gh-pages-branch: gh-pages
|
|
||||||
# github-token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
|
|
||||||
# auto-push: true
|
|
||||||
# alert-threshold: '150%'
|
|
||||||
# comment-on-alert: true
|
|
||||||
# fail-on-alert: true
|
|
||||||
|
|
||||||
- name: cov
|
|
||||||
run: ninja -Cbuild coverage-xml
|
run: ninja -Cbuild coverage-xml
|
||||||
- uses: codecov/codecov-action@v3
|
- name: Upload Coverage
|
||||||
|
uses: codecov/codecov-action@v3
|
||||||
with:
|
with:
|
||||||
file: build/meson-logs/coverage.xml
|
file: build/meson-logs/coverage.xml
|
||||||
|
|
|
@ -14,15 +14,38 @@ jobs:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout
|
||||||
- uses: hendrikmuhs/ccache-action@v1.2
|
uses: actions/checkout@v3
|
||||||
- name: install dependencies
|
- name: Setup Ccache
|
||||||
run: HOMEBREW_NO_AUTO_UPDATE=1 brew install meson pkg-config freetype glib glib-utils cairo icu4c graphite2 gobject-introspection gtk-doc ninja
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
- run: pip3 install fonttools
|
- name: Install Dependencies
|
||||||
- name: run
|
run: |
|
||||||
|
export HOMEBREW_NO_AUTO_UPDATE=1
|
||||||
|
brew install \
|
||||||
|
cairo \
|
||||||
|
freetype \
|
||||||
|
glib \
|
||||||
|
glib-utils \
|
||||||
|
gobject-introspection \
|
||||||
|
graphite2 \
|
||||||
|
gtk-doc \
|
||||||
|
icu4c \
|
||||||
|
meson \
|
||||||
|
ninja \
|
||||||
|
pkg-config
|
||||||
|
- name: Install Python Dependencies
|
||||||
|
run: pip3 install fonttools
|
||||||
|
- name: Setup Meson
|
||||||
run: |
|
run: |
|
||||||
export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig"
|
export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig"
|
||||||
ccache --version
|
ccache --version
|
||||||
meson setup build -Dcoretext=enabled -Dgraphite=enabled -Dauto_features=enabled -Dchafa=disabled -Doptimization=2
|
meson setup build \
|
||||||
- name: ci
|
-Dauto_features=enabled \
|
||||||
|
-Dchafa=disabled \
|
||||||
|
-Dcoretext=enabled \
|
||||||
|
-Dgraphite=enabled \
|
||||||
|
-Doptimization=2
|
||||||
|
- name: Build
|
||||||
|
run: meson compile -Cbuild
|
||||||
|
- name: Test
|
||||||
run: meson test --print-errorlogs -Cbuild
|
run: meson test --print-errorlogs -Cbuild
|
||||||
|
|
|
@ -27,24 +27,25 @@ jobs:
|
||||||
name: ${{ matrix.name }}
|
name: ${{ matrix.name }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout
|
||||||
- uses: hendrikmuhs/ccache-action@v1.2
|
uses: actions/checkout@v3
|
||||||
|
- name: Setup Ccache
|
||||||
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
with:
|
with:
|
||||||
variant: sccache
|
variant: sccache
|
||||||
key: ${{ github.job }}-${{ matrix.os }}-${{ matrix.ARCH }}
|
key: ${{ github.job }}-${{ matrix.os }}-${{ matrix.ARCH }}
|
||||||
- uses: actions/setup-python@v4
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
- uses: ilammy/msvc-dev-cmd@v1
|
- name: Setup MSVC
|
||||||
|
uses: ilammy/msvc-dev-cmd@v1
|
||||||
with:
|
with:
|
||||||
arch : ${{ matrix.ARCH }}
|
arch : ${{ matrix.ARCH }}
|
||||||
- name: Upgrade pip
|
- name: Install Python Dependencies
|
||||||
run: |
|
|
||||||
python -m pip install -U pip
|
|
||||||
- name: Install Dependencies
|
|
||||||
run: |
|
run: |
|
||||||
pip install --upgrade meson ninja fonttools
|
pip install --upgrade meson ninja fonttools
|
||||||
- name: Build
|
- name: Setup Meson
|
||||||
run: |
|
run: |
|
||||||
sccache --version
|
sccache --version
|
||||||
meson setup build `
|
meson setup build `
|
||||||
|
@ -54,8 +55,7 @@ jobs:
|
||||||
-Dfreetype=enabled `
|
-Dfreetype=enabled `
|
||||||
-Dgdi=enabled `
|
-Dgdi=enabled `
|
||||||
-Ddirectwrite=enabled
|
-Ddirectwrite=enabled
|
||||||
|
- name: Build
|
||||||
meson compile -C build
|
run: meson compile -Cbuild
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: meson test --print-errorlogs --suite=harfbuzz -Cbuild
|
||||||
meson test --print-errorlogs --suite=harfbuzz -C build
|
|
||||||
|
|
|
@ -32,8 +32,10 @@ jobs:
|
||||||
run:
|
run:
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout
|
||||||
- uses: msys2/setup-msys2@v2
|
uses: actions/checkout@v3
|
||||||
|
- name: Setup MSYS2
|
||||||
|
uses: msys2/setup-msys2@v2
|
||||||
with:
|
with:
|
||||||
msystem: ${{ matrix.MSYSTEM }}
|
msystem: ${{ matrix.MSYSTEM }}
|
||||||
update: true
|
update: true
|
||||||
|
@ -55,9 +57,9 @@ jobs:
|
||||||
- name: Install Python Dependencies
|
- name: Install Python Dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install --upgrade fonttools
|
pip install --upgrade fonttools
|
||||||
- name: Build
|
- name: Setup Meson
|
||||||
run: |
|
run: |
|
||||||
meson build \
|
meson setup build \
|
||||||
--wrap-mode=nodownload \
|
--wrap-mode=nodownload \
|
||||||
--auto-features=enabled \
|
--auto-features=enabled \
|
||||||
-Ddocs=disabled \
|
-Ddocs=disabled \
|
||||||
|
@ -65,10 +67,7 @@ jobs:
|
||||||
-Dgdi=enabled \
|
-Dgdi=enabled \
|
||||||
-Dgraphite=enabled \
|
-Dgraphite=enabled \
|
||||||
-Dchafa=disabled
|
-Dchafa=disabled
|
||||||
ninja -C build
|
- name: Build
|
||||||
|
run: meson compile -Cbuild
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: meson test --print-errorlogs --suite=harfbuzz -Cbuild
|
||||||
meson test \
|
|
||||||
--print-errorlogs \
|
|
||||||
--suite=harfbuzz \
|
|
||||||
-C build
|
|
||||||
|
|
Loading…
Reference in New Issue