Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
Let's see if this thing still builds.  :)
  • Loading branch information
icculus committed Jul 6, 2021
1 parent ce6d07e commit 513b19f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .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 mojocraash sources
uses: actions/checkout@v2
- name: Configure CMake
run: cmake -B build ${{ matrix.platform.flags }}
- name: Build
run: cmake --build build/

0 comments on commit 513b19f

Please sign in to comment.