Skip to content

Commit

Permalink
use link-time optimization when creating a release
Browse files Browse the repository at this point in the history
it's a lot slower, but we don't release often
  • Loading branch information
majcosta committed Jan 1, 2025
1 parent 632d5a0 commit 09dee9f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build_language.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,12 @@ jobs:
JA2Language=$(echo '${{ inputs.language }}' | tr '[:lower:]' '[:upper:]')
JA2Application=$(echo '${{ matrix.application }}' | tr '[:lower:]' '[:upper:]')
LTO=$(echo '${{ inputs.assemble }}')

echo "
JA2Language=$JA2Language
JA2Application=$JA2Application
LTO=$LTO
" >> $GITHUB_ENV
- uses: microsoft/setup-msbuild@v2
Expand All @@ -77,7 +79,7 @@ jobs:
arch: x86
- name: Prepare build
run: |
cmake -S . -B build -GNinja -DCMAKE_BUILD_TYPE=Release -DLanguages="$Env:JA2Language" -DApplications="$Env:JA2Application"
cmake -S . -B build -GNinja -DCMAKE_BUILD_TYPE=Release -DLanguages="$Env:JA2Language" -DApplications="$Env:JA2Application" -DLTO_OPTION="$Env:LTO"
- name: Build
run: |
cmake --build build/ -- -v
Expand Down

0 comments on commit 09dee9f

Please sign in to comment.