Decoding of HTML entities in links #742
Workflow file for this run
This file contains 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: | |
- macos-11 | |
- macos-12 | |
- macos-13 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Install packages | |
run: brew install gcovr ninja libmagic | |
- name: Install python modules | |
run: pip3 install meson==0.49.2 pytest | |
- name: Install deps | |
shell: bash | |
run: | | |
ARCHIVE_NAME=deps2_macos_native_dyn_zim-tools.tar.xz | |
wget -O- http://tmp.kiwix.org/ci/${ARCHIVE_NAME} | tar -xJ -C $HOME | |
- name: Compile | |
shell: bash | |
run: | | |
export PKG_CONFIG_PATH=$HOME/BUILD_native_dyn/INSTALL/lib/pkgconfig | |
export CPPFLAGS="-I$HOME/BUILD_native_dyn/INSTALL/include" | |
meson . build | |
cd build | |
ninja | |
Linux: | |
strategy: | |
fail-fast: false | |
matrix: | |
target: | |
- native_static | |
- native_dyn | |
- win32_static | |
- win32_dyn | |
include: | |
- target: native_static | |
image_variant: focal | |
lib_postfix: '/x86_64-linux-gnu' | |
- target: native_dyn | |
image_variant: focal | |
lib_postfix: '/x86_64-linux-gnu' | |
- target: win32_static | |
image_variant: f35 | |
lib_postfix: '64' | |
- target: win32_dyn | |
image_variant: f35 | |
lib_postfix: '64' | |
env: | |
HOME: /home/runner | |
runs-on: ubuntu-22.04 | |
container: | |
image: "ghcr.io/kiwix/kiwix-build_ci_${{matrix.image_variant}}:2023-10-30" | |
steps: | |
- name: Extract branch name | |
shell: bash | |
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | |
id: extract_branch | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install deps | |
shell: bash | |
run: | | |
ARCHIVE_NAME=deps2_${OS_NAME}_${{matrix.target}}_zim-tools.tar.xz | |
wget -O- http://tmp.kiwix.org/ci/${ARCHIVE_NAME} | tar -xJ -C ${{env.HOME}} | |
- name: Compile | |
shell: bash | |
run: | | |
if [[ "${{matrix.target}}" =~ .*_static ]]; then | |
MESON_OPTION="-Dstatic-linkage=true" | |
fi | |
if [[ ! "${{matrix.target}}" =~ native_.* ]]; then | |
MESON_OPTION="$MESON_OPTION --cross-file $HOME/BUILD_${{matrix.target}}/meson_cross_file.txt" | |
fi | |
meson . build ${MESON_OPTION} -Db_coverage=true | |
cd build | |
ninja | |
env: | |
PKG_CONFIG_PATH: "${{env.HOME}}/BUILD_${{matrix.target}}/INSTALL/lib/pkgconfig:${{env.HOME}}/BUILD_${{matrix.target}}/INSTALL/lib${{matrix.lib_postfix}}/pkgconfig" | |
CPPFLAGS: "-I${{env.HOME}}/BUILD_${{matrix.target}}/INSTALL/include" | |
- name: Test | |
shell: bash | |
run: | | |
cd build | |
meson test --verbose | |
ninja coverage | |
env: | |
LD_LIBRARY_PATH: "${{env.HOME}}/BUILD_${{matrix.target}}/INSTALL/lib${{matrix.lib_postfix}}" | |
- name: Publish coverage | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}} |