Skip to content

Commit

Permalink
fix: Attempt to fix release assets and debug cmake issue
Browse files Browse the repository at this point in the history
  • Loading branch information
alinalihassan committed Aug 26, 2022
1 parent 02c1201 commit 52fb330
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ jobs:
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}} --rerun-failed --output-on-failure


# Artifact binaries still not working properly
- name: Package Artifact
working-directory: ${{github.workspace}}/build
Expand Down Expand Up @@ -121,11 +120,20 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Download Artifact
if: steps.semantic.outputs.new_release_published == 'true'
uses: actions/download-artifact@v3
with:
name: lesma

- uses: AButler/[email protected]
- name: Create Release
if: steps.semantic.outputs.new_release_published == 'true'
uses: softprops/action-gh-release@v1
with:
files: '*.tar.gz;*.sh'
repo-token: ${{ secrets.GITHUB_TOKEN }}
files: |
"*.tar.gz"
"*.sh"
# - name: Upload Release Assets
# uses: AButler/[email protected]
# with:
# files: '*.tar.gz;*.sh'
# repo-token: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ execute_process(
COMMAND ${GIT_EXECUTABLE} describe --tag --abbrev=0
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE LESMA_TAG
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
OUTPUT_STRIP_TRAILING_WHITESPACE)

message(STATUS "Git: ${GIT_EXECUTABLE}")
message(STATUS "VERSION TAG: ${LESMA_TAG}")

string(REPLACE v "" LESMA_VERSION "${LESMA_TAG}")
Expand Down

0 comments on commit 52fb330

Please sign in to comment.