Skip to content

Commit d531851

Browse files
committed
correct passing vars in shell
1 parent 1f64763 commit d531851

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build-nabla.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,12 @@ jobs:
5252

5353
- name: Set prefix
5454
id: set-prefix
55+
shell: pwsh
5556
run: |
5657
$prefix = "run-windows-${{ matrix.tag }}-${{ matrix.vendor }}-${{ matrix.config }}"
57-
$nscTargetTaggedImage = "ghcr.io/$env:GITHUB_REPOSITORY:nsc-godbolt-build-${{ matrix.vendor }}-${{ matrix.config }}-${{ matrix.tag }}".ToLower()
58+
$repo = $env:GITHUB_REPOSITORY
59+
$tag = "nsc-godbolt-build-${{ matrix.vendor }}-${{ matrix.config }}-${{ matrix.tag }}"
60+
$nscTargetTaggedImage = "ghcr.io/$repo:$tag".ToLower()
5861
5962
"prefix=$prefix" >> $env:GITHUB_OUTPUT
6063
"nscTargetTaggedImage=$nscTargetTaggedImage" >> $env:GITHUB_OUTPUT
@@ -98,7 +101,7 @@ jobs:
98101
--preset ci-configure-dynamic-${{ matrix.vendor }} `
99102
--profiling-output=profiling/cmake-profiling.json `
100103
--profiling-format=google-trace
101-
-DNSC_IMAGE_NAME=${{ steps.set-prefix.outputs.nscTargetTaggedImage }}
104+
"-DNSC_IMAGE_NAME=${{ steps.set-prefix.outputs.nscTargetTaggedImage }}"
102105
103106
- name: Container – Build NSC
104107
run: |

0 commit comments

Comments
 (0)