Files
uWebSockets/.github/workflows/cpp.yml
T
uNetworkingAB 540048e26c Update cpp.yml
2022-11-02 11:26:37 +01:00

74 lines
2.1 KiB
YAML

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
steps:
- name: Clone source
run: git clone --recursive https://github.com/uNetworking/uWebSockets.git
- name: Build source
run: make -C uWebSockets
- name: List binaries
run: ls uWebSockets
- name: Install Deno
run: curl -fsSL https://deno.land/x/install/install.sh | sh
- name: Run smoke test
run: make -C uWebSockets/tests smoke
- name: Run unit tests
run: make -C uWebSockets/tests
build_osx:
runs-on: macos-latest
steps:
- name: Clone source
run: git clone --recursive https://github.com/uNetworking/uWebSockets.git
- name: Build source
run: make -C uWebSockets
- name: List binaries
run: ls uWebSockets
- name: Install Deno
run: curl -fsSL https://deno.land/x/install/install.sh | sh
- name: Run smoke test
run: make -C uWebSockets/tests smoke
- name: Run unit tests
run: make -C uWebSockets/tests