From b2f4c070174b996d0588f36701c6847bf6cf2b80 Mon Sep 17 00:00:00 2001 From: uNetworkingAB <110806833+uNetworkingAB@users.noreply.github.com> Date: Wed, 2 Nov 2022 13:31:31 +0100 Subject: [PATCH] Update cpp.yml --- .github/workflows/cpp.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 8b4fe86..9878eef 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -9,11 +9,14 @@ jobs: steps: - name: Clone source run: git clone --recursive https://github.com/uNetworking/uWebSockets.git + - name: Install Deno + run: iwr https://deno.land/x/install/install.ps1 -useb | iex + - name: Install libuv + run: vcpkg install libuv:x64-windows - uses: ilammy/msvc-dev-cmd@v1 - - name: Build hammer_test + - name: Set env run: | cd uWebSockets - vcpkg install libuv:x64-windows cp C:\vcpkg\installed\x64-windows\bin\uv.dll uv.dll $Env:CFLAGS='-D WIN32_LEAN_AND_MEAN -I C:/vcpkg/packages/libuv_x64-windows/include' $Env:LDFLAGS='-L C:/vcpkg/packages/libuv_x64-windows/lib' @@ -23,10 +26,15 @@ jobs: $Env:EXEC_SUFFIX='.exe' $Env:WITH_ZLIB='0' $Env:WITH_LTO='0' - make -C tests + - name: Run unit tests + run: make -C tests + - name: Build examples + run: | make -C uSockets nmake -f shim ls + - name: Run smoke test + run: | Start-Process -NoNewWindow .\Crc32 sleep 1 deno run --allow-net tests\smoke.mjs