Skip to content

Commit f613775

Browse files
authored
Update buildbinaryen.yml.
1 parent 1d97665 commit f613775

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/buildbinaryen.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
include:
1111
- os: windows-latest
1212
arch: x64
13-
cmake-args: -A x64 -DCMAKE_CXX_FLAGS="/W0 /MD /MT" -DBUILD_STATIC_LIB=OFF -DBUILD_SHARED_LIBS=ON -DBUILD_TOOLS=OFF -DBUILD_TESTS=OFF
13+
cmake-args: -A x64 -DCMAKE_CXX_FLAGS="/W0 /MT" -DBUILD_STATIC_LIB=OFF -DBUILD_SHARED_LIBS=ON -DBUILD_TOOLS=OFF -DBUILD_TESTS=OFF
1414
runtime: win-x64
1515
- os: windows-latest
1616
arch: x86
@@ -47,7 +47,12 @@ jobs:
4747
- name: Copy to NuGet runtime folder
4848
run: |
4949
mkdir -p package/runtimes/${{ matrix.runtime }}/native
50-
cp binaryen/build/Release/* package/runtimes/${{ matrix.runtime }}/native/ || cp binaryen/build/* package/runtimes/${{ matrix.runtime }}/native/
50+
if [ -d "binaryen/build/Release" ]; then
51+
cp -r binaryen/build/Release/* package/runtimes/${{ matrix.runtime }}/native/
52+
else
53+
cp -r binaryen/build/* package/runtimes/${{ matrix.runtime }}/native/
54+
fi
55+
shell: bash
5156

5257
# Upload artifacts
5358
- name: Upload artifact

0 commit comments

Comments
 (0)