From dc50b4e4e938f9199c6a06797517a05a79182384 Mon Sep 17 00:00:00 2001 From: Mike Gelfand Date: Sun, 13 Sep 2020 23:38:02 +0300 Subject: [PATCH] Add CI configuration using GitHub Actions --- .github/workflows/ci.yml | 44 ++++++++++++++++++++++++++++++++++++++++ libutp.vcxproj | 8 ++++++++ 2 files changed, 52 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..074ee72 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,44 @@ +name: CI +on: [push, pull_request] +jobs: + build: + runs-on: ${{ matrix.runner }} + strategy: + matrix: + os: [linux, windows, macos] + build_type: [Debug, Release] + arch: [x86, x64] + exclude: + - os: linux + build_type: Debug + - os: linux + arch: x86 + - os: macos + build_type: Debug + - os: macos + arch: x86 + include: + - os: linux + runner: ubuntu-latest + - os: windows + runner: windows-latest + - os: windows + arch: x86 + msbuild_args: -property:Platform=Win32 + - os: windows + arch: x64 + msbuild_args: -property:Platform=x64 + - os: macos + runner: macos-latest + steps: + - name: Checkout + uses: actions/checkout@v1 + - name: Build (non-Windows) + if: matrix.os != 'windows' + run: make + - name: Add msbuild to PATH + if: matrix.os == 'windows' + uses: microsoft/setup-msbuild@v1.0.1 + - name: Build (Windows) + if: matrix.os == 'windows' + run: msbuild -property:PlatformToolset=v142 -property:Configuration=${{ matrix.build_type }} ${{ matrix.msbuild_args }} libutp.vcxproj diff --git a/libutp.vcxproj b/libutp.vcxproj index 580c7a6..f5f7523 100644 --- a/libutp.vcxproj +++ b/libutp.vcxproj @@ -163,6 +163,7 @@ Disabled Sync 4996 + Default true @@ -173,6 +174,7 @@ Level3 Disabled MultiThreadedDebugDLL + Default true @@ -182,6 +184,7 @@ Level3 Disabled + Default true @@ -191,6 +194,7 @@ Level3 Disabled + Default true @@ -204,6 +208,7 @@ true _WIN32_WINNT=0x501;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) Sync + Default true @@ -219,6 +224,7 @@ true %(PreprocessorDefinitions) MultiThreadedDLL + Default true @@ -232,6 +238,7 @@ MaxSpeed true true + Default true @@ -245,6 +252,7 @@ MaxSpeed true true + Default true