Skip to content

Commit 73d0468

Browse files
CopilotByron
andcommitted
Update publish workflow to conditionally set LTO and codegen units env vars in full release.
Co-authored-by: Byron <[email protected]>
1 parent adbc375 commit 73d0468

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/publish.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ jobs:
137137
- name: Rust Cache
138138
uses: Swatinem/[email protected]
139139
with:
140-
shared-key: app-release-build
140+
shared-key: app-release-build-${{ github.event.inputs.channel || 'nightly' }}
141141
- name: Init Node Environment
142142
uses: ./.github/actions/init-env-node
143143

@@ -191,6 +191,12 @@ jobs:
191191
with:
192192
name: sveltekit-build
193193
path: ./apps/desktop/build/
194+
- name: Set release build optimization env vars
195+
shell: bash
196+
if: github.event.inputs.channel == 'release'
197+
run: |
198+
echo "CARGO_PROFILE_RELEASE_LTO=fat" >> $GITHUB_ENV
199+
echo "CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1" >> $GITHUB_ENV
194200
- name: Build binary
195201
shell: bash
196202
run: |

0 commit comments

Comments
 (0)