Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
folmos-at-orange committed Aug 24, 2023
1 parent 5a3bf39 commit 27be9d6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pack-nsis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
/DKHIOPS_VIZ_INSTALLER_PATH=.\nsis-requirements\${{ needs.retrieve-nsis-requirements.outputs.khiops-viz-filename }} `
/DKHIOPS_COVIZ_INSTALLER_PATH=.\nsis-requirements\${{ needs.retrieve-nsis-requirements.outputs.khiops-coviz-filename }} `
khiops.nsi
- name: Upload installer as artifact
- name: Upload installer as an artifact
uses: actions/[email protected]
with:
name: khiops-installer
Expand Down
14 changes: 14 additions & 0 deletions scripts/khiops-version
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#! /usr/bin/env bash
set -euo pipefail

# Obtain the khiops repo location
SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
KHIOPS_REPO_DIR=$(dirname "$SCRIPT_DIR")

# Get the version
# - Get the version definition line in the KWKhiopsVersion.h file
# - Get the third token, it should be something like str(10.1.1)
# - Extract the version
grep "KHIOPS_VERSION" "$KHIOPS_REPO_DIR"/src/Learning/KWUtils/KWKhiopsVersion.h \
| cut -d' ' -f3 \
| sed 's/str(\(.*\))/\1/'

0 comments on commit 27be9d6

Please sign in to comment.