Simplify ninja and meson calls

This commit is contained in:
Emmanuel Engelhart 2023-02-19 17:14:41 +01:00
parent cfe3f8e3d9
commit a04646b7b2
No known key found for this signature in database
GPG Key ID: 120B30D020B553D3
1 changed files with 4 additions and 7 deletions

View File

@ -20,11 +20,11 @@ jobs:
brew update brew update
brew install pkg-config ninja meson brew install pkg-config ninja meson
- name: Install dependences - name: Install dependencies
env: env:
ARCHIVE_NAME: deps2_osx_native_dyn_libkiwix.tar.xz ARCHIVE_NAME: deps2_osx_native_dyn_libkiwix.tar.xz
run: | run: |
wget -O- https://tmp.kiwix.org/ci/${ARCHIVE_NAME} | tar -xJ -C $HOME wget -O- https://tmp.kiwix.org/ci/${{env.ARCHIVE_NAME}} | tar -xJ -C ${{env.HOME}}
- name: Compile source code - name: Compile source code
env: env:
@ -32,16 +32,13 @@ jobs:
CPPFLAGS: -I${{env.HOME}}/BUILD_native_dyn/INSTALL/include CPPFLAGS: -I${{env.HOME}}/BUILD_native_dyn/INSTALL/include
run: | run: |
meson . build --default-library=shared -Db_coverage=true meson . build --default-library=shared -Db_coverage=true
cd build ninja -C build
ninja
- name: Test libkiwix - name: Test libkiwix
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 LD_LIBRARY_PATH: ${{env.HOME}}/BUILD_native_dyn/INSTALL/lib:${{env.HOME}}/BUILD_native_dyn/INSTALL/lib64
run: | run: meson test -C build --verbose
cd build
meson test --verbose
Linux: Linux:
strategy: strategy: