Create main.yml
This commit is contained in:
1 parent
249c37e68a
commit
e080a6bedb
1 file changed
+26
@@ -0,0 +1,26 @@
|
||||
name: Build
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
Build:
|
||||
name: ${{ matrix.platform.name }}
|
||||
runs-on: ${{ matrix.platform.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
platform:
|
||||
- { 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 libncursesw5-dev libncursesw5:i386 libsdl2-dev
|
||||
- name: Get 2ine sources
|
||||
uses: actions/checkout@v2
|
||||
- name: Configure CMake
|
||||
run: cmake -B build ${{ matrix.platform.flags }}
|
||||
- name: Build
|
||||
run: cmake --build build/
|
||||
Reference in new issue
Block a user