holy shit i shouldn't be trusted to write anything #123
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continous integration for Carmine Impact | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- 'src/**' | |
pull_request: | |
branches: [ master ] | |
paths: | |
- 'src/**' | |
jobs: | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
lfs: true | |
submodules: recursive | |
- name: Setup MSBuild | |
uses: microsoft/setup-msbuild@v1.0.2 | |
- name: Build for Windows | |
working-directory: ./src/vcpp | |
run: msbuild /p:PlatformToolset=v142 /property:Platform=x64 cardboard.sln | |
build-ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
lfs: true | |
submodules: recursive | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libsdl2-dev libsdl2-mixer-dev libsdl2-image-dev libsdl2-ttf-dev libcurl4-openssl-dev libenet-dev | |
- name: Run CMake | |
working-directory: . | |
run: cmake CMakeLists.txt | |
- name: Build for Ubuntu | |
working-directory: . | |
run: make |