From 5a26dacd0f10c68237e21bebced7222c6672f48a Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sat, 27 Feb 2021 20:24:09 +0200 Subject: [PATCH] Add msys2 CI build (#25) * ci : add msys2 build * wip * wip * revert me * wip * msys2 : build static libs by default * Revert "revert me" This reverts commit 2fe8012508627f85522ad399c2a7bf58785c6f79. * done --- .github/workflows/build.yml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 18c99a4..3af3daf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -143,7 +143,7 @@ jobs: make ctest --output-on-failure - Emscripten: + emscripten: runs-on: ubuntu-18.04 strategy: @@ -174,3 +174,29 @@ jobs: popd emcmake cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }} make && ctest --output-on-failure + + windows-msys2: + runs-on: windows-latest + defaults: + run: + shell: msys2 {0} + steps: + - name: Clone + uses: actions/checkout@v1 + with: + submodules: recursive + + - name: Dependencies + uses: msys2/setup-msys2@v2 + with: + msystem: MINGW64 + update: true + install: cmake make mingw-w64-x86_64-dlfcn mingw-w64-x86_64-gcc mingw-w64-x86_64-SDL2 + + - name: Configure + run: cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }} + + - name: Build + run: | + make + ctest --output-on-failure