diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8cc968a..526bf57 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,3 +31,8 @@ jobs: - run: cpack working-directory: ./build/ninja-${{ matrix.arch }} + + - uses: actions/upload-artifact@main + with: + name: comon-${{ matrix.arch }} + path: build/ninja-${{ matrix.arch }}/comon-*.zip \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 9491799..2b2431c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,14 @@ cmake_minimum_required(VERSION 3.22) set(VCPKG_INSTALLED_DIR "${CMAKE_BINARY_DIR}/vcpkg_installed") -project(comon VERSION 1.0.0) +project(comon) +set(CMAKE_PROJECT_VERSION_MAJOR 1) +set(CMAKE_PROJECT_VERSION_MINOR 0) +if (DEFINED ENV{GITHUB_RUN_NUMBER}) + set(CMAKE_PROJECT_VERSION_PATCH $ENV{GITHUB_RUN_NUMBER}) +else() + set(CMAKE_PROJECT_VERSION_PATCH 0) +endif() add_compile_definitions(UNICODE)