Log debug utils #2154
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
macOS: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
# x86 | |
- macos-13 | |
target: | |
- macos-x86_64-dyn | |
include: | |
- target: macos-x86_64-dyn | |
arch_name: x86_64-apple-darwin | |
run_test: true | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2 | |
with: | |
egress-policy: audit | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup Python 3.10 | |
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5 | |
with: | |
python-version: '3.10' | |
- name: Install packages | |
run: | | |
brew update | |
brew install gcovr || brew link --overwrite python # ninja | |
- name: Install Python modules | |
run: pip3 install meson pytest | |
- name: Install dependencies | |
uses: kiwix/kiwix-build/actions/dl_deps_archive@77592b12ffa8f2b51f9b28e6f34643eb2d99ac62 # main | |
with: | |
target_platform: ${{ matrix.target }} | |
- name: Compile | |
shell: bash | |
run: | | |
MESON_OPTION="--default-library=shared" | |
MESON_CROSSFILE="$HOME/BUILD_${{matrix.arch_name}}/meson_cross_file.txt" | |
if [ -e $MESON_CROSSFILE ]; then | |
MESON_OPTION="$MESON_OPTION --cross-file $MESON_CROSSFILE -Dstatic-linkage=true" | |
cat $MESON_CROSSFILE | |
fi | |
export PKG_CONFIG_PATH=$HOME/BUILD_${{matrix.arch_name}}/INSTALL/lib/pkgconfig | |
meson . build ${MESON_OPTION} | |
cd build | |
ninja | |
- name: Test | |
if: matrix.run_test | |
shell: bash | |
run: | | |
export LD_LIBRARY_PATH=$HOME/BUILD_${{matrix.arch_name}}/INSTALL/lib:$HOME/BUILD_${{matrix.arch_name}}/INSTALL/lib64 | |
cd build | |
meson test --verbose --timeout-multiplier 0.1 log | |
env: | |
SKIP_BIG_MEMORY_TEST: 1 | |
WAIT_TIME_FACTOR_TEST: 10 |