Skip to content

Commit

Permalink
Fix Windows installer automation.
Browse files Browse the repository at this point in the history
  • Loading branch information
asfernandes authored and dyemanov committed Sep 28, 2023
1 parent f0062d2 commit a0a5c95
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,19 @@ jobs:
- name: Get Release Notes
uses: ./.github/actions/get-release-notes

- name: Build x86 for client package in x64
id: build-x86
shell: cmd
if: ${{ matrix.platform == 'x64' }}
env:
PLATFORM: ${{ matrix.platform }}
run: |
echo arch_suffix=%PLATFORM%>> %GITHUB_OUTPUT%
mkdir builds\install_images
cd builds\docker\windows
call build.bat
call run.bat C:\fbscripts\build-x86.bat
- name: Build
id: build
shell: cmd
Expand Down Expand Up @@ -257,8 +270,8 @@ jobs:
Firebird-*-windows-${{ steps.build.outputs.arch_suffix }}*.exe
Firebird-*-windows-${{ steps.build.outputs.arch_suffix }}*.zip
uploadFiles: |
builds/install_images/Firebird-*-windows-*.exe
builds/install_images/Firebird-*-windows-*.zip
builds/install_images/Firebird-*-windows-${{ matrix.platform }}-*.exe
builds/install_images/Firebird-*-windows-${{ matrix.platform }}-*.zip
build-macos:
runs-on: macos-12
Expand Down
2 changes: 2 additions & 0 deletions builds/docker/windows/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ RUN `
choco install --no-progress --yes git --version=2.33.1 && `
choco install --no-progress --yes 7zip.install --version=19.0 && `
choco install --no-progress --yes innosetup --version=6.1.2 && `
choco install --no-progress --yes wixtoolset --version=3.11.2 && `
`
refreshenv && `
setx PATH "%PATH%;C:\Program Files\Git\usr\bin"

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

COPY scripts\* C:\fbscripts\
1 change: 1 addition & 0 deletions builds/docker/windows/scripts/build-x86.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ call run_all.bat PDB
call run_tests.bat

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

0 comments on commit a0a5c95

Please sign in to comment.