Skip to content

Commit

Permalink
Add packaging for .tar.gz and release 0.15.1 (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro authored Jan 10, 2023
1 parent 66c4e47 commit cbd69a1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ jobs:
run: |
mkdir -p build
cd build
cmake -DYCM_MAINTAINER_MODE:BOOL=ON -DCPACK_BINARY_DEB:BOOL=ON -DCPACK_DEBIAN_PACKAGE_DEPENDS="cmake" \
cmake -DYCM_MAINTAINER_MODE:BOOL=ON -DCPACK_BINARY_TGZ:BOOL=ON -DCPACK_BINARY_DEB:BOOL=ON -DCPACK_DEBIAN_PACKAGE_DEPENDS="cmake" \
-DCPACK_DEBIAN_PACKAGE_NAME="ycm-cmake-modules" -DCPACK_DEBIAN_PACKAGE_MAINTAINER="Silvio Traversaro" ..
make
make package
rename 's/YCM/ycm-cmake-modules/' YCM-*-all.deb
rename 's/YCM/ycm-cmake-modules/' YCM-*-all.tar.gz
export YCM_VERSION=`ls ycm-cmake-modules-*-all.deb | cut -d - -f 4`
echo "YCM_VERSION=$YCM_VERSION" >> ${GITHUB_ENV}
Expand All @@ -50,3 +51,14 @@ jobs:
asset_path: build/ycm-cmake-modules-${{ env.YCM_VERSION }}-all.deb
asset_name: ycm-cmake-modules-${{ env.YCM_VERSION }}-all.deb
asset_content_type: application/octet-stream

- name: Upload .tar.gz package
if: github.event_name == 'release'
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: build/ycm-cmake-modules-${{ env.YCM_VERSION }}-all.tar.gz
asset_name: ycm-cmake-modules-${{ env.YCM_VERSION }}-all.tar.gz
asset_content_type: application/octet-stream
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased Patch]

## [0.15.1] - 2023-01-10

### Added

* Added packaging for .tar.gz archives (https://github.com/robotology/ycm/pull/425).


## [0.15.0] - 2023-01-10

### Added
Expand Down
2 changes: 1 addition & 1 deletion internal-modules/YCMVersion.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ include(GitInfo)

set(YCM_VERSION_MAJOR 0)
set(YCM_VERSION_MINOR 15)
set(YCM_VERSION_PATCH 0)
set(YCM_VERSION_PATCH 1)

set(YCM_VERSION_API "${YCM_VERSION_MAJOR}.${YCM_VERSION_MINOR}")
set(YCM_VERSION_SHORT "${YCM_VERSION_MAJOR}.${YCM_VERSION_MINOR}.${YCM_VERSION_PATCH}")
Expand Down

0 comments on commit cbd69a1

Please sign in to comment.