Skip to content

Commit 1f5d0d3

Browse files
committed
Respect port config in settings, add initial GH Actions workflow
1 parent 6a56ef0 commit 1f5d0d3

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.github/workflows/build.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Test workflow
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
branches: [ master ]
7+
jobs:
8+
tests:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@main
12+
- uses: actions/setup-python@v5
13+
with:
14+
python-version: '3.12'
15+
- name: Install deps
16+
if: matrix.os == 'ubuntu-latest'
17+
run: |
18+
sudo apt update && sudo apt upgrade -y
19+
sudo apt install -y libuuid-dev libasio-dev libpq-dev postgresql
20+
python3 -m pip install cmake --break-system-packages
21+
- name: Print environment
22+
run: |
23+
cmake --version
24+
- name: Run build
25+
run: |
26+
mkdir build && cd build
27+
cmake .. -DCMAKE_BUILD_TYPE=Release
28+
make -j $(nproc)
29+
#- name: Run test
30+
#run: |
31+
#cd build
32+
#cmake --build . --target test

src/hazel/server/Hazel.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void HazelCore::run(bool test) {
8080
#ifdef HAZEL_DEBUG
8181
1337
8282
#else
83-
6906
83+
conf.server.port
8484
#endif
8585
);
8686

0 commit comments

Comments
 (0)