20 Commits

Author SHA1 Message Date
911fe7cc10 pyth
Some checks failed
Linux arm64 / Build (push) Has been cancelled
2024-02-24 18:00:53 +01:00
a6a71cb487 no
Some checks failed
Linux arm64 / Build (push) Has been cancelled
2024-02-24 17:56:29 +01:00
3e8cf5e290 yesy esd
All checks were successful
Linux arm64 / Build (push) Successful in 2m6s
2024-02-24 17:53:54 +01:00
c62f114087 aaa
All checks were successful
Linux arm64 / Build (push) Successful in 11m36s
2024-02-24 17:41:50 +01:00
237c6d9981 frgh
Some checks failed
Linux arm64 / Build (push) Has been cancelled
2024-02-24 17:40:04 +01:00
ece20e0e1f qzdfg
Some checks failed
Linux arm64 / Build (push) Has been cancelled
2024-02-24 17:38:11 +01:00
3eecfa7df1 sdfg
Some checks failed
Linux arm64 / Build (push) Has been cancelled
2024-02-24 17:36:05 +01:00
80bdf130dc action: fix package
All checks were successful
Linux arm64 / Build (push) Successful in 2m11s
2024-02-24 17:32:13 +01:00
4338fd3895 action: change defaut apt package
Some checks failed
Linux arm64 / Build (push) Failing after 16s
2024-02-24 17:31:42 +01:00
3a334b3227 action: cache build
All checks were successful
Linux arm64 / Build (push) Successful in 10m9s
2024-02-24 17:21:00 +01:00
186ca76345 action: gl
All checks were successful
Linux arm64 / Build (push) Successful in 2m28s
2024-02-24 16:23:16 +01:00
da3439cc03 action: bbbbbbbbbbb
Some checks failed
Linux arm64 / Build (push) Has been cancelled
2024-02-24 16:20:23 +01:00
5a1f71e5c0 action: gl
Some checks failed
Linux arm64 / Build (push) Has been cancelled
2024-02-24 16:19:38 +01:00
93d587d463 action: aaaaaaaaa
Some checks are pending
Linux arm64 / Build (push) Waiting to run
2024-02-24 16:18:49 +01:00
bad65f89d0 action: fix cache
Some checks failed
Linux arm64 / Build (push) Has been cancelled
2024-02-24 16:04:25 +01:00
3c04810496 action: test
Some checks failed
Linux arm64 / Build (push) Has been cancelled
2024-02-24 15:44:48 +01:00
ec538c1783 action: don't install apt
Some checks failed
Linux arm64 / Build (push) Has been cancelled
2024-02-24 15:26:04 +01:00
01bd4621b3 action: apt update
Some checks failed
Linux arm64 / Build (push) Failing after 34s
2024-02-24 13:22:27 +01:00
2ef4f091f1 action: fix file
Some checks failed
Linux arm64 / Build (push) Failing after 3m18s
2024-02-24 13:15:07 +01:00
bc4e1f1f35 action: cache apt packages
Some checks failed
Linux arm64 / Build (push) Failing after 0s
2024-02-24 13:13:51 +01:00
7 changed files with 22 additions and 44 deletions

View File

@@ -5,36 +5,35 @@ on: [push]
jobs: jobs:
Build: Build:
runs-on: ubuntu-latest runs-on: ubuntu-test
steps: steps:
- name: Install deps - run: ls -la
run : |
apt update
apt install -y libsdl2-dev libglew-dev
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Prepare XMake - name: Install opengl
run: |
apt update
apt install libgl1-mesa-dev python3.11-full -y
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.xmake
./build
./.xmake
key: 'ubuntu'
- name: Prepare Xmake
uses: xmake-io/github-action-setup-xmake@v1 uses: xmake-io/github-action-setup-xmake@v1
with: with:
xmake-version: latest xmake-version: latest
actions-cache-folder: '.xmake-cache' actions-cache-folder: '.xmake-cache'
actions-cache-key: 'xmake-ubuntu' actions-cache-key: 'ubuntu'
- name: Calc deps hash - run: ls -la
uses: seepine/hash-files@v1
id: get-hash
with:
patterns: |
**/xmake.lua
**/xmake/*.lua
- name: Packages cache
uses: actions/cache@v4
with:
path: ~/.xmake
key: ${{ runner.os }}-${{ steps.get-hash.outputs.hash }}
- name: XMake config - name: XMake config
run: xmake f -p linux -y --root run: xmake f -p linux -y --root
@@ -43,4 +42,4 @@ jobs:
run: xmake --root run: xmake --root
- name: Test - name: Test
run: xmake test --root run: xmake test --root

View File

@@ -1,18 +0,0 @@
# TowerDefense
Unmaintained multiplayer tower defense game prototype
(OpenGL + TCP)
## Screenshots 🖼
[[screenshots/game.png]]
## Build ⚙️
```
xmake
```
## Run 🏃
```
xmake run
```

View File

@@ -5,7 +5,6 @@
#include <cstring> #include <cstring>
#include <cassert> #include <cassert>
#include <string> #include <string>
#include <cstdint>
namespace td { namespace td {

View File

@@ -4,7 +4,6 @@
#include <string> #include <string>
#include <iosfwd> #include <iosfwd>
#include <vector> #include <vector>
#include <cstdint>
namespace td { namespace td {
namespace network { namespace network {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 165 KiB

View File

@@ -6,7 +6,6 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include <algorithm>
#include "client/render/Renderer.h" #include "client/render/Renderer.h"
#include "client/render/GL.h" #include "client/render/GL.h"

View File

@@ -1,7 +1,7 @@
add_rules("mode.debug", "mode.release") add_rules("mode.debug", "mode.release")
add_defines("TD_IMPL_OPENGL_LOADER_GLEW") add_defines("TD_IMPL_OPENGL_LOADER_GLEW")
add_requires("libsdl2", "zlib", "glew") add_requires("libsdl >= 2", "zlib", "glew")
set_languages("c++17") set_languages("c++17")
@@ -63,7 +63,7 @@ target("TowerDefenseClient")
add_files("src/ClientMain.cpp", "src/client/**.cpp") add_files("src/ClientMain.cpp", "src/client/**.cpp")
add_includedirs("include") add_includedirs("include")
add_packages("libsdl2", "glew", "opengl") add_packages("libsdl", "glew", "opengl")
-- run windows program with wine on linux -- run windows program with wine on linux
if is_host("linux") and is_os("windows") then if is_host("linux") and is_os("windows") then