5858 run : |
5959 sudo apt-get update
6060 sudo apt-get install --no-install-recommends -y \
61+ autoconf \
62+ autoconf-archive \
63+ automake \
64+ libtool \
65+ libtool-bin \
6166 doxygen \
6267 graphviz \
6368 ninja-build \
@@ -73,27 +78,38 @@ jobs:
7378
7479 - name : Configure Firebird
7580 run : |
76- {
77- echo "FIREBIRD=/opt/firebird"
78- echo "FIREBIRD_LOCK=${RUNNER_TEMP}"
79- echo "LD_LIBRARY_PATH=/opt/firebird/lib:${LD_LIBRARY_PATH}"
80- } >> "$GITHUB_ENV"
81+ sudo systemctl stop firebird
82+ echo "alter user SYSDBA password 'masterkey';" | \
83+ sudo /opt/firebird/bin/isql employee -user SYSDBA -q
84+ sudo systemctl start firebird
8185
8286 - name : Bootstrap vcpkg
8387 run : |
8488 ./vcpkg/bootstrap-vcpkg.sh -disableMetrics
8589
8690 - name : Configure CMake
8791 run : |
88- cmake -S . -B build/Release -DCMAKE_BUILD_TYPE=Release -G Ninja
92+ ./gen-linux-x64-release.sh
93+
94+ - name : Upload vcpkg failure logs
95+ if : failure()
96+ uses : actions/upload-artifact@v4
97+ with :
98+ name : vcpkg-logs-${{ github.job }}
99+ path : vcpkg/buildtrees/**/*.log
100+ if-no-files-found : ignore
89101
90102 - name : Build Release targets
91103 run : |
92104 cmake --build build/Release
93105
94106 - name : Run tests
95107 run : |
96- ./build/Release/out/bin/fb-cpp-test --log_level=all
108+ export ISC_USER=sysdba
109+ export ISC_PASSWORD=masterkey
110+ export FBCPP_TEST_SERVER=localhost
111+ export FBCPP_TEST_DIR=/tmp
112+ ./build/Release/out/bin/fb-cpp-test
97113
98114 - name : Build documentation
99115 run : |
@@ -136,7 +152,14 @@ jobs:
136152 - name : Configure Firebird
137153 shell : cmd
138154 run : |
139- echo C:\Firebird>>%GITHUB_PATH%
155+ echo create user SYSDBA password 'masterkey'; ^
156+ | "C:\Firebird\isql.exe" employee -user SYSDBA -q
157+
158+ - name : Start Firebird Server
159+ shell : cmd
160+ working-directory : C:\Firebird
161+ run : |
162+ call install_service.bat
140163
141164 - name : Bootstrap vcpkg
142165 shell : cmd
@@ -146,7 +169,15 @@ jobs:
146169 - name : Configure CMake
147170 shell : cmd
148171 run : |
149- cmake -S . -B build -G "Visual Studio 17 2022"
172+ .\gen-windows.bat
173+
174+ - name : Upload vcpkg failure logs
175+ if : failure()
176+ uses : actions/upload-artifact@v4
177+ with :
178+ name : vcpkg-logs-${{ github.job }}
179+ path : vcpkg/buildtrees/**/*.log
180+ if-no-files-found : ignore
150181
151182 - name : Build Release targets
152183 shell : cmd
@@ -156,6 +187,9 @@ jobs:
156187 - name : Run tests
157188 shell : cmd
158189 run : |
190+ set ISC_USER=sysdba
191+ set ISC_PASSWORD=masterkey
192+ set FBCPP_TEST_SERVER=localhost
159193 build\out\bin\Release\fb-cpp-test.exe
160194
161195 build-macos :
@@ -179,6 +213,14 @@ jobs:
179213 restore-keys : |
180214 ${{ runner.os }}-vcpkg-
181215
216+ - name : Install system dependencies
217+ run : |
218+ brew install \
219+ autoconf \
220+ autoconf-archive \
221+ automake \
222+ libtool
223+
182224 - name : Install Firebird
183225 run : |
184226 wget -nv -O Firebird-5.0.3.1683-0-macos-arm64.pkg \
@@ -187,28 +229,37 @@ jobs:
187229
188230 - name : Configure Firebird
189231 run : |
190- {
191- echo "FIREBIRD_LOCK=${RUNNER_TEMP}"
192- echo "DYLD_LIBRARY_PATH=/Library/Frameworks/Firebird.framework/Resources/lib:${DYLD_LIBRARY_PATH}"
193- echo "ISC_USER=sysdba"
194- echo "ISC_PASSWORD=masterkey"
195- } >> "$GITHUB_ENV"
232+ sudo launchctl unload /Library/LaunchDaemons/org.firebird.gds.plist
233+ echo "alter user SYSDBA password 'masterkey';" | \
234+ sudo /Library/Frameworks/Firebird.framework/Versions/A/Resources/bin/isql employee -user SYSDBA -q
235+ sudo launchctl load /Library/LaunchDaemons/org.firebird.gds.plist
196236
197237 - name : Bootstrap vcpkg
198238 run : |
199239 ./vcpkg/bootstrap-vcpkg.sh -disableMetrics
200240
201241 - name : Configure CMake
202242 run : |
203- cmake -S . -B build/Release -DCMAKE_BUILD_TYPE=Release -G Ninja
243+ ./gen-osx-arm64-release.sh
244+
245+ - name : Upload vcpkg failure logs
246+ if : failure()
247+ uses : actions/upload-artifact@v4
248+ with :
249+ name : vcpkg-logs-${{ github.job }}
250+ path : vcpkg/buildtrees/**/*.log
251+ if-no-files-found : ignore
204252
205253 - name : Build Release targets
206254 run : |
207255 cmake --build build/Release
208256
209257 - name : Run tests
210258 run : |
211- ./build/Release/out/bin/fb-cpp-test --log_level=all
259+ export ISC_USER=sysdba
260+ export ISC_PASSWORD=masterkey
261+ export FBCPP_TEST_SERVER=localhost
262+ ./build/Release/out/bin/fb-cpp-test
212263
213264 deploy-docs :
214265 runs-on : ubuntu-latest
0 commit comments