Skip to content

Commit

Permalink
Better use GitHub action .env directive
Browse files Browse the repository at this point in the history
  • Loading branch information
kelson42 committed Nov 25, 2023
1 parent f8aae39 commit 2f25b4c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,14 @@ jobs:
env:
PKG_CONFIG_PATH: ${{env.HOME}}/BUILD_native_dyn/INSTALL/lib/pkgconfig
CPPFLAGS: -I${{env.HOME}}/BUILD_native_dyn/INSTALL/include
MESON_OPTION: --default-library=shared -Db_coverage=true
MESON_CROSSFILE: $HOME/BUILD_${{matrix.target}}/meson_cross_file.txt
PKG_CONFIG_PATH: $HOME/BUILD_${{matrix.target}}/INSTALL/lib/pkgconfig

Check warning on line 48 in .github/workflows/ci.yml

View check run for this annotation

codefactor.io / CodeFactor

.github/workflows/ci.yml#L48

Duplication of key "PKG_CONFIG_PATH" in mapping (key-duplicates)
shell: bash
run: |
MESON_OPTION="--default-library=shared -Db_coverage=true"
MESON_CROSSFILE="$HOME/BUILD_${{matrix.target}}/meson_cross_file.txt"
if [[ ! "${{matrix.target}}" =~ native_.* ]]; then
MESON_OPTION="$MESON_OPTION --cross-file $MESON_CROSSFILE -Dstatic-linkage=true"
cat $MESON_CROSSFILE
fi
export PKG_CONFIG_PATH=$HOME/BUILD_${{matrix.target}}/INSTALL/lib/pkgconfig
meson . build ${MESON_OPTION}
ninja -C build
Expand Down

0 comments on commit 2f25b4c

Please sign in to comment.