3 Commits

Author SHA1 Message Date
01b4d39f84 caca
All checks were successful
Linux arm64 / Build (push) Successful in 5m42s
2024-02-10 20:16:33 +01:00
155c81fa37 cache .xmake too
All checks were successful
Linux arm64 / Build (push) Successful in 5m27s
2024-02-10 19:56:37 +01:00
dbdb650992 cache build
All checks were successful
Linux arm64 / Build (push) Successful in 5m50s
2024-02-10 19:41:22 +01:00
7 changed files with 19 additions and 45 deletions

View File

@@ -1,5 +1,5 @@
name: Linux arm64 name: Linux arm64
run-name: Build And Test run-name: Build And Test Code
on: [push] on: [push]
@@ -10,31 +10,26 @@ jobs:
- name: Install deps - name: Install deps
run : | run : |
apt update apt update
apt install -y libsdl2-dev libglew-dev 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: Cache Build
uses: xmake-io/github-action-setup-xmake@v1 id: cache-build
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
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: ~/.xmake path: |
key: ${{ runner.os }}-${{ steps.get-hash.outputs.hash }} '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 - name: XMake config
run: xmake f -p linux -y --root run: xmake f -p linux -y --root
@@ -43,4 +38,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