Add sample for VK_AMDX_dense_geometry_format #2
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: Build Project | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| push: | |
| branches: [main] | |
| jobs: | |
| build: | |
| name: "Build ${{ matrix.platform }} in ${{ matrix.build_type }}" | |
| strategy: | |
| matrix: | |
| platform: [windows, ubuntu, macos] | |
| build_type: [Debug, Release] | |
| env: | |
| PARALLEL: -j 2 | |
| runs-on: "${{ matrix.platform }}-latest" | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: "recursive" | |
| - if: ${{ matrix.platform == 'ubuntu' }} | |
| name: Install RandR headers | |
| run: | | |
| sudo apt-get update | |
| sudo apt install xorg-dev libglu1-mesa-dev | |
| - name: ccache | |
| uses: hendrikmuhs/ccache-action@v1.2 | |
| with: | |
| key: ${{ github.job }}-${{ matrix.os }} | |
| - if: ${{ matrix.platform == 'windows' }} | |
| name: Configure | |
| run: cmake -H"." -B"build/${{ matrix.platform }}" -DVKB_BUILD_TESTS=ON -DVKB_BUILD_SAMPLES=ON -D CMAKE_C_COMPILER_LAUNCHER=sccache -D CMAKE_CXX_COMPILER_LAUNCHER=sccache | |
| - if: ${{ matrix.platform != 'windows' }} | |
| name: Configure | |
| run: cmake -H"." -B"build/${{ matrix.platform }}" -DVKB_BUILD_TESTS=ON -DVKB_BUILD_SAMPLES=ON | |
| - name: "Build ${{ matrix.platform }} in ${{ matrix.build_type }}" | |
| run: cmake --build "build/${{ matrix.platform }}" --target vulkan_samples --config ${{ matrix.build_type }} ${{ env.PARALLEL }} | |
| build_d2d: | |
| name: "Build Ubuntu with Direct To Display" | |
| env: | |
| PARALLEL: -j 2 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: "recursive" | |
| - name: Install RandR headers | |
| run: | | |
| sudo apt-get update | |
| sudo apt install xorg-dev libglu1-mesa-dev | |
| - name: ccache | |
| uses: hendrikmuhs/ccache-action@v1.2 | |
| with: | |
| key: ${{ github.job }}-${{ matrix.os }} | |
| - name: Configure | |
| run: cmake -H"." -B"build/ubuntu-latest-d2d" -DVKB_BUILD_TESTS=ON -DVKB_BUILD_SAMPLES=ON -DVKB_WSI_SELECTION=D2D | |
| - name: "Build Ubuntu in Release with VKB_WSI_SELECTION=D2D" | |
| run: cmake --build "build/ubuntu-latest-d2d" --target vulkan_samples --config Release ${{ env.PARALLEL }} | |
| build_android: | |
| name: "Build Android in ${{ matrix.build_type }}" | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| build_type: [Debug] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: "recursive" | |
| - name: set up JDK 11 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: "11" | |
| distribution: "temurin" | |
| cache: gradle | |
| - name: "Run generate script" | |
| run: ./bldsys/scripts/generate_android_gradle.sh | |
| - name: "Build Android using gradlew." | |
| working-directory: build/android_gradle | |
| run: ./gradlew app:assemble${{ matrix.build_type }} --info |