From 5cc7860b4f59410b9379681e9bdb2cff66505891 Mon Sep 17 00:00:00 2001 From: Danil Kolumbet Date: Sun, 25 Oct 2020 19:45:46 +0200 Subject: [PATCH 1/2] Add msvc action to ci --- .github/workflows/ci.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4b322eb..3e76ab4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ jobs: run: | sudo apt-get update sudo apt-get install -qq libsdl2-dev - - name: build the game + - name: build sowon run: | make env: @@ -23,7 +23,7 @@ jobs: run: | sudo apt-get update sudo apt-get install -qq libsdl2-dev - - name: build the game + - name: build sowon run: | make env: @@ -34,9 +34,22 @@ jobs: - uses: actions/checkout@v1 - name: install dependencies run: brew install sdl2 pkg-config - - name: build the game + - name: build sowon run: | make env: CC: clang - # TODO(#14): there is no build for Windows + build-windows-msvc: + runs-on: windows-2019 + steps: + - uses: actions/checkout@v1 + # this runs vcvarsall for us, so we get the MSVC toolchain in PATH. + - uses: seanmiddleditch/gha-setup-vsdevenv@master + - name: download sdl2 + run: | + curl -fsSL -o SDL2-devel-2.0.12-VC.zip https://www.libsdl.org/release/SDL2-devel-2.0.12-VC.zip + tar -xf SDL2-devel-2.0.12-VC.zip + mv SDL2-2.0.12 SDL2 + - name: build sowon + run: | + build_msvc.bat From f4ca4ccb092eed4c38792a45b21bb8cf473435c5 Mon Sep 17 00:00:00 2001 From: Danil Kolumbet Date: Sun, 25 Oct 2020 19:53:13 +0200 Subject: [PATCH 2/2] Try to fix CI --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e76ab4..3b57880 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,4 +52,4 @@ jobs: mv SDL2-2.0.12 SDL2 - name: build sowon run: | - build_msvc.bat + ./build_msvc.bat