Build and run tests on Windows via Clang/Makefile
This commit is contained in:
@@ -3,6 +3,39 @@ name: C++ CI
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
|
||||
build_windows:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Clone source
|
||||
run: git clone --recursive https://github.com/uNetworking/uWebSockets.git
|
||||
- uses: ilammy/msvc-dev-cmd@v1
|
||||
- name: Build hammer_test
|
||||
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'
|
||||
$Env:CC='clang'
|
||||
$Env:CXX='clang++'
|
||||
$Env:WITH_LIBUV='1'
|
||||
$Env:EXEC_SUFFIX='.exe'
|
||||
$Env:WITH_ZLIB='0'
|
||||
$Env:WITH_LTO='0'
|
||||
make -C tests
|
||||
make
|
||||
ls
|
||||
.\HelloWorld.exe &
|
||||
sleep 1
|
||||
curl.exe -v http://localhost:3000/
|
||||
curl.exe -v http://localhost:3000/
|
||||
curl.exe -v http://localhost:3000/
|
||||
curl.exe -v http://localhost:3000/
|
||||
curl.exe -v http://localhost:3000/
|
||||
Stop-Process -Name HelloWorld
|
||||
|
||||
|
||||
build_linux:
|
||||
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
Reference in New Issue
Block a user