Merge pull request #29 from slo248/feat/improve-workflow #24
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: cmake | |
on: | |
push: | |
paths-ignore: | |
- "README.md" | |
- "LICENSE" | |
- "Class-Diagrams/*" | |
- "data/*" | |
branches: [main, dev] | |
pull_request: | |
paths-ignore: | |
- "README.md" | |
- "LICENSE" | |
- "Class-Diagrams/*" | |
- "data/*" | |
branches: [main, dev] | |
jobs: | |
Linux-Build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install libfreetype6-dev libx11-dev libxcursor-dev libxrandr-dev libudev-dev libgl1-mesa-dev libflac-dev libogg-dev libvorbis-dev libvorbisenc2 libvorbisfile3 libopenal-dev libpthread-stubs0-dev | |
- name: Build | |
run: | | |
mkdir build && cd build | |
cmake .. | |
cmake --build . --config Release | |
Windows-Build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Build | |
run: | | |
mkdir build && cd build | |
cmake .. | |
cmake --build . --config Release | |
MacOS-Build: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Build | |
run: | | |
mkdir build && cd build | |
cmake .. | |
cmake --build . --config Release |