Skip to content

Commit a0a5c95

Browse files
asfernandesdyemanov
authored andcommitted
Fix Windows installer automation.
1 parent f0062d2 commit a0a5c95

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,19 @@ jobs:
213213
- name: Get Release Notes
214214
uses: ./.github/actions/get-release-notes
215215

216+
- name: Build x86 for client package in x64
217+
id: build-x86
218+
shell: cmd
219+
if: ${{ matrix.platform == 'x64' }}
220+
env:
221+
PLATFORM: ${{ matrix.platform }}
222+
run: |
223+
echo arch_suffix=%PLATFORM%>> %GITHUB_OUTPUT%
224+
mkdir builds\install_images
225+
cd builds\docker\windows
226+
call build.bat
227+
call run.bat C:\fbscripts\build-x86.bat
228+
216229
- name: Build
217230
id: build
218231
shell: cmd
@@ -257,8 +270,8 @@ jobs:
257270
Firebird-*-windows-${{ steps.build.outputs.arch_suffix }}*.exe
258271
Firebird-*-windows-${{ steps.build.outputs.arch_suffix }}*.zip
259272
uploadFiles: |
260-
builds/install_images/Firebird-*-windows-*.exe
261-
builds/install_images/Firebird-*-windows-*.zip
273+
builds/install_images/Firebird-*-windows-${{ matrix.platform }}-*.exe
274+
builds/install_images/Firebird-*-windows-${{ matrix.platform }}-*.zip
262275
263276
build-macos:
264277
runs-on: macos-12

builds/docker/windows/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ RUN `
4141
choco install --no-progress --yes git --version=2.33.1 && `
4242
choco install --no-progress --yes 7zip.install --version=19.0 && `
4343
choco install --no-progress --yes innosetup --version=6.1.2 && `
44+
choco install --no-progress --yes wixtoolset --version=3.11.2 && `
4445
`
4546
refreshenv && `
4647
setx PATH "%PATH%;C:\Program Files\Git\usr\bin"
4748

4849
ENV SEVENZIP='C:\Program Files\7-Zip'
4950
ENV INNO6_SETUP_PATH='C:\Program Files (x86)\Inno Setup 6'
51+
ENV WIX='C:\Program Files (x86)\WiX Toolset v3.11'
5052

5153
COPY scripts\* C:\fbscripts\

builds/docker/windows/scripts/build-x86.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ call run_all.bat PDB
1212
call run_tests.bat
1313

1414
copy C:\firebird-build\builds\install_images\* C:\firebird\builds\install_images
15+
xcopy /h /e /i /q C:\firebird-build\output_Win32_release C:\firebird\output_Win32_release

0 commit comments

Comments
 (0)