Skip to content

Commit a089bc0

Browse files
committed
fix: env
1 parent 6a2c112 commit a089bc0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build_binary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
run: |
4848
cmake --build build --config Release
4949
50-
source build/version.sh
50+
. build/env.sh
5151
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
5252
5353
- name: 'Upload artifacts'

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ project(
2323
LANGUAGES CXX
2424
)
2525

26-
file(WRITE "${CMAKE_BINARY_DIR}/env.sh" "VERSION=${PROJECT_VERSION}")
26+
file(WRITE "${CMAKE_BINARY_DIR}/env.sh" "export VERSION=${PROJECT_VERSION}")
2727

2828
# Set C++ standard
2929
set(CMAKE_CXX_STANDARD 23)

0 commit comments

Comments
 (0)