From 69a742878745c38c9e9f2fc08e6407d2819d64f4 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 29 Jun 2021 13:22:39 -0400 Subject: [PATCH] Initial CI setup... --- .github/workflows/main.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..5cd4ab8 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,26 @@ +name: Build + +on: [push, pull_request] + +jobs: + Build: + name: ${{ matrix.platform.name }} + runs-on: ${{ matrix.platform.os }} + strategy: + matrix: + platform: # !!! FIXME: figure out an efficient way to get SDL2 on the Windows/Mac bots. + - { name: Linux, os: ubuntu-20.04, flags: -GNinja } + - { name: Windows, os: windows-latest } + - { name: MacOS, os: macos-latest } + steps: + - name: Setup Linux dependencies + if: runner.os == 'Linux' + run: | + sudo apt-get update + sudo apt-get install cmake ninja-build + - name: Get PhysicsFS sources + uses: actions/checkout@v2 + - name: Configure CMake + run: cmake -B build ${{ matrix.platform.flags }} + - name: Build + run: cmake --build build/