From b9d417eaad7f46b771e39b381753323f91a9058a Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Mon, 3 Jun 2024 13:40:29 -0400 Subject: [PATCH] v0.1.0 Signed-off-by: Juan Cruz Viotti --- .github/workflows/package.yml | 18 +++++++++++++++++- CMakeLists.txt | 2 +- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 18ab8c3c..f0876acb 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -4,6 +4,8 @@ on: push: branches: - main + tags: + - "v*.*.*" concurrency: group: ${{ github.workflow }} @@ -50,7 +52,9 @@ jobs: run: choco install shellcheck - run: cmake --version - - name: Configure JSON Schema + + - name: Configure JSON Schema (Continuous) + if: github.ref_type == 'branch' run: > cmake -S . -B ./build -DCMAKE_BUILD_TYPE:STRING=Release @@ -59,6 +63,18 @@ jobs: -DJSONSCHEMA_CONTINUOUS:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=OFF -DCMAKE_COMPILE_WARNING_AS_ERROR:BOOL=ON + + - name: Configure JSON Schema (Release) + if: github.ref_type == 'tag' + run: > + cmake -S . -B ./build + -DCMAKE_BUILD_TYPE:STRING=Release + -DJSONSCHEMA_TESTS:BOOL=ON + -DJSONSCHEMA_TESTS_CI:BOOL=ON + -DJSONSCHEMA_CONTINUOUS:BOOL=OFF + -DBUILD_SHARED_LIBS:BOOL=OFF + -DCMAKE_COMPILE_WARNING_AS_ERROR:BOOL=ON + - run: cmake --build ./build --config Release --parallel 4 - run: > cmake --install ./build --prefix ./build/dist --config Release --verbose diff --git a/CMakeLists.txt b/CMakeLists.txt index 8738062c..798bbe3d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.22) -project(jsonschema VERSION 0.0.1 LANGUAGES CXX) +project(jsonschema VERSION 0.1.0 LANGUAGES CXX) list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake") include(vendor/noa/cmake/noa.cmake) include(cmake/CompilerOptions.cmake)