generated from NikolasK-source/CMAKE_Template
-
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.
Merge pull request #3 from NikolasK-source/main
Release 1.1.0
- Loading branch information
Showing
18 changed files
with
578 additions
and
51 deletions.
There are no files selected for viewing
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,14 @@ | ||
name: clang-format Check | ||
on: [push, pull_request] | ||
jobs: | ||
formatting-check: | ||
name: Formatting Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Run clang-format style check for C/C++/Protobuf programs. | ||
uses: jidicula/[email protected] | ||
with: | ||
clang-format-version: '14' | ||
check-path: 'src' | ||
|
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,43 @@ | ||
name: CMake | ||
|
||
on: | ||
push: | ||
branches: [ "main", "development" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
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 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Init submodules | ||
run: git submodule init | ||
|
||
- name: Update submodules | ||
run: git submodule update | ||
|
||
- 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}} -DCLANG_FORMAT=OFF -DCOMPILER_WARNINGS=OFF | ||
|
||
- name: Build | ||
# Build your program with the given configuration | ||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | ||
|
||
# - name: Test | ||
# working-directory: ${{github.workspace}}/build | ||
# Execute tests defined by the CMake configuration. | ||
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail | ||
# run: ctest -C ${{env.BUILD_TYPE}} | ||
|
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,75 @@ | ||
# For most projects, this workflow file will not need changing; you simply need | ||
# to commit it to your repository. | ||
# | ||
# You may wish to alter this file to override the set of languages analyzed, | ||
# or to provide custom queries or build logic. | ||
# | ||
# ******** NOTE ******** | ||
# We have attempted to detect the languages in your repository. Please check | ||
# the `language` matrix defined below to confirm you have the correct set of | ||
# supported CodeQL languages. | ||
# | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ "main", "development" ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ "main" ] | ||
schedule: | ||
- cron: '32 20 * * 0' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'cpp' ] | ||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] | ||
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
# If you wish to specify custom queries, you can do so here or in a config file. | ||
# By default, queries listed here will override any specified in a config file. | ||
# Prefix the list here with "+" to use these queries and those in the config file. | ||
|
||
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs | ||
# queries: security-extended,security-and-quality | ||
|
||
|
||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | ||
# If this step fails, then you should remove it and run the build manually (see below) | ||
# - name: Autobuild | ||
# uses: github/codeql-action/autobuild@v2 | ||
|
||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun | ||
|
||
# If the Autobuild fails above, remove it and uncomment the following three lines. | ||
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. | ||
|
||
- run: | | ||
echo "Run, Build Application using cmake" | ||
git submodule init | ||
git submodule update | ||
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DCLANG_FORMAT=OFF -DCOMPILER_WARNINGS=OFF | ||
cmake --build ${{github.workspace}}/build --config Release | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 |
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,19 @@ | ||
on: | ||
push: | ||
branches: [release] | ||
name: Flatpak_release | ||
jobs: | ||
flatpak: | ||
name: "Flatpak" | ||
runs-on: ubuntu-latest | ||
container: | ||
image: bilelmoussaoui/flatpak-github-actions:freedesktop-21.08 | ||
options: --privileged | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v4 | ||
name: "Build" | ||
with: | ||
bundle: modbus-tcp-client-shm.flatpak | ||
manifest-path: network.koesling.modbus-tcp-client-shm.yml | ||
cache-key: flatpak-builder-${{ github.sha }} |
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,30 @@ | ||
on: | ||
push: | ||
branches: [ "main", "development" ] | ||
pull_request: | ||
name: Flatpak_test | ||
jobs: | ||
flatpak: | ||
name: "Flatpak" | ||
runs-on: ubuntu-latest | ||
container: | ||
image: bilelmoussaoui/flatpak-github-actions:freedesktop-21.08 | ||
options: --privileged | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Git config | ||
run: git config --global --add safe.directory /__w/modbus_tcp_client_shm/modbus_tcp_client_shm | ||
|
||
- name: Init submodules | ||
run: git submodule init | ||
|
||
- name: Update submodules | ||
run: git submodule update | ||
|
||
- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v4 | ||
name: "Build" | ||
with: | ||
bundle: test_modbus-tcp-client-shm.flatpak | ||
manifest-path: network.koesling.test-modbus-tcp-client-shm.yml | ||
cache-key: flatpak-builder-${{ github.sha }} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[submodule "libs/cxxopts"] | ||
path = libs/cxxopts | ||
url = https://github.com/NikolasK-source/cxxopts.git | ||
url = https://github.com/NikolasK-source/cxxopts.git | ||
[submodule "libs/libmodbus"] | ||
path = libs/libmodbus | ||
url = https://github.com/stephane/libmodbus |
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
Submodule cxxopts
updated
12 files
+24 −0 | .github/workflows/build.yml | |
+44 −0 | .github/workflows/cmake.yml | |
+2 −2 | .gitignore | |
+9 −0 | CHANGELOG.md | |
+2 −0 | CMakeLists.txt | |
+5 −3 | README.md | |
+44 −3 | cmake/cxxopts.cmake | |
+1 −1 | include/CMakeLists.txt | |
+16 −4 | include/cxxopts.hpp | |
+0 −0 | packaging/cxxopts-config.cmake.in | |
+7 −0 | packaging/pkgconfig.pc.in | |
+27 −1 | test/options.cpp |
Submodule libmodbus
updated
8 files
+1 −0 | .github/FUNDING.yml | |
+26 −0 | NEWS | |
+18 −0 | SECURITY.md | |
+2 −2 | configure.ac | |
+1 −2 | doc/libmodbus.txt | |
+3 −0 | src/modbus-rtu.c | |
+2 −2 | src/modbus.c | |
+1 −1 | tests/unit-test-server.c |
2 changes: 1 addition & 1 deletion
2
network.koesling.modbus_tcp_client_shm.yml → network.koesling.modbus-tcp-client-shm.yml
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,25 @@ | ||
id: network.koesling.test-modbus-tcp-client-shm | ||
runtime: org.freedesktop.Platform | ||
runtime-version: '21.08' | ||
sdk: org.freedesktop.Sdk | ||
command: Modbus_TCP_client_shm | ||
finish-args: | ||
- --device=shm | ||
- --share=network | ||
modules: | ||
- name: Modbus_TCP_client_shm | ||
buildsystem: simple | ||
build-commands: | ||
# build | ||
- mkdir build | ||
- cmake -B build . -DCMAKE_BUILD_TYPE=Release -DCLANG_FORMAT=OFF -DCOMPILER_WARNINGS=OFF | ||
- cmake --build build | ||
|
||
# install | ||
- mkdir -p "${FLATPAK_DEST}/bin" | ||
- cp build/Modbus_TCP_client_shm ${FLATPAK_DEST}/bin | ||
- ls -lah ${FLATPAK_DEST} | ||
sources: | ||
- type: dir | ||
path: . | ||
|
Oops, something went wrong.