Skip to content

Commit

Permalink
bitcraze#461: Add windows installer build to GH workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ataffanel committed Dec 16, 2020
1 parent 70cc91b commit e1f0723
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Binaries build configuration

name: Binary builds
name: Build

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
Expand All @@ -12,7 +12,7 @@ on:

jobs:
build:
name: Build on ${{ matrix.os }}
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -47,6 +47,8 @@ jobs:
path: "build/*.zip"

windows-build:
name: Windows

runs-on: windows-2019

steps:
Expand All @@ -65,16 +67,25 @@ jobs:
pip install -e .
python tools\build\prep_windows
pip install cx_freeze~=6.4
pip install jinja
- name: Install nsis
run: choco install -y nsis.portable -version 2.50

- name: Build exe
run: python setup.py install_exe -d windows_build

- name: Test exe
run: windows_build\cfclient.exe --check-imports

- name: Build installer
run: |
python win32install\generate_nsis.py
makensis win32install\cfclient.nsi
- name: Upload Build Artifact
uses: actions/[email protected]
with:
name: windows-build
path: "windows_build/*"
path: "win32install/*.exe"

0 comments on commit e1f0723

Please sign in to comment.