1- name : release
1+ name : Release
22
33on :
44 push :
@@ -9,8 +9,9 @@ permissions:
99 contents : read
1010
1111jobs :
12- # Stage 1: Build Windows binaries (matrix strategy)
12+ # Stage 1: Build Windows binaries
1313 build-windows :
14+ if : ${{ github.repository == 'FirebirdSQL/firebird-odbc-driver' }}
1415 runs-on : ${{ matrix.runner }}
1516 strategy :
1617 fail-fast : false
@@ -38,10 +39,14 @@ jobs:
3839 run : |
3940 msbuild /m /p:Configuration=Release /p:Platform=${{ matrix.platform }} ./Builds/MsVc2022.win/OdbcFb.sln
4041
42+ # - name: Run tests (${{ matrix.arch }})
43+ # run: |
44+ # echo "Tests would run here for ${{ matrix.arch }}"
45+
4146 - name : Upload ${{ matrix.arch }} binaries
4247 uses : actions/upload-artifact@v4
4348 with :
44- name : firebird-odbc-win-${{ matrix.arch }}-binaries
49+ name : firebird-odbc-win-${{ matrix.arch }}-release
4550 path : |
4651 Builds/MsVc2022.win/${{ matrix.platform }}/Release/*.dll
4752 Builds/MsVc2022.win/${{ matrix.platform }}/Release/*.lib
@@ -70,17 +75,17 @@ jobs:
7075 # Create folders
7176 New-Item -ItemType Directory -Force -Path "package"
7277 New-Item -ItemType Directory -Force -Path "package-debug"
73-
78+
7479 # Copy binaries
7580 Copy-Item "binaries/*" "package/" -Recurse -Exclude "*.pdb"
7681 Copy-Item "binaries/*" "package-debug/" -Recurse
77-
82+
7883 # Copy documentation
7984 Copy-Item "Install/Win32/Readme.txt" "package/"
8085 Copy-Item "Install/IDPLicense.txt" "package/"
8186 Copy-Item "Install/Win32/Readme.txt" "package-debug/"
8287 Copy-Item "Install/IDPLicense.txt" "package-debug/"
83-
88+
8489 # Create zip files
8590 Compress-Archive -Path "package/*" -DestinationPath "firebird-odbc-windows-${{ matrix.arch }}-${{ github.ref_name }}.zip"
8691 Compress-Archive -Path "package-debug/*" -DestinationPath "firebird-odbc-windows-${{ matrix.arch }}-${{ github.ref_name }}-with-debug-symbols.zip"
@@ -147,17 +152,17 @@ jobs:
147152 cd Install/Win32
148153 $hhcPath = "C:/Program Files (x86)/HTML Help Workshop/hhc.exe"
149154 Write-Host "Compiling help file '../HtmlHelp/OdbcJdbc.hhp' using $hhcPath..."
150-
155+
151156 # HTML Help Compiler returns exit code 1 even on success, so we need to handle this.
152-
157+
153158 # Run the HTML Help Compiler and capture the result
154159 $result = & $hhcPath "../HtmlHelp/OdbcJdbc.hhp" 2>&1
155160 $hhcExitCode = $LASTEXITCODE
156-
161+
157162 Write-Host "HTML Help Compiler output:"
158163 Write-Host $result
159164 Write-Host "HTML Help Compiler exit code: $hhcExitCode"
160-
165+
161166 # Check if the compilation was successful by verifying the output file exists
162167 $chmFile = "../HtmlHelp/FirebirdODBC.chm"
163168 if (Test-Path $chmFile) {
@@ -172,9 +177,9 @@ jobs:
172177 - name : Compile Inno Setup Script (${{ matrix.arch }})
173178 run : |
174179 cd Install/Win32
175-
180+
176181 $finalInstallerBaseName = "firebird-odbc-windows-${{ matrix.arch }}-installer-${{ github.ref_name }}"
177-
182+
178183 $appVersion = "${{ github.ref_name }}"
179184 $platformDefine = "${{ matrix.platform }}"
180185
@@ -198,6 +203,7 @@ jobs:
198203 if-no-files-found : error
199204
200205 build-linux :
206+ if : ${{ github.repository == 'FirebirdSQL/firebird-odbc-driver' }}
201207 runs-on : ${{ matrix.runner }}
202208 strategy :
203209 fail-fast : false
0 commit comments