Skip to content

Commit

Permalink
Respect port config in settings, add initial GH Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarWatcher committed Feb 19, 2024
1 parent 6a56ef0 commit 1f5d0d3
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Test workflow
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install deps
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt update && sudo apt upgrade -y
sudo apt install -y libuuid-dev libasio-dev libpq-dev postgresql
python3 -m pip install cmake --break-system-packages
- name: Print environment
run: |
cmake --version
- name: Run build
run: |
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j $(nproc)
#- name: Run test
#run: |
#cd build
#cmake --build . --target test
2 changes: 1 addition & 1 deletion src/hazel/server/Hazel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void HazelCore::run(bool test) {
#ifdef HAZEL_DEBUG
1337
#else
6906
conf.server.port
#endif
);

Expand Down

0 comments on commit 1f5d0d3

Please sign in to comment.