Skip to content

Commit

Permalink
Build artifacts for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
lowleveldesign committed May 24, 2022
1 parent 29282cc commit c4e4437
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c4e4437

Please sign in to comment.