forked from xLightsSequencer/xLights
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (48 loc) · 1.86 KB
/
win_nightly.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: Windows Nightly
on:
schedule:
- cron: '0 5 * * *' # run at 5 AM UTC
workflow_dispatch:
jobs:
build:
runs-on: windows-2022
steps:
- name: Checkout xLights
run: git clone https://github.com/xLightsSequencer/xLights.git C:/xLights/ --depth 1 --depth=1 --shallow-submodules --recurse-submodules
- name: Setup msbuild
uses: microsoft/setup-msbuild@v1
# - name: install Inno
# run: choco install innosetup
- name: install python dependency
run: pip install in_place
- name: generate nightly version number
working-directory: C:/xLights/build_scripts/msw
run: python WriteNightlyVersionFiles.py
- name: Download wxWidgets
run:
git clone --depth=1 --shallow-submodules --recurse-submodules -b master https://github.com/xLightsSequencer/wxWidgets C:/wxWidgets/
- name: Build wxWidgets
working-directory: C:/wxWidgets/
run: msbuild /m .\build\msw\wx_vc17.sln /p:Configuration="Release" /p:Platform="x64"
- name: Build All
shell: cmd
working-directory: C:/xLights/build_scripts/msw
run: call build_VS_x64_skip_libltc.cmd
- name: Build Installer
working-directory: C:/xLights/build_scripts/msw
run: ISCC.exe xLights_4_64bit_VS.iss
- name: Upload Installer
uses: actions/upload-artifact@v2
with:
name: xLights_x64_Installer
path: 'C:\xLights\build_scripts\msw\output\**'
- name: Create prerelease
if: github.ref == 'refs/heads/master'
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
automatic_release_tag: "nightly"
title: "${{ steps.version.outputs.version }}"
files: |
C:/xLights/build_scripts/msw/output/*.exe