mirror of https://github.com/kiwix/libkiwix.git
Merge pull request #898 from kiwix/improve-macos-ci
Improve macOS Ci workflow
This commit is contained in:
commit
bf80367b5a
|
@ -7,42 +7,38 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Macos:
|
macOS:
|
||||||
runs-on: macos-latest
|
runs-on: macos-12
|
||||||
|
env:
|
||||||
|
HOME: /Users/runner
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Retrieve source code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Setup python 3.9
|
|
||||||
uses: actions/setup-python@v3
|
|
||||||
with:
|
|
||||||
python-version: '3.9'
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: |
|
run: |
|
||||||
brew update
|
brew update
|
||||||
brew install gcovr pkg-config ninja || brew link --overwrite python
|
brew install pkg-config ninja meson
|
||||||
- name: Install python modules
|
|
||||||
run: pip3 install meson==0.49.2 pytest
|
- name: Install dependencies
|
||||||
- name: Install deps
|
env:
|
||||||
shell: bash
|
ARCHIVE_NAME: deps2_osx_native_dyn_libkiwix.tar.xz
|
||||||
run: |
|
run: |
|
||||||
ARCHIVE_NAME=deps2_osx_native_dyn_libkiwix.tar.xz
|
wget -O- https://tmp.kiwix.org/ci/${{env.ARCHIVE_NAME}} | tar -xJ -C ${{env.HOME}}
|
||||||
wget -O- http://tmp.kiwix.org/ci/${ARCHIVE_NAME} | tar -xJ -C $HOME
|
|
||||||
- name: Compile
|
- name: Compile source code
|
||||||
shell: bash
|
env:
|
||||||
|
PKG_CONFIG_PATH: ${{env.HOME}}/BUILD_native_dyn/INSTALL/lib/pkgconfig
|
||||||
|
CPPFLAGS: -I${{env.HOME}}/BUILD_native_dyn/INSTALL/include
|
||||||
run: |
|
run: |
|
||||||
export PKG_CONFIG_PATH=$HOME/BUILD_native_dyn/INSTALL/lib/pkgconfig
|
|
||||||
export CPPFLAGS="-I$HOME/BUILD_native_dyn/INSTALL/include"
|
|
||||||
meson . build --default-library=shared -Db_coverage=true
|
meson . build --default-library=shared -Db_coverage=true
|
||||||
cd build
|
ninja -C build
|
||||||
ninja
|
|
||||||
- name: Test
|
- name: Test libkiwix
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
export LD_LIBRARY_PATH=$HOME/BUILD_native_dyn/INSTALL/lib:$HOME/BUILD_native_dyn/INSTALL/lib64
|
|
||||||
cd build
|
|
||||||
meson test --verbose
|
|
||||||
env:
|
env:
|
||||||
SKIP_BIG_MEMORY_TEST: 1
|
SKIP_BIG_MEMORY_TEST: 1
|
||||||
|
LD_LIBRARY_PATH: ${{env.HOME}}/BUILD_native_dyn/INSTALL/lib:${{env.HOME}}/BUILD_native_dyn/INSTALL/lib64
|
||||||
|
run: meson test -C build --verbose
|
||||||
|
|
||||||
Linux:
|
Linux:
|
||||||
strategy:
|
strategy:
|
||||||
|
|
Loading…
Reference in New Issue