Merge pull request #15 from deccer/main #45
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: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build_gcc: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
gccversion: [13] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Dependencies | |
run: sudo apt-get update && sudo apt-get install libgl1-mesa-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev | |
- name: Add Repository to find newer versions of gcc | |
run: sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | |
- name: Add LunarG mirror | |
run: | | |
wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.asc | |
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list http://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list | |
- name: Update Repos | |
run: sudo apt-get update | |
- name: Install Vulkan SDK | |
run: sudo apt-get install vulkan-sdk | |
- name: Install gcc-${{ matrix.gccversion }} | |
run: sudo apt-get install gcc-${{ matrix.gccversion }} g++-${{ matrix.gccversion }} | |
- name: Configure CMake with GCC-${{ matrix.gccversion }} | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_COMPILER=g++-${{ matrix.gccversion }} -DGLFW_BUILD_WAYLAND:BOOL=OFF | |
env: | |
CC: gcc-${{ matrix.gccversion }} | |
CXX: g++-${{ matrix.gccversion }} | |
- name: Build with gcc-${{ matrix.gccversion }} | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} |