Skip to content

Commit

Permalink
fix artifacts name
Browse files Browse the repository at this point in the history
  • Loading branch information
rigazilla committed Apr 11, 2023
1 parent f6bad32 commit de64b58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cd.yml → .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: infinispan-cpp-client-release-9.3
env:
ISPN_VER: "14.0.4.Final"
ISPN_VER: "14.0.6.Final"
CLIENT_VERSION: ${{ github.event.release.tag_name }}
on:
push:
Expand All @@ -16,7 +16,7 @@ jobs:
- run: echo $GITHUB_REF_NAME
- run: mkdir build && chmod a+rwx . documentation build
- run: podman build -t quay.io/rigazilla/ci-build-centos-8:latest -f ci-build/centos-stream8.Dockerfile .
- run: podman run -v `pwd`:/home/jboss/cpp-client quay.io/rigazilla/ci-build-centos-8:latest /bin/bash -c "cd cpp-client && INFINISPAN_VERSION=14.0.4.Final CLIENT_VERSION=$GITHUB_REF_NAME PLATFORM_TAG=el8 ./build.sh"
- run: podman run -v `pwd`:/home/jboss/cpp-client quay.io/rigazilla/ci-build-centos-8:latest /bin/bash -c "cd cpp-client && INFINISPAN_VERSION=14.0.6.Final CLIENT_VERSION=$GITHUB_REF_NAME PLATFORM_TAG=el8 ./build.sh"
- uses: ncipollo/release-action@v1
with:
artifacts: "build/*.rpm,builddeb/*.deb"
Expand All @@ -31,7 +31,7 @@ jobs:
- run: echo $GITHUB_REF_NAME
- run: mkdir build && chmod a+rwx . documentation build
- run: podman build -t quay.io/rigazilla/ci-build-centos-9:latest -f ci-build/centos-stream9.Dockerfile .
- run: podman run -v `pwd`:/home/jboss/cpp-client quay.io/rigazilla/ci-build-centos-9:latest /bin/bash -c "cd cpp-client && INFINISPAN_VERSION=14.0.4.Final CLIENT_VERSION=$GITHUB_REF_NAME PLATFORM_TAG=el9 ./build.sh"
- run: podman run -v `pwd`:/home/jboss/cpp-client quay.io/rigazilla/ci-build-centos-9:latest /bin/bash -c "cd cpp-client && INFINISPAN_VERSION=14.0.6.Final CLIENT_VERSION=$GITHUB_REF_NAME PLATFORM_TAG=el9 ./build.sh"
- uses: ncipollo/release-action@v1
with:
artifacts: "build/*.rpm,builddeb/*.deb"
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
set PROTOBUF_PROTOC_EXECUTABLE=${{ github.workspace }}\libs\bin\protoc.exe
set PROTOBUF_PROTOC_LIBRARY=${{ github.workspace }}\libs\lib\libprotoc.lib
set PROTOBUF_INCLUDE_DIR=${{ github.workspace }}\libs\include
set INFINISPAN_VERSION=14.0.4.Final
set INFINISPAN_VERSION=14.0.6.Final
set CLIENT_VERSION=%GITHUB_REF_NAME%
build.bat
- uses: ncipollo/release-action@v1
Expand Down
4 changes: 2 additions & 2 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ cd %build_dir%

if [%CLIENT_VERSION%] neq [] set V1=%CLIENT_VERSION:*/=%

for /f "tokens=1,2,3,4 delims=." %%a in ("%V1%") do (
for /f "tokens=1,2,3,4 delims=.-" %%a in ("%V1%") do (
set version_1major=%%a
set version_2minor=%%b
set version_3micro=%%c
Expand All @@ -52,7 +52,7 @@ if 1%version_1major% neq +1%version_1major% set version_1major=0
if 1%version_2minor% neq +1%version_2minor% set version_2minor=1
if 1%version_3micro% neq +1%version_3micro% set version_3micro=0

set version_patch=%version_3micro%.%version_4qualifier%
set version_patch=%version_3micro%-%version_4qualifier%

cmake -G "%~1" -DCPACK_PACKAGE_VERSION_MAJOR="%version_1major%" -DCPACK_PACKAGE_VERSION_MINOR="%version_2minor%" -DCPACK_PACKAGE_VERSION_PATCH="%version_patch%" -DSWIG_EXECUTABLE=%SWIG_EXECUTABLE% -DMVN_PROGRAM=%MVN_PROGRAM% -DPROTOBUF_LIBRARY="%PROTOBUF_LIBRARY%" -DPROTOBUF_PROTOC_LIBRARY="%PROTOBUF_PROTOC_LIBRARY%" -DProtobuf_INCLUDE_DIR="%PROTOBUF_INCLUDE_DIR%" -DPROTOBUF_INCLUDE_DIR="%PROTOBUF_INCLUDE_DIR%" -DPROTOBUF_PROTOC_EXECUTABLE="%PROTOBUF_PROTOC_EXECUTABLE%" -DOPENSSL_ROOT_DIR="%OPENSSL_ROOT_DIR%" ..
if %errorlevel% neq 0 goto fai
Expand Down

0 comments on commit de64b58

Please sign in to comment.