mirror of https://github.com/kiwix/libkiwix.git
Better use GitHub action .env directive
This commit is contained in:
parent
0d2b6b3344
commit
c0073b3bc7
|
@ -41,17 +41,15 @@ jobs:
|
||||||
|
|
||||||
- name: Compile
|
- name: Compile
|
||||||
env:
|
env:
|
||||||
PKG_CONFIG_PATH: ${{env.HOME}}/BUILD_native_dyn/INSTALL/lib/pkgconfig
|
PKG_CONFIG_PATH: ${{env.HOME}}/BUILD_${{matrix.target}}/INSTALL/lib/pkgconfig
|
||||||
CPPFLAGS: -I${{env.HOME}}/BUILD_native_dyn/INSTALL/include
|
CPPFLAGS: -I${{env.HOME}}/BUILD_native_dyn/INSTALL/include
|
||||||
|
MESON_OPTION: --default-library=shared -Db_coverage=true
|
||||||
|
MESON_CROSSFILE: ${{env.HOME}}/BUILD_${{matrix.target}}/meson_cross_file.txt
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
MESON_OPTION="--default-library=shared -Db_coverage=true"
|
|
||||||
MESON_CROSSFILE="$HOME/BUILD_${{matrix.target}}/meson_cross_file.txt"
|
|
||||||
if [[ ! "${{matrix.target}}" =~ native_.* ]]; then
|
if [[ ! "${{matrix.target}}" =~ native_.* ]]; then
|
||||||
MESON_OPTION="$MESON_OPTION --cross-file $MESON_CROSSFILE -Dstatic-linkage=true"
|
MESON_OPTION="$MESON_OPTION --cross-file $MESON_CROSSFILE -Dstatic-linkage=true"
|
||||||
cat $MESON_CROSSFILE
|
|
||||||
fi
|
fi
|
||||||
export PKG_CONFIG_PATH=$HOME/BUILD_${{matrix.target}}/INSTALL/lib/pkgconfig
|
|
||||||
meson . build ${MESON_OPTION}
|
meson . build ${MESON_OPTION}
|
||||||
ninja -C build
|
ninja -C build
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue