Skip to content

Instantly share code, notes, and snippets.

@onatbas
Created June 10, 2020 06:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save onatbas/7e304bedb8a045f5c7a85dc3b89ea972 to your computer and use it in GitHub Desktop.
Save onatbas/7e304bedb8a045f5c7a85dc3b89ea972 to your computer and use it in GitHub Desktop.
Action description for cmake build and test - out it into .github/workflows
name: CI
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Update apt
run: sudo apt update
- name: Install GCC
run: sudo apt install gcc -y
- name: Install CMake
run: sudo apt install cmake -y
- name: Install boost
run: sudo apt install libboost-all-dev -y
- name: Install SDL2
run: sudo apt install libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-mixer-dev -y --fix-missing
- name: build
run: |
mkdir bin
cd bin
cmake ..
cmake --build .
ctest -V -R LACUNA_AUTOMATED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment