[CI] Try to fix appveyor pipeline #280
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: | |
branches: [ master, PBR ] | |
pull_request: | |
branches: [ master, PBR ] | |
env: | |
BUILD_TYPE: Debug | |
jobs: | |
Linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install mesa-common-dev | |
run: sudo apt-get install mesa-common-dev | |
- name: Install libglu1-mesa-dev | |
run: sudo apt-get install libglu1-mesa-dev | |
- name: Install libgl1-mesa-dev | |
run: sudo apt-get install libgl1-mesa-dev | |
- name: Install libx11-dev | |
run: sudo apt-get install libx11-dev | |
- name: Install libxcursor-dev | |
run: sudo apt-get install libxcursor-dev | |
- name: Install libxrandr-dev | |
run: sudo apt-get install libxrandr-dev | |
- name: Install libxi-dev | |
run: sudo apt-get install libxi-dev | |
- name: Install uuid-dev | |
run: sudo apt-get install uuid-dev | |
- name: Install libglfw3 | |
run: sudo apt-get install libglfw3 | |
- name: Install libglfw3-dev | |
run: sudo apt-get install libglfw3-dev | |
- name: Install gcc-11 | |
run: sudo apt-get install gcc-11 | |
- name: Install g++-11 | |
run: sudo apt-get install g++-11 | |
- name: Change compiler to use GCC 11 | |
run: CC=gcc-11 CXX=g++-11 | |
- name: Configure CMake | |
run: | | |
mkdir build && cd build | |
cmake -G "Unix Makefiles" .. -D CMAKE_C_COMPILER=gcc-11 -D CMAKE_CXX_COMPILER=g++-11 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build | |
run: | | |
cd build | |
make | |
Windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} |