Skip to content

Towards support for all platforms #5

Towards support for all platforms

Towards support for all platforms #5

name: compile
on:
pull_request:
push:
branches:
- main
jobs:
ubuntu_build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse" -y
sudo apt-get install libsdl2-dev -y
sudo apt-get install freeglut3-dev -y
- name: Build & Install
run: |
sudo mkdir cmake-build-release
cd cmake-build-release
sudo cmake -DCMAKE_BUILD_TYPE=Release ..
sudo cmake --install .
- name: Build all examples
run: |
cd cmake-build-release
sudo cmake -DCMAKE_BUILD_TYPE=Release ..
sudo cmake --build .