X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=.github%2Fworkflows%2Fcmake-build-ci.gen;h=1c758836eca17c9ee28e1d5806b4974fedb1c2fb;hb=aeac01630eed825d8a624e7fd7c107d47bb2e40c;hp=d7f7679edcd6e405a73bccaf56ab066683a988c7;hpb=dfdcce95b625e98144c1681f05b337648b92f20f;p=awesomized%2Flibmemcached diff --git a/.github/workflows/cmake-build-ci.gen b/.github/workflows/cmake-build-ci.gen index d7f7679e..1c758836 100755 --- a/.github/workflows/cmake-build-ci.gen +++ b/.github/workflows/cmake-build-ci.gen @@ -6,8 +6,10 @@ echo "# Generated file; do not edit!\n"; const DEF = [ "os" => "Linux", "Linux" => "ubuntu-20.04", + "Windows" => "windows-2019", "macOS" => "macos-10.15", "ubuntu-20.04" => "gnu", + "windows-2019" => "msvc", "macos-10.15" => "clang", "gnu" => [ "ver" => "cur", @@ -19,6 +21,11 @@ const DEF = [ "CC" => "clang", "CXX" => "clang++", ], + "msvc" => [ // dummy + "ver" => "cur", + "CC" => "msvc", + "CXX" => "msvc", + ], ]; const ENV = [ "ubuntu-20.04" => [ @@ -74,7 +81,16 @@ const MAP = [ ] ] ] - ] + ], + "windows-2019" => [ + 'env.CC_VND' => [ + "msvc" => [ + 'env.CC_VER' => [ + "cur" => "2019", + ], + ], + ], + ], ] ]; @@ -294,6 +310,29 @@ jobs: - uses: codecov/codecov-action@v1.0.13 + # win build + win-msvc: + name: win-msvc (, , ) + runs-on: # + env: + CMAKE_BUILD_TYPE: Release + BUILD_TESTING: "OFF" + BISON_ROOT: "C:/msys64/usr" + FLEX_ROOT: "C:/msys64/usr" + OS_VND: Windows + OS_VER: # + CC_VND: # + CC_VER: # + continue-on-error: true + steps: + - uses: actions/checkout@v2 + - name: Generate build tree (${{ env.CMAKE_BUILD_TYPE }}) + run: cmake --config ${{ env.CMAKE_BUILD_TYPE }} -S . -B build + - name: Build all with ${{ env.CC_VND }} + run: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} + - name: Install + run: cmake --install build --prefix installed --config ${{ env.CMAKE_BUILD_TYPE }} + # release builds release: strategy: