Skip to content

Commit b32696c

Browse files
Bash can't tell difference between variable and commands it seems.
That or I suck.
1 parent 8c7831e commit b32696c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/py_binding.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ jobs:
127127
if: matrix.os == 'windows-latest'
128128
shell: powershell
129129
run: |
130+
echo "Detecting STL version using $env:CXX"
131+
130132
$cxx_version = & $env:CXX -dM -E -x c++ NUL 2>$null | Select-String '_MSC_VER' | ForEach-Object {
131133
if ($_ -match '_MSC_VER\s+(\d+)') {
132134
"msvc$($matches[1])"
@@ -139,7 +141,9 @@ jobs:
139141
if: matrix.os != 'windows-latest'
140142
shell: bash
141143
run: |
142-
cxx_version = $(
144+
echo "Detecting STL version using $CXX"
145+
146+
CXX_VERSION = $(
143147
$CXX -dM -E -x c++ /dev/null 2>/dev/null | \
144148
grep -E '__GLIBCXX__|_LIBCPP_VERSION' | \
145149
awk '
@@ -151,7 +155,7 @@ jobs:
151155
}'
152156
)
153157
154-
echo "CXX_VERSION=$cxx_version" >> $GITHUB_ENV
158+
echo "CXX_VERSION=$CXX_VERSION" >> $GITHUB_ENV
155159
156160
- name: Define version
157161
shell: python

0 commit comments

Comments
 (0)