Skip to content

Commit

Permalink
workflows/build-macos: use BUILD_OPTS env variable
Browse files Browse the repository at this point in the history
To be consistent with other tests
  • Loading branch information
rg-silva authored and dragonmux committed Sep 28, 2023
1 parent 24b4b75 commit b98c62c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
- os: macos-latest
build_opts: '-Db_lto=true -Ddefault_library=static'
fail-fast: false
env:
BUILD_OPTS: ${{ matrix.build_opts }}
steps:
- name: Runtime environment
env:
Expand All @@ -53,7 +55,7 @@ jobs:
meson --version
ninja --version
- name: Configure
run: meson setup build --prefix=$HOME/.local ${{ matrix.build_opts }}
run: meson setup build --prefix=$HOME/.local $BUILD_OPTS
- name: Build
run: meson compile -C build
- name: Test
Expand All @@ -65,7 +67,7 @@ jobs:
# Codecov no longer parses gcov files automatically
run: |
rm -rf build
meson setup build --prefix=$HOME/.local -Db_coverage=true --buildtype=debug ${{ matrix.build_opts }}
meson setup build --prefix=$HOME/.local -Db_coverage=true --buildtype=debug $BUILD_OPTS
meson compile -C build
meson test -C build
ninja -C build coverage-xml
Expand Down

0 comments on commit b98c62c

Please sign in to comment.