Skip to content

Commit

Permalink
some progress
Browse files Browse the repository at this point in the history
  • Loading branch information
gafferongames committed Dec 24, 2023
1 parent 329d1c6 commit fb26300
Show file tree
Hide file tree
Showing 5 changed files with 395 additions and 13 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ jobs:

## Linux & MacOS-specific build steps
# Build with premake + make
- name: Build (gmake2)
- name: Build (gmake)
if: runner.os != 'Windows'
run: |
premake5 gmake2
premake5 gmake
make clean
make all config=${{ matrix.configuration }}_x64
make all config=${{ matrix.configuration }}
# Run the tests with sh syntax
- name: Test (gmake2)
- name: Test (gmake)
if: runner.os != 'Windows'
run: ./bin/test

Expand All @@ -91,4 +91,5 @@ jobs:
# Run the tests with Powershell syntax
- name: Test (vs2019)
if: runner.os == 'Windows'
run: "& ./bin/x64/${{ matrix.configuration }}/test.exe"
run: "& ./bin/${{ matrix.configuration }}/test.exe"

2 changes: 1 addition & 1 deletion BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ On Linux, depending on your particular distribution there may be prebuilt packag

Now go to the command line under the yojimbo directory and enter:

premake5 gmake2
premake5 gmake

This creates makefiles which you can use to build the source via:

Expand Down
6 changes: 3 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN wget https://github.com/jedisct1/libsodium/releases/download/1.0.16/libsodiu
tar -zxvf libsodium-*.tar.gz && \
cd libsodium-* && \
./configure && \
make -j32 && make check && \
make -j && make check && \
make install && \
cd .. && \
rm -rf libsodium* && \
Expand All @@ -25,12 +25,12 @@ RUN wget https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.13.0.tar.gz && \
tar -zxvf mbedtls-*.tar.gz && \
cd mbedtls-mbedtls-* && \
cmake . && \
make -j32 && make install && \
make -j && make install && \
ldconfig

ADD yojimbo /app/yojimbo

RUN cd yojimbo && find . -exec touch {} \; && premake5 gmake && make -j32 test server config=release_x64 && ./bin/test && cp /app/yojimbo/bin/* /app && rm -rf yojimbo
RUN cd yojimbo && find . -exec touch {} \; && premake5 gmake && make -j test server config=release && ./bin/test && cp /app/yojimbo/bin/* /app && rm -rf yojimbo

ENTRYPOINT ./test && ./server

Expand Down
Loading

0 comments on commit fb26300

Please sign in to comment.