Files
love/.github/workflows/main.yml
T
Alex Szpakowski 55e1ce6579 github actions: minor updates to Windows CI
use a platform-specific name for build artifacts, and use VS2019 toolset instead of VS2017 toolset.
2020-01-13 17:51:49 -04:00

52 lines
1.5 KiB
YAML

name: continuous-integration
on: [push, pull_request]
jobs:
linux-os:
runs-on: ubuntu-latest
steps:
- name: Update APT
run: sudo apt-get update
- name: Install Dependencies
run: |
sudo apt-get install --assume-yes build-essential autotools-dev automake libtool pkg-config \
libfreetype6-dev libluajit-5.1-dev libsdl2-dev libopenal-dev \
libogg-dev libvorbis-dev libmodplug-dev libmpg123-dev libtheora-dev
- name: Checkout
uses: actions/checkout@v2
- name: Pre-Configure
run: $PWD/platform/unix/automagic
- name: Configure
run: mkdir build && cd build && ../configure
- name: Build
run: cd build && make -j2
windows-os:
runs-on: windows-latest
strategy:
matrix:
platform: [Win32, x64]
steps:
- name: Clone Megasource
uses: actions/checkout@v2
with:
path: megasource
repository: love2d/megasource
ref: master
- name: Checkout
uses: actions/checkout@v2
with:
path: megasource/libs/love
- name: Configure
shell: cmd
env:
PLATFORM: ${{ matrix.platform }}
run: cmake -Bbuild -Hmegasource -T v142 -A %PLATFORM% -DCMAKE_INSTALL_PREFIX=%CD%\install
- name: Install
shell: cmd
run: cmake --build build --config Release --target install
- name: Artifact
uses: actions/upload-artifact@v1
with:
name: love-windows-${{ matrix.platform }}
path: install