-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (48 loc) · 1.52 KB
/
uvtls.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: uvtls CI
on: [push]
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install deps
run: sudo apt-get install libuv1-dev
- name: Configure
run: mkdir build && cd build && cmake ..
- name: Build
run: cmake --build build
- name: Tests
run: cd build && ./tests/test-uvtls
build-windows:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
arch: [Win32, x64]
include:
- arch: x64
vcpkg-triplet: x64-windows
- arch: Win32
vcpkg-triplet: x86-windows
steps:
- uses: actions/checkout@v1
- name: Cache vcpkg installed
uses: actions/cache@v1
with:
key: vcpkg-${{ matrix.os }}-${{ matrix.arch }}
path: C:/vcpkg/installed
- name: Install deps vcpkg
run: vcpkg install libuv openssl-windows --triplet ${{ matrix.vcpkg-triplet }}
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure cmake
working-directory: ${{runner.workspace}}/build
run: cmake $env:GITHUB_WORKSPACE -DCMAKE_GENERATOR_PLATFORM=${{matrix.arch}} -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
- name: Build
working-directory: ${{runner.workspace}}/build
run: cmake --build .
- name: Tests
working-directory: ${{runner.workspace}}/build
run: |
tests\Debug\test-uvtls.exe