From 0db7eab66c3b6ec9b5c470e250415e07d2ba4e14 Mon Sep 17 00:00:00 2001 From: Zach Bacon Date: Sun, 3 Oct 2021 16:37:11 -0400 Subject: [PATCH] add github actions workflow --- .github/workflows/msys2-build.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/msys2-build.yml diff --git a/.github/workflows/msys2-build.yml b/.github/workflows/msys2-build.yml new file mode 100644 index 00000000..7c5cfd26 --- /dev/null +++ b/.github/workflows/msys2-build.yml @@ -0,0 +1,31 @@ +name: MSYS2 Build +on: [push, pull_request] + +jobs: + build: + runs-on: windows-latest + defaults: + run: + shell: msys2 {0} + + steps: + - uses: actions/checkout@v2 + + - uses: msys2/setup-msys2@v2 + with: + install: >- + mingw-w64-clang-x86_64-toolchain + mingw-w64-clang-x86_64-pkg-config + mingw-w64-clang-x86_64-cmake + mingw-w64-clang-x86_64-ninja + mingw-w64-clang-x86_64-wxmsw3.1 + mingw-w64-clang-x86_64-sfml + mingw-w64-clang-x86_64-SDL2 + - name: Configure + run: >- + cmake -B build -G Ninja + - name: Build + run: ninja -C build + + - name: Install + run: ninja -C build install \ No newline at end of file