-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Client now sends nickname to remote server, and remote server has new /list and /quit commands. Also updated Linux build for server.
- Loading branch information
Showing
17 changed files
with
654 additions
and
275 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
.github/workflows/build-cs2remoteconsole-server-linux.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Build CS2RemoteConsole-server (Linux) | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
paths: | ||
- 'CS2RemoteConsole-server/**' | ||
pull_request: | ||
branches: [ master ] | ||
paths: | ||
- 'CS2RemoteConsole-server/**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-cs2remoteconsole-server-linux: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up GCC | ||
uses: egor-tensin/setup-gcc@v1 | ||
with: | ||
version: latest | ||
platform: x64 | ||
|
||
- name: Build CS2RemoteConsole-server | ||
run: | | ||
cd CS2RemoteConsole-server | ||
make | ||
- name: Prepare artifact directory | ||
run: | | ||
mkdir -p artifact | ||
cp CS2RemoteConsole-server/CS2RemoteConsole-server artifact/ | ||
- name: Verify artifact contents | ||
run: | | ||
echo "Verifying artifact contents:" | ||
ls -l artifact | ||
- name: Upload CS2RemoteConsole-server artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: CS2RemoteConsole-server-linux-build | ||
path: artifact |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
CXX = g++ | ||
CXXFLAGS = -std=c++17 -Wall -Wextra -pedantic | ||
LDFLAGS = -pthread | ||
|
||
SRC_DIR = src | ||
OBJ_DIR = obj | ||
|
||
SOURCES = $(wildcard $(SRC_DIR)/*.cpp) | ||
OBJECTS = $(SOURCES:$(SRC_DIR)/%.cpp=$(OBJ_DIR)/%.o) | ||
|
||
TARGET = CS2RemoteConsole-server | ||
|
||
.PHONY: all clean | ||
|
||
all: $(TARGET) | ||
|
||
$(TARGET): $(OBJECTS) | ||
$(CXX) $(OBJECTS) -o $@ $(LDFLAGS) | ||
|
||
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp | $(OBJ_DIR) | ||
$(CXX) $(CXXFLAGS) -c $< -o $@ | ||
|
||
$(OBJ_DIR): | ||
mkdir -p $@ | ||
|
||
clean: | ||
rm -rf $(OBJ_DIR) $(TARGET) |
Oops, something went wrong.