forked from Scottcjn/Rustchain
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (51 loc) · 1.68 KB
/
windows-build.yml
File metadata and controls
60 lines (51 loc) · 1.68 KB
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
name: Build Windows Miner
on:
workflow_dispatch:
pull_request:
branches: [ main ]
paths:
- "miners/windows/**"
- ".github/workflows/windows-build.yml"
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Inno Setup
shell: pwsh
run: |
choco install innosetup --no-progress --yes
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller requests pystray pillow
pip install -r miners/windows/installer/requirements.txt
- name: Build with PyInstaller
shell: pwsh
run: |
cd miners/windows/installer
pyinstaller RustChainMiner.spec
- name: Build Inno Setup Installer
shell: pwsh
run: |
cd miners/windows/installer
& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" rustchain_setup.iss
- name: Calculate Checksums
shell: pwsh
run: |
if (Test-Path "miners/windows/installer/output") {
cd miners/windows/installer/output
Get-FileHash -Path *.exe -Algorithm SHA256 | Out-File -FilePath checksums.txt
}
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: RustChain-Windows-Installer
path: |
miners/windows/installer/dist/*.exe
miners/windows/installer/output/*.exe
miners/windows/installer/output/checksums.txt