Compare commits
3 Commits
master
...
doc-action
| Author | SHA1 | Date | |
|---|---|---|---|
| 01b4d39f84 | |||
| 155c81fa37 | |||
| dbdb650992 |
@@ -1,5 +1,5 @@
|
||||
name: Linux arm64
|
||||
run-name: Build And Test
|
||||
run-name: Build And Test Code
|
||||
|
||||
on: [push]
|
||||
|
||||
@@ -15,26 +15,21 @@ jobs:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Prepare XMake
|
||||
uses: xmake-io/github-action-setup-xmake@v1
|
||||
with:
|
||||
xmake-version: latest
|
||||
actions-cache-folder: '.xmake-cache'
|
||||
actions-cache-key: 'xmake-ubuntu'
|
||||
|
||||
- name: Calc deps hash
|
||||
uses: seepine/hash-files@v1
|
||||
id: get-hash
|
||||
with:
|
||||
patterns: |
|
||||
**/xmake.lua
|
||||
**/xmake/*.lua
|
||||
|
||||
- name: Packages cache
|
||||
- name: Cache Build
|
||||
id: cache-build
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.xmake
|
||||
key: ${{ runner.os }}-${{ steps.get-hash.outputs.hash }}
|
||||
path: |
|
||||
'build'
|
||||
'.xmake'
|
||||
key: ${{ runner.os }}-td
|
||||
|
||||
- name: Prepare Xmake
|
||||
uses: xmake-io/github-action-setup-xmake@v1
|
||||
with:
|
||||
xmake-version: branch@master
|
||||
actions-cache-folder: '.xmake-cache'
|
||||
actions-cache-key: 'ubuntu'
|
||||
|
||||
- name: XMake config
|
||||
run: xmake f -p linux -y --root
|
||||
|
||||
18
README.md
18
README.md
@@ -1,18 +0,0 @@
|
||||
# TowerDefense
|
||||
|
||||
Unmaintained multiplayer tower defense game prototype
|
||||
(OpenGL + TCP)
|
||||
|
||||
## Screenshots 🖼
|
||||
|
||||
[[screenshots/game.png]]
|
||||
|
||||
## Build ⚙️
|
||||
```
|
||||
xmake
|
||||
```
|
||||
|
||||
## Run 🏃
|
||||
```
|
||||
xmake run
|
||||
```
|
||||
@@ -5,7 +5,6 @@
|
||||
#include <cstring>
|
||||
#include <cassert>
|
||||
#include <string>
|
||||
#include <cstdint>
|
||||
|
||||
namespace td {
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#include <string>
|
||||
#include <iosfwd>
|
||||
#include <vector>
|
||||
#include <cstdint>
|
||||
|
||||
namespace td {
|
||||
namespace network {
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 165 KiB |
@@ -6,7 +6,6 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <algorithm>
|
||||
|
||||
#include "client/render/Renderer.h"
|
||||
#include "client/render/GL.h"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
add_rules("mode.debug", "mode.release")
|
||||
|
||||
add_defines("TD_IMPL_OPENGL_LOADER_GLEW")
|
||||
add_requires("libsdl2", "zlib", "glew")
|
||||
add_requires("libsdl >= 2", "zlib", "glew")
|
||||
|
||||
set_languages("c++17")
|
||||
|
||||
@@ -63,7 +63,7 @@ target("TowerDefenseClient")
|
||||
add_files("src/ClientMain.cpp", "src/client/**.cpp")
|
||||
add_includedirs("include")
|
||||
|
||||
add_packages("libsdl2", "glew", "opengl")
|
||||
add_packages("libsdl", "glew", "opengl")
|
||||
|
||||
-- run windows program with wine on linux
|
||||
if is_host("linux") and is_os("windows") then
|
||||
|
||||
Reference in New Issue
Block a user