mirror of https://github.com/kiwix/libkiwix.git
Improve a bit the readability of the workflow
This commit is contained in:
parent
b1055e814a
commit
cb4938c5f8
|
@ -10,24 +10,29 @@ jobs:
|
||||||
macOS:
|
macOS:
|
||||||
runs-on: macos-12
|
runs-on: macos-12
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Retrieve source code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup python 3.9
|
- name: Setup python 3.9
|
||||||
uses: actions/setup-python@v3
|
uses: actions/setup-python@v3
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
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 gcovr pkg-config ninja || brew link --overwrite python
|
||||||
|
|
||||||
- name: Install python modules
|
- name: Install python modules
|
||||||
run: pip3 install meson==0.49.2 pytest
|
run: pip3 install meson==0.49.2 pytest
|
||||||
- name: Install deps
|
|
||||||
|
- name: Install dependences
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
ARCHIVE_NAME=deps2_osx_native_dyn_libkiwix.tar.xz
|
ARCHIVE_NAME=deps2_osx_native_dyn_libkiwix.tar.xz
|
||||||
wget -O- http://tmp.kiwix.org/ci/${ARCHIVE_NAME} | tar -xJ -C $HOME
|
wget -O- http://tmp.kiwix.org/ci/${ARCHIVE_NAME} | tar -xJ -C $HOME
|
||||||
- name: Compile
|
|
||||||
|
- name: Compile source code
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
export PKG_CONFIG_PATH=$HOME/BUILD_native_dyn/INSTALL/lib/pkgconfig
|
export PKG_CONFIG_PATH=$HOME/BUILD_native_dyn/INSTALL/lib/pkgconfig
|
||||||
|
@ -35,14 +40,15 @@ jobs:
|
||||||
meson . build --default-library=shared -Db_coverage=true
|
meson . build --default-library=shared -Db_coverage=true
|
||||||
cd build
|
cd build
|
||||||
ninja
|
ninja
|
||||||
- name: Test
|
|
||||||
|
- name: Test libkiwix
|
||||||
|
env:
|
||||||
|
SKIP_BIG_MEMORY_TEST: 1
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
export LD_LIBRARY_PATH=$HOME/BUILD_native_dyn/INSTALL/lib:$HOME/BUILD_native_dyn/INSTALL/lib64
|
export LD_LIBRARY_PATH=$HOME/BUILD_native_dyn/INSTALL/lib:$HOME/BUILD_native_dyn/INSTALL/lib64
|
||||||
cd build
|
cd build
|
||||||
meson test --verbose
|
meson test --verbose
|
||||||
env:
|
|
||||||
SKIP_BIG_MEMORY_TEST: 1
|
|
||||||
|
|
||||||
Linux:
|
Linux:
|
||||||
strategy:
|
strategy:
|
||||||
|
|
Loading…
Reference in New Issue