Skip to content

Commit

Permalink
Merge pull request #59 from altmp/combined-repo
Browse files Browse the repository at this point in the history
Merged v8-helpers/client-js/js-module repos

Former-commit-id: 0b1803e
  • Loading branch information
vadzz-dev authored Sep 11, 2021
2 parents 0033deb + a550b02 commit 16774ae
Show file tree
Hide file tree
Showing 294 changed files with 14,593 additions and 132 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build & deploy
name: Build & deploy server
on:
push:
branches-ignore:
Expand Down Expand Up @@ -30,6 +30,7 @@ jobs:
- name: Build
shell: cmd
run: |
cd server
mkdir build
pushd build
cmake -G"Visual Studio 16" -A x64 -DJS_MODULE_VERSION=%VERSION% ..
Expand All @@ -44,7 +45,7 @@ jobs:
- uses: actions/upload-artifact@v2
with:
name: js-module-windows
path: ./dist/
path: ./server/dist/

build-linux:
name: Build linux release
Expand All @@ -66,6 +67,7 @@ jobs:
- name: Build
run: |
cd server
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-8 g++-8
Expand All @@ -82,7 +84,7 @@ jobs:
- uses: actions/upload-artifact@v2
with:
name: js-module-linux
path: ./dist/
path: ./server/dist/

deploy-cdn:
name: Deploy release to alt:V CDN
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/test-client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test client changes
on:
push:
paths:
- "client/**"
pull_request:
paths:
- "client/**"

env:
BUILD_TYPE: Release

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2

- name: Fetch Submodules
shell: bash
run: |
git submodule init
git submodule update
- name: Generate
shell: bash
run: |
cd client
cmake . -BBUILD
- name: Build
shell: bash
run: |
cd client
cmake --build BUILD --config $BUILD_TYPE
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Test changes
on: [pull_request]
name: Test server changes
on:
push:
paths:
- "server/**"
pull_request:
paths:
- "server/**"

jobs:
test-windows:
Expand All @@ -15,6 +21,7 @@ jobs:
- name: Build
shell: cmd
run: |
cd server
mkdir build
pushd build
cmake -G"Visual Studio 16" -A x64 ..
Expand All @@ -35,6 +42,7 @@ jobs:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-8 g++-8
cd server
mkdir build-linux && cd build-linux
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++-8 ..
cmake --build . --config Release
7 changes: 2 additions & 5 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "src/helpers"]
path = src/helpers
url = https://github.com/altmp/v8-helpers.git
[submodule "src/cpp-sdk"]
path = src/cpp-sdk
[submodule "shared/deps/cpp-sdk"]
path = shared/deps/cpp-sdk
url = https://github.com/altmp/cpp-sdk.git
20 changes: 20 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"configurations": [
{
"name": "Win32 Static",
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE",
"ALT_CLIENT_API",
"ALT_CLIENT",
"ALT_SERVER_API",
"ALT_SERVER"
],
"windowsSdkVersion": "10.0.19041.0",
"cppStandard": "c++17",
"intelliSenseMode": "msvc-x64"
}
],
"version": 4
}
14 changes: 14 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(Windows) Attach",
"type": "cppvsdbg",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}
81 changes: 81 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"files.associations": {
"algorithm": "cpp",
"array": "cpp",
"atomic": "cpp",
"cctype": "cpp",
"chrono": "cpp",
"cmath": "cpp",
"codecvt": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"exception": "cpp",
"filesystem": "cpp",
"fstream": "cpp",
"functional": "cpp",
"initializer_list": "cpp",
"iomanip": "cpp",
"ios": "cpp",
"iosfwd": "cpp",
"iostream": "cpp",
"istream": "cpp",
"iterator": "cpp",
"limits": "cpp",
"list": "cpp",
"locale": "cpp",
"map": "cpp",
"memory": "cpp",
"mutex": "cpp",
"new": "cpp",
"ostream": "cpp",
"ratio": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"string": "cpp",
"system_error": "cpp",
"thread": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"typeinfo": "cpp",
"unordered_map": "cpp",
"unordered_set": "cpp",
"utility": "cpp",
"vector": "cpp",
"xfacet": "cpp",
"xhash": "cpp",
"xiosbase": "cpp",
"xlocale": "cpp",
"xlocbuf": "cpp",
"xlocinfo": "cpp",
"xlocmes": "cpp",
"xlocmon": "cpp",
"xlocnum": "cpp",
"xloctime": "cpp",
"xmemory": "cpp",
"xmemory0": "cpp",
"xstddef": "cpp",
"xstring": "cpp",
"xtr1common": "cpp",
"xtree": "cpp",
"xutility": "cpp",
"deque": "cpp",
"queue": "cpp",
"sstream": "cpp",
"compare": "cpp",
"concepts": "cpp",
"condition_variable": "cpp",
"set": "cpp",
"bit": "cpp",
"charconv": "cpp",
"clocale": "cpp",
"format": "cpp",
"forward_list": "cpp",
"optional": "cpp",
"stop_token": "cpp"
}
}
30 changes: 30 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Build client",
"type": "shell",
"command": "cd client && build-debug.bat",
"problemMatcher": ["$msCompile"],
"group": {
"kind": "build",
"isDefault": true
},
},
{
"label": "Build server",
"type": "shell",
"command": "cd server && ./build",
"windows": {
"command": "cd server && build.bat"
},
"problemMatcher": ["$msCompile"],
"group": {
"kind": "build",
"isDefault": true
},
}
]
}
11 changes: 11 additions & 0 deletions client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Build files
BUILD/
deps/v8/
dist/

# Editors
.vs/
.vscode/settings.json

# Extra
tools/extra.bat
Loading

0 comments on commit 16774ae

Please sign in to comment.