Skip to content

Commit 78724e1

Browse files
authored
Merge pull request #6 from TypeScriptPlayground/dev
v0.0.3
2 parents 6e97edb + 4b6ccc9 commit 78724e1

28 files changed

+17
-25
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build Binarys
33
on:
44
push:
55
paths:
6-
- 'src/**'
6+
- 'cpp/**'
77
- '.github/workflows/build.yml'
88

99
env:
@@ -28,7 +28,7 @@ jobs:
2828
uses: actions/upload-artifact@v3
2929
with:
3030
name: linux-binary
31-
path: ${{github.workspace}}/build/src/libserialport.so
31+
path: ${{github.workspace}}/build/cpp/libserialport.so
3232

3333
build_windows:
3434
name: Build win64 binaries
@@ -47,7 +47,7 @@ jobs:
4747
uses: actions/upload-artifact@v3
4848
with:
4949
name: windows-binary
50-
path: ${{github.workspace}}\build\src\Release\serialport.dll
50+
path: ${{github.workspace}}\build\cpp\Release\serialport.dll
5151

5252
commit:
5353
needs: [build_windows, build_linux]
@@ -66,13 +66,13 @@ jobs:
6666
path: ${{github.workspace}}/tmp
6767

6868
- name: Create bin folder if it does not exist
69-
run: mkdir -p ${{github.workspace}}/lib/bin
69+
run: mkdir -p ${{github.workspace}}/ts/bin
7070

7171
- name: Move and rename linux binary
72-
run: mv ${{github.workspace}}/tmp/linux-binary/libserialport.so ${{github.workspace}}/lib/bin/linux.so
72+
run: mv ${{github.workspace}}/tmp/linux-binary/libserialport.so ${{github.workspace}}/ts/bin/linux.so
7373

7474
- name: Move and rename windows binary
75-
run: mv ${{github.workspace}}/tmp/windows-binary/serialport.dll ${{github.workspace}}/lib/bin/windows.dll
75+
run: mv ${{github.workspace}}/tmp/windows-binary/serialport.dll ${{github.workspace}}/ts/bin/windows.dll
7676

7777
- name: Configure Git
7878
run: |
@@ -81,7 +81,7 @@ jobs:
8181
8282
- name: Commit binaries
8383
run: |
84-
git add ${{github.workspace}}/lib/bin/*
84+
git add ${{github.workspace}}/ts/bin/*
8585
git diff-index --quiet HEAD || git commit -m "Commited compiled binaries"
8686
8787
- name: Push changes

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
pull_request:
1111
branches: [ "main" ]
1212
paths:
13-
- 'src/**'
13+
- 'cpp/**'
1414
- '.github/workflows/release.yml'
1515

1616
env:
@@ -34,7 +34,7 @@ jobs:
3434
uses: actions/upload-artifact@v3
3535
with:
3636
name: linux-binary
37-
path: ${{github.workspace}}/build/src/libserialport.so
37+
path: ${{github.workspace}}/build/cpp/libserialport.so
3838

3939
build_windows:
4040
runs-on: windows-latest
@@ -52,7 +52,7 @@ jobs:
5252
uses: actions/upload-artifact@v3
5353
with:
5454
name: windows-binary
55-
path: ${{github.workspace}}\build\src\Release\serialport.dll
55+
path: ${{github.workspace}}\build\cpp\Release\serialport.dll
5656

5757
pre-release:
5858
needs: [build_windows, build_linux]
@@ -68,18 +68,18 @@ jobs:
6868
path: ${{github.workspace}}/tmp
6969

7070
- name: Rename linux Binary
71-
run: mv ${{github.workspace}}/tmp/linux-binary/libserialport.so ${{github.workspace}}/lib/bin/linux.so
71+
run: mv ${{github.workspace}}/tmp/linux-binary/libserialport.so ${{github.workspace}}/ts/bin/linux.so
7272

7373
- name: Rename windows Binary
74-
run: mv ${{github.workspace}}/tmp/windows-binary/serialport.dll ${{github.workspace}}/lib/bin/windows.dll
74+
run: mv ${{github.workspace}}/tmp/windows-binary/serialport.dll ${{github.workspace}}/ts/bin/windows.dll
7575

7676
- run: cd ${{github.workspace}}
7777

7878
- name: make .tar.gz file
79-
run: tar -czvf SerialLink-lib.tar.gz ./lib
79+
run: tar -czvf SerialLink-lib.tar.gz ./ts
8080

8181
- name: make .zip
82-
run: zip -r SerialLink-lib.zip ./lib
82+
run: zip -r SerialLink-lib.zip ./ts
8383

8484
- uses: "marvinpinto/action-automatic-releases@latest"
8585
with:

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ project(${PROJECT_N} VERSION 1.0)
66
set(CMAKE_CXX_STANDARD 20)
77
set(CMAKE_CXX_STANDARD_REQUIRED True)
88

9-
add_subdirectory(src)
9+
add_subdirectory(cpp)
1010

1111
target_include_directories(${PROJECT_N} PUBLIC include)

README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
<!-- Badges -->
22
[Build binaries]: https://img.shields.io/github/actions/workflow/status/TypeScriptPlayground/Serial/build.yml?label=Build%20binaries&labelColor=343b42&logo=github&logoColor=959DA5 'Build binaries'
3-
[Release Downloads]: https://img.shields.io/github/downloads/TypeScriptPlayground/Serial/total?label=Downloads%20&labelColor=343b42&logo=docusign&logoColor=959DA5 'Total Release Downloads'
43

54
# Serial
65
[![Build binaries]](https://github.com/TypeScriptPlayground/Serial/actions/workflows/build.yml)
7-
[![Release Downloads]](https://github.com/TypeScriptPlayground/Serial/releases)
86

97
<a href="https://deno.land"><img align="right" src="https://deno.land/logo.svg" height="150px" alt="the deno mascot dinosaur standing in the rain"></a>
108

@@ -26,7 +24,7 @@ This library provides an interface for the communication with serial devices and
2624
- Create multiple serial connections at the same time.
2725
- List available ports and their properties.
2826
- Set timeouts for both reading and writing.
29-
- All functions are async.
27+
- All functions are async (currently not implemented yet).
3028
- Uses no third party modules.
3129
- Works on different operating systems (check [compatibility](#compatibility) for mor info).
3230

@@ -36,12 +34,6 @@ This library provides an interface for the communication with serial devices and
3634
| Windows | Windows 10 (x64) | implemented |
3735
| Linux | Ubuntu Server 22.04 LTS | implemented |
3836

39-
## Possible/Known issues
40-
- What happens if you open multiple connections from the same instance.
41-
- Every function returns the status code although it is previously checked.
42-
- What happens if you async read 2 times directly after each other.
43-
- Linux write currently not working
44-
4537
## Examples - How to use
4638
To use this library you need the following flags to run it:
4739
- `--unstable`

src/CMakeLists.txt renamed to cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ MACRO(header_directories return_list includes_base_folder extention )
2525
ENDMACRO()
2626

2727
# using said macro.
28-
header_directories(INCLUDES ${PROJECT_SOURCE_DIR}/src/include/ h)
28+
header_directories(INCLUDES ${PROJECT_SOURCE_DIR}/cpp/include/ h)
2929

3030
message("src files:")
3131
foreach(file ${SRCS})
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)