Fixing some gcc/clang errors and warnings #19
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: [push, pull_request] | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libglfw3-dev | |
- name: Configure CMake | |
run: | | |
mkdir cmake-build | |
cmake -B cmake-build -DCMAKE_BUILD_TYPE=Release | |
- name: Build | |
run: make -C cmake-build -j`nproc` | |
windows: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install MSBuild | |
uses: microsoft/setup-msbuild@v1 | |
- name: Build cgdemo | |
run: | | |
msbuild apps\cgdemo\build\vs2022\cgdemo.sln -m -t:cgdemo:rebuild -property:Configuration=Release | |
- name: Build cgvisdemo | |
run: | | |
msbuild apps\cgvisdemo\build\vs2022\cgvisdemo.sln -m -t:cgvisdemo:rebuild -property:Configuration=Release |