build #88
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: | |
workflow_dispatch: | |
jobs: | |
build_windows_gui: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Setup MSYS2 | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: UCRT64 | |
update: true | |
path-type: strict | |
install: >- | |
mingw-w64-ucrt-x86_64-libadwaita | |
mingw-w64-ucrt-x86_64-rust | |
mingw-w64-ucrt-x86_64-pkg-config | |
- name: Install cargo-make | |
shell: msys2 {0} | |
run: msys2 -c 'cargo install cargo-make' | |
- name: Build gui | |
shell: msys2 {0} | |
run: msys2 -c './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@v3 | |
with: | |
name: windows-gui | |
path: artifacts/* | |
# build_windows_cli: | |
# runs-on: windows-2022 | |
# steps: | |
# - uses: actions/checkout@v4 | |
# with: | |
# submodules: true | |
# - name: Build cli | |
# run: cargo build --release --package openscq30_cli | |
# - name: Move to artifacts directory | |
# run: | | |
# New-Item -Type Directory -Path artifacts | |
# Move-Item .\target\release\openscq30_cli.exe artifacts\openscq30_cli-windows-x86_64.exe | |
# - name: Upload artifacts | |
# uses: actions/upload-artifact@v3 | |
# with: | |
# name: windows-cli | |
# path: artifacts/* |