Skip to content

Cross-platform plugin on TCP #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 26 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
91ea6f5
Convert to CMake project
ndelta0 Jul 19, 2021
3ee81a9
Fix build error
ndelta0 Jul 19, 2021
f4908d9
Make library buildable on linux
ndelta0 Jul 19, 2021
fe5d546
Addressing most IDE warnings, suggestions and typos
ndelta0 Jul 19, 2021
dd78337
Use strncpy_s on Windows and strncpy on Linux
ndelta0 Jul 19, 2021
e743a4f
Working telemetry
ndelta0 Jul 19, 2021
3360c15
Merge branch 'master' of https://github.com/RenCloud/scs-sdk-plugin i…
ndelta0 Sep 17, 2021
a1d4779
Create scs_telemetry.cpp.orig
ndelta0 Sep 17, 2021
e67eb27
Merge pull request #3 from ndelta0/RenCloud-master
ndelta0 Sep 17, 2021
10bd3d8
Update CMakeLists.txt
ndelta0 Sep 17, 2021
b44764e
Fixed crash when unloading sdk
ndelta0 Sep 17, 2021
bcebf36
feature: add support for OS X builds
Dec 7, 2021
2c4f045
Merge pull request #4 from alphavector/feture/apple_support
ndelta0 Dec 10, 2021
3479ef8
Added missing semicolon
ndelta0 Dec 10, 2021
977bb06
Removed unnecessary and obsolete docs
ndelta0 Dec 10, 2021
8aecb20
Updated versions
ndelta0 Dec 10, 2021
9315019
Misc changes
ndelta0 Dec 10, 2021
069868c
Better logging
ndelta0 Dec 12, 2021
3bea8c5
Initial action
ndelta0 Jan 15, 2022
ffb08c2
Add multi os support
ndelta0 Jan 15, 2022
8718196
Artifacts
ndelta0 Jan 15, 2022
82c4f9c
Merge pull request #5 from ndelta0/feature/gh_actions
ndelta0 Jan 15, 2022
2ca69a9
Update upload-artifact.yml
ndelta0 Jan 15, 2022
26b03ce
Merge pull request #6 from ndelta0/feature/gh_actions
ndelta0 Jan 15, 2022
3275fa6
Update upload-artifact.yml
ndelta0 Jan 15, 2022
84d3fdb
Cleanup
Mar 13, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 9 additions & 13 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
name: Bug report
about: Create a report to help us improve

---

**Describe the bug**
Expand All @@ -17,19 +16,16 @@ Steps to reproduce the behavior:
**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
**Screenshots/logs**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
For logs, go to game documents folder and find the *.log file

**Information (please complete the following information):**
- OS and version: [e.g. Windows 11 21H2, OS Build 22000.318; Ubuntu 21.10]
- Game version: [e.g. ETS2 1.41, ATS]
- Plugin version: [e.g. 12.0; commit hash]
- Mods used: [List of mods, if any]
- Other information: [e.g. Convoy mode, TruckersMP, other plugins]

**Additional context**
Add any other context about the problem here.
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
name: Feature request
about: Suggest an idea for this project

---

**Is your feature request related to a problem? Please describe.**
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release Artifact Build Test

on:
pull_request:
branches: [ master, dev ]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
name: Telemetry plugin build - ${{matrix.os}}

runs-on: ${{matrix.os}}

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: actions/checkout@v2

- name: Add msbuild to Path
if: ${{ matrix.os == 'windows-latest' }}
uses: microsoft/setup-msbuild@v1.1

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} scs-telemetry

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

60 changes: 60 additions & 0 deletions .github/workflows/upload-artifact.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Release Artifact Upload

on:
push:
branches: [ master, dev ]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
name: Telemetry plugin build - ${{matrix.os}}

runs-on: ${{matrix.os}}

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: actions/checkout@v2

- name: Add msbuild to Path
if: ${{ matrix.os == 'windows-latest' }}
uses: microsoft/setup-msbuild@v1.1

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} scs-telemetry

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

- name: Upload artifact (Ubuntu)
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@v2
with:
name: Linux plugin
path: ${{github.workspace}}/build/libscs-telemetry.so

- name: Upload artifact (MacOS)
if: ${{ matrix.os == 'macos-latest' }}
uses: actions/upload-artifact@v2
with:
name: MacOS plugin
path: ${{github.workspace}}/build/libscs-telemetry.dylib

- name: Upload artifact (Windows)
if: ${{ matrix.os == 'windows-latest' }}
uses: actions/upload-artifact@v2
with:
name: Windows plugin
path: ${{github.workspace}}/build/${{env.BUILD_TYPE}}/scs-telemetry.dll

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
[Dd]ebugPublic/
[Rr]elease/
x64/
build/
**/build/
bld/
[Bb]in/
[Oo]bj/
Expand Down Expand Up @@ -199,6 +199,7 @@ Desktop.ini
$RECYCLE.BIN/

.vs
/scs-telemetry/.idea/


Working Data/
1 change: 0 additions & 1 deletion BuildDocs.cmd

This file was deleted.

75 changes: 0 additions & 75 deletions Config/Comments.txt

This file was deleted.

100 changes: 0 additions & 100 deletions Config/Languages.txt

This file was deleted.

Loading