-
Notifications
You must be signed in to change notification settings - Fork 3
62 lines (53 loc) · 1.66 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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
install: >-
mingw-w64-ucrt-x86_64-libadwaita
mingw-w64-ucrt-x86_64-rust
mingw-w64-ucrt-x86_64-pkgconf
- name: Install cargo-make
shell: msys2 {0}
run: cargo install cargo-make
- name: Build gui
shell: msys2 {0}
run: ./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/*