Added workflow #1
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: GravityDefiedCpp build | |
on: [pull_request, push] | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install build-essential libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev g++-mingw-w64-i686 | |
- name: Build for Ubuntu | |
run: | | |
cmake -B build-ubuntu | |
cmake --build build-ubuntu | |
- name: Build for Windows | |
run: | | |
cmake -DCMAKE_TOOLCHAIN_FILE=cmake/mingw-toolchain.cmake -B build-win32 | |
cmake --build build-win32 | |
- name: Upload GravityDefiedCpp for Ubuntu | |
uses: actions/upload-artifact@v4 | |
with: | |
name: GravityDefiedCpp | |
path: build-ubuntu/GravityDefiedCpp | |
- name: Upload GravityDefiedCpp for Windows | |
uses: actions/upload-artifact@v4 | |
with: | |
name: GravityDefiedCpp.exe | |
path: build-ubuntu/GravityDefiedCpp.exe |