Better definition of env variables

This commit is contained in:
Emmanuel Engelhart 2023-02-19 16:45:06 +01:00
parent b24157ddf9
commit 2d0cff2dc1
No known key found for this signature in database
GPG Key ID: 120B30D020B553D3
1 changed files with 8 additions and 4 deletions

View File

@ -9,6 +9,8 @@ on:
jobs:
macOS:
runs-on: macos-12
env:
HOME: /Users/runner
steps:
- name: Retrieve source code
uses: actions/checkout@v3
@ -19,14 +21,16 @@ jobs:
brew install pkg-config ninja meson
- name: Install dependences
env:
ARCHIVE_NAME: deps2_osx_native_dyn_libkiwix.tar.xz
run: |
ARCHIVE_NAME=deps2_osx_native_dyn_libkiwix.tar.xz
wget -O- http://tmp.kiwix.org/ci/${ARCHIVE_NAME} | tar -xJ -C $HOME
- name: Compile source code
env:
PKG_CONFIG_PATH: ${{env.HOME}}/BUILD_native_dyn/INSTALL/lib/pkgconfig
CPPFLAGS: -I${{env.HOME}}/BUILD_native_dyn/INSTALL/include
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
cd build
ninja
@ -34,8 +38,8 @@ jobs:
- name: Test libkiwix
env:
SKIP_BIG_MEMORY_TEST: 1
LD_LIBRARY_PATH: ${{env.HOME}}/BUILD_native_dyn/INSTALL/lib:${{env.HOME}}/BUILD_native_dyn/INSTALL/lib64
run: |
export LD_LIBRARY_PATH=$HOME/BUILD_native_dyn/INSTALL/lib:$HOME/BUILD_native_dyn/INSTALL/lib64
cd build
meson test --verbose