Skip to content

Commit 21330ca

Browse files
committed
conditions don't really work with os except on windows
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
1 parent 6a087dc commit 21330ca

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,12 @@ jobs:
3737
- name: Test Template
3838
run: |
3939
dotnet new install ./artifacts/BytecodeAlliance.Componentize.DotNet.Templates.*.nupkg
40+
mkdir ${{ runner.temp }}/projects
41+
pushd ${{ runner.temp }}/projects
4042
dotnet new componentize.wasi.cli -o test
4143
cd test
4244
dotnet build
45+
popd
4346
# must use windows to generate package https://github.com/bytecodealliance/componentize-dotnet/issues/41
4447
# only need one package published https://github.com/actions/upload-artifact?tab=readme-ov-file#not-uploading-to-the-same-artifact
4548
- name: Upload artifacts

templates/content/wasi-cli/.template.config/template.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,14 @@
2424
"datatype": "string",
2525
"cases": [
2626
{
27-
"condition": "(env:OS == \"Windows_NT\")",
27+
"condition": "(OS == \"Windows_NT\")",
2828
"value": "windows"
2929
},
3030
{
31-
"condition": "(env:OS != \"Windows_NT\")",
31+
"condition": "(OS == \"Linux\")",
32+
"value": "linux"
33+
},
34+
{
3235
"value": "linux"
3336
}
3437
]

0 commit comments

Comments
 (0)