Skip to content

Commit a43f0c5

Browse files
authored
Update windows.yml
1 parent 16ec066 commit a43f0c5

File tree

1 file changed

+26
-15
lines changed

1 file changed

+26
-15
lines changed

.github/workflows/windows.yml

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,7 @@ jobs:
2828
- run: git fetch --prune --unshallow --tags
2929

3030
- name: Preapre build
31-
run: |
32-
echo "Create datetime"
33-
$current_date=$(Get-Date -Format 'yyyyMMdd')
34-
"current_date=$current_date" >> $env:GITHUB_ENV
35-
36-
echo "Create git hash"
37-
$git_hash=$(git -C . rev-parse --short HEAD)
38-
"git_hash=$git_hash" >> $env:GITHUB_ENV
39-
40-
echo "Create version"
41-
$file_version="$($current_date)_$($git_hash)"
42-
"file_version=$file_version" >> $env:GITHUB_ENV
43-
31+
run: |
4432
echo "Create a build directory"
4533
md build
4634
cd build
@@ -59,8 +47,31 @@ jobs:
5947
run: |
6048
cd build/release
6149
qmake ../..
62-
mingw32-make
63-
50+
mingw32-make -j4
51+
52+
- name: Create installer
53+
run: |
54+
Write-Host "*** Create new bin folder ***" -ForegroundColor Red
55+
New-Item -ItemType directory -Path installer
56+
57+
Write-Host "*** Copy non QT DLLs from welle.io-win-libs repository ***" -ForegroundColor Red
58+
Copy-Item ..\welle.io-win-libs\x64\*.dll installer -recurse
59+
60+
Write-Host "*** Copy welle-io binary files ***" -ForegroundColor Red
61+
Copy-Item build\release\src\welle-gui\welle-io.exe installer
62+
63+
# Deploy QT and related plugins
64+
Write-Host "*** Deploy QT and related plugins ***" -ForegroundColor Red
65+
& windeployqt installer\welle-io.exe --qmldir src\welle-gui\QML\ --no-translations
66+
67+
echo "Create filename"
68+
$current_date=$(Get-Date -Format 'yyyyMMdd')
69+
$git_hash=$(git -C . rev-parse --short HEAD)
70+
$Filename = $current_date + "_" + $git_hash + "_Windows_welle-io-setup_x64"
71+
72+
# Run InnoSetup
73+
& "ISCC" "/F$Filename" "windows/installer.iss"
74+
6475
- name: Archive artifacts (welle.io build dir)
6576
if: always() && steps.build.outcome == 'failure'
6677
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)