Skip to content

Commit

Permalink
Merge pull request #11 from thinger-io/develop
Browse files Browse the repository at this point in the history
Release version 1.3.0
  • Loading branch information
bautisflow authored Jun 13, 2024
2 parents 168e670 + 5833cdc commit 77fc8bb
Show file tree
Hide file tree
Showing 9 changed files with 179 additions and 65 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ env:
jobs:

build_version:
runs-on: ubuntu-latest
#runs-on: ubuntu-latest
runs-on: [self-hosted, Linux, X64]

outputs:
version: ${{ steps.version.outputs.version }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get tag version
id : version
Expand All @@ -33,7 +34,8 @@ jobs:
fi
build:
runs-on: ubuntu-latest
#runs-on: ubuntu-latest
runs-on: [self-hosted, Linux, X64]
needs: build_version
strategy:
fail-fast: false # continues with matrix even if an element fails
Expand All @@ -45,7 +47,7 @@ jobs:
steps:

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ needs.build_version.outputs.version }}
Expand All @@ -58,7 +60,7 @@ jobs:
run: cmake --build /build --config ${{ env.BUILD_TYPE }}

- name: Upload build artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ github.event_name == 'release' }}
with:
name: ${{ env.MODULE }}.${{ matrix.architecture }}
Expand All @@ -70,7 +72,8 @@ jobs:

upload_to_release: # when tag is created
if: ${{ github.event_name == 'release' }}
runs-on: ubuntu-latest
#runs-on: ubuntu-latest
runs-on: [self-hosted, Linux, X64]
needs: [build_version, build]
strategy:
fail-fast: false # continues with matrix even if an element fails
Expand All @@ -80,7 +83,7 @@ jobs:
steps:

- name: Download ${{ matrix.architecture }} binary
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ env.MODULE }}.${{ matrix.architecture }}

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:

jobs:
release:
runs-on: ubuntu-latest
#runs-on: ubuntu-latest
runs-on: [self-hosted, Linux, X64]

steps:

Expand All @@ -15,7 +16,7 @@ jobs:
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ env.branch }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:

build:
name: Build
runs-on: ubuntu-22.04
#runs-on: ubuntu-22.04
runs-on: [self-hosted, Linux, X64]
env:
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory # Directory where build-wrapper output will be placed
steps:
Expand Down
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,64 @@
# Changelog

## [1.3.0] - 2024-06-13

### Added

- Support for installing and demonizing client in procd - openwrt systems
- Configuration file path can now be set through program options

### Changed

- Bumped fmt to version 10.2.1
- Bumped spdlog to version 1.14.1

## [1.2.2] - 2023-10-03

### Fix

- Bug in installer not allowing setting of credentials

## [1.2.1] - 2023-10-03

### Changed

- Change module name to thinger\_iotmp

### Fixed

- Installer returning empty device id when network connection set by ppp interface

## [1.2.0] - 2023-09-28

### Added

- Add new THINGER\_STREAMS\_READY state listener
- Install script and service file

## [1.1.0] - 2023-06-28

### Added

- Allow static linking
- Logging with spdlog as alternative to loguru
- Allow compilation into library
- Bin extension in CMakeLists

### Changed

- Move pson/json conversion functions from nlohmann to protoson namespace
- Added option to CMake for enabling Loguru logging library
- Integration of json without the need for httplib

### Removed

- Unmaintained loguru library

## [1.0.0] - 2023-09-03

- First version

[1.3.0]: https://github.com/thinger-io/IOTMP-Linux/compare/1.2.2...1.3.0
[1.2.2]: https://github.com/thinger-io/IOTMP-Linux/compare/1.2.1...1.2.2
[1.2.1]: https://github.com/thinger-io/IOTMP-Linux/compare/1.2.0...1.2.1
[1.2.0]: https://github.com/thinger-io/IOTMP-Linux/compare/1.1.0...1.2.0
Expand Down
9 changes: 5 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ endif()
# set package version
SET(VERSION_MAJOR "1" CACHE STRING "Major version number")
set(VERSION_MINOR "2" CACHE STRING "Minor version number")
set(VERSION_PATCH "0" CACHE STRING "Patch version number")
set(VERSION_PATCH "3" CACHE STRING "Patch version number")

# add version for source code
add_definitions(-DVERSION_MAJOR=${VERSION_MAJOR})
Expand All @@ -34,6 +34,7 @@ include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++17" COMPILER_SUPPORTS_CXX17)
CHECK_CXX_COMPILER_FLAG("-std=c++20" COMPILER_SUPPORTS_CXX20)
if(COMPILER_SUPPORTS_CXX20)
message(STATUS "The compiler ${CMAKE_CXX_COMPILER} is using version C++20.")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20")
elseif(COMPILER_SUPPORTS_CXX17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
Expand Down Expand Up @@ -112,16 +113,16 @@ endif()

include(FetchContent)

# fmt
FetchContent_Declare(fmt URL https://github.com/fmtlib/fmt/releases/download/9.1.0/fmt-9.1.0.zip)
# fmt: required for muslcc
FetchContent_Declare(fmt URL https://github.com/fmtlib/fmt/releases/download/10.2.1/fmt-10.2.1.zip)
FetchContent_MakeAvailable(fmt)
list(APPEND ADDITIONAL_LIBS fmt::fmt)

# spdlog
FetchContent_Declare(
spdlog
GIT_REPOSITORY https://github.com/gabime/spdlog.git
GIT_TAG v1.11.0
GIT_TAG v1.14.1
)
FetchContent_MakeAvailable(spdlog)
add_compile_definitions(SPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_TRACE)
Expand Down
Loading

0 comments on commit 77fc8bb

Please sign in to comment.