Skip to content

Commit

Permalink
Fix Github workflow LTO config
Browse files Browse the repository at this point in the history
  • Loading branch information
bdutro-mips committed Oct 16, 2024
1 parent d8b5ad7 commit 7881b81
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/ubuntu-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@ jobs:
- c: clang
cxx: clang++
build_config:
- build_type: Debug
lto: false
- build_type: Release
lto: 0
lto: false
- build_type: Release
lto: 1
- build_type: Debug
lto: 0
lto: true

env:
LTO_CONFIG: ${{ matrix.build_config.lto && '-DFULL_LTO=1' || '' }}

runs-on: ubuntu-latest

steps:
Expand All @@ -34,7 +38,7 @@ jobs:

- name: Configure CMAKE
working-directory: ${{runner.workspace}}/build
run: CC=${{ matrix.compilers.c }} CXX=${{ matrix.compilers.cxx }} cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build_config.build_type }} -DBUILD_STF_PYTHON_LIB=ON -DFULL_LTO=${{ matrix.build_config.lto }}
run: CC=${{ matrix.compilers.c }} CXX=${{ matrix.compilers.cxx }} cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build_config.build_type }} -DBUILD_STF_PYTHON_LIB=ON $LTO_CONFIG

- name: Build
working-directory: ${{runner.workspace}}/build
Expand Down

0 comments on commit 7881b81

Please sign in to comment.