Now Uses backface culling #22
This file contains hidden or 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 multiple platforms | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| # compiler: [gcc, clang, msvc] implement later? | |
| steps: | |
| - name: Install dependencies | |
| if: matrix.os == 'ubuntu-latest' | |
| uses: awalsh128/cache-apt-pkgs-action@latest | |
| with: | |
| packages: libwayland-dev libxkbcommon-dev xorg-dev | |
| version: 1.0 | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true # Pull down RealEngine then check if we have a chache for it's submodules | |
| - name: Submodule Hash | |
| id: submodule-hash | |
| uses: Andthehand/submodule-version-hash-action@main | |
| with: | |
| path: './RealEngine' | |
| - name : Cache Submodules | |
| id: cache-submodule | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| RealEngine/vendor | |
| build/RealEngine/vendor | |
| key: ${{ matrix.os }}-submodules-${{ steps.submodule-hash.outputs.sha256 }} | |
| - name: Update git submodules | |
| if: steps.cache-submodule.outputs.cache-hit != 'true' | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Configure CMake | |
| run: > | |
| cmake -B ${{ github.workspace }}/build | |
| -DTRACY_ENABLE=OFF | |
| - name: Build | |
| run: cmake --build ${{ github.workspace }}/build --parallel |