add codegen units #153
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "build" | |
on: | |
- push | |
jobs: | |
build_windows_gui: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Setup MSYS2 | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: ucrt64 | |
update: true | |
install: >- | |
base-devel | |
pacboy: >- | |
libadwaita:p | |
rust:p | |
pkg-config:p | |
- name: Install just | |
shell: msys2 {0} | |
run: | | |
mkdir ~/.cargo | |
CARGO_PROFILE_RELEASE_LTO=false CARGO_PROFILE_RELEASE_CODEGEN_UNITS=16 cargo install --root "$HOME/.cargo" just | |
- name: Build gui | |
shell: msys2 {0} | |
run: | | |
export PATH="$HOME/.cargo/bin:$PATH" | |
./packaging/windows/build.sh | |
- name: Build installer | |
run: | | |
& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" ".\packaging\windows\setup.iss" | |
- name: Move to artifacts directory | |
run: | | |
New-Item -Type Directory -Path artifacts | |
Move-Item .\packaging\windows\Output\OpenSCQ30_Setup.exe artifacts\openscq30_gui_setup-windows-x86_64.exe | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: windows-gui | |
path: artifacts/* |