Merge pull request #2 from BarthPaleologue/HPBD #28
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: Build | |
on: | |
pull_request: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
permissions: | |
statuses: write | |
contents: read | |
jobs: | |
build-linux-clang: | |
name: Build on Linux with Clang | |
runs-on: ubuntu-latest | |
env: | |
CC: clang | |
CFLAGS: -Werror | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y libglfw3 libglfw3-dev libglm-dev | |
- name: Configure static library | |
run: cmake -S . -B build-static | |
- name: Build static library | |
run: cmake --build build-static --parallel | |
- name: Configure shared library | |
run: cmake -S . -B build-shared -D BUILD_SHARED_LIBS=ON | |
- name: Build shared library | |
run: cmake --build build-shared --parallel |