Skip to content

Commit

Permalink
Merge pull request tsoding#17 from kolumb/14
Browse files Browse the repository at this point in the history
(tsoding#14) Add MSVC action to CI
  • Loading branch information
rexim authored Oct 26, 2020
2 parents b6583dd + f4ca4cc commit dc8bddd
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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

0 comments on commit dc8bddd

Please sign in to comment.