Skip to content

Commit c2874b2

Browse files
authored
Update buildbinaryen.yml.
1 parent c0ed409 commit c2874b2

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/buildbinaryen.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
-DBUILD_TESTS=OFF
3333
-DBINARYEN_CORES=1
3434
runtime: linux-x86
35-
# Windows 64-bit (native build)
35+
# Windows 64-bit
3636
- os: windows-latest
3737
arch: x64
3838
target: windows
@@ -44,7 +44,7 @@ jobs:
4444
-DBUILD_TESTS=OFF
4545
-DBINARYEN_CORES=1
4646
runtime: win-x64
47-
# Windows 32-bit (native build)
47+
# Windows 32-bit
4848
- os: windows-latest
4949
arch: x86
5050
target: windows
@@ -78,14 +78,14 @@ jobs:
7878
- name: Configure
7979
run: cmake -S binaryen -B binaryen ${{ matrix.cmake-args }}
8080

81-
- name: Build
82-
run: |
83-
if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
84-
cmake --build binaryen -- -j$env:NUMBER_OF_PROCESSORS
85-
else
86-
cmake --build binaryen -- -j$(nproc)
87-
fi
88-
shell: bash
81+
- name: Build (Linux)
82+
if: matrix.os == 'ubuntu-latest'
83+
run: cmake --build binaryen -- -j$(nproc)
84+
85+
- name: Build (Windows)
86+
if: matrix.os == 'windows-latest'
87+
run: cmake --build binaryen --config Release -- /m:$env:NUMBER_OF_PROCESSORS
88+
shell: cmd
8989

9090
- name: Copy to NuGet runtime folder
9191
run: |

0 commit comments

Comments
 (0)