name: Test Compilation run-name: ${{github.event_name}} - Build evk - ${{github.sha}} on: [push] jobs: Build evk: runs-on: ubuntu-latest container: image: git.neosisyphus.com/evol3d/evol-testbed:latest steps: - uses: actions/checkout@v4 - name: Cache shaderc id: cache-shaderc uses: actions/cache@v4 env: cache-name: cache-shaderc-src with: path: | subprojects/shaderc/ build/subprojects/shaderc/ key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('subprojects/shaderc.wrap', 'subprojects/packagefiles/shaderc/**/*') }} - name: Cache VMA id: cache-vma uses: actions/cache@v4 env: cache-name: cache-vma with: path: | subprojects/vma/ build/subprojects/vma/ key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('subprojects/vma.wrap', 'subprojects/packagefiles/vma/**/*') }} - name: Cache volk id: cache-volk uses: actions/cache@v4 env: cache-name: cache-volk with: path: | subprojects/volk/ build/subprojects/volk/ key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('subprojects/volk.wrap', 'subprojects/packagefiles/volk/**/*') }} - name: Cache SPIRV-Reflect id: cache-spvref uses: actions/cache@v4 env: cache-name: cache-spvref with: path: | subprojects/spvref/ build/subprojects/spvref/ key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('subprojects/spvref.wrap', 'subprojects/packagefiles/spvref/**/*') }} - name: Cache GLFW id: cache-glfw uses: actions/cache@v4 env: cache-name: cache-glfw with: path: | subprojects/glfw/ build/subprojects/glfw/ key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('subprojects/glfw.wrap', 'subprojects/packagefiles/glfw/**/*') }} - name: Cache ninja id: cache-ninja uses: actions/cache@v4 env: cache-name: cache-ninja with: path: | build/.ninja_log build/.ninja_deps key: ${{ runner.os }}-${{ env.cache-name }}-${{ github.run_id }} restore-keys: | ${{ runner.os }}-${{ env.cache-name }}- - name: Configure run: meson setup build - name: Compile run: meson compile -C build - name: Upload Logs if: always() uses: https://git.neosisyphus.com/mo7sen/upload-artifact-gitea@v7 with: path: | build/meson-logs/meson-log.txt build/meson-logs/meson-setup.txt archive: false