diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 0f8123e..b28ea23 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -12,9 +12,8 @@ jobs: strategy: fail-fast: false matrix: - mode: [ debug, release ] - rhi: [ opengl ] # Add vulkan - # rhi: [ dx11, dx12, opengl, vulkan, metal ] + prj: [ BlankApp, HelloTriangle, SpinningCube ] + rhi: [ opengl ] # TODO: Add vulkan steps: - name: Get current date as package key @@ -48,7 +47,7 @@ jobs: uses: actions/cache/restore@v4 with: path: ${{ env.XMAKE_GLOBALDIR }}/.xmake/packages - key: ${{ matrix.rhi }}-${{ matrix.arch }}-${{ matrix.mode }}-${{ env.hash }}-W${{ env.key }} + key: ${{ matrix.rhi }}-${{ matrix.prj }}-${{ env.hash }}-W${{ env.key }} - name: Check xmake packages directory exists shell: bash @@ -61,7 +60,7 @@ jobs: fi - name: Configure xmake and install dependencies - run: xmake config --mode=${{ matrix.mode }} --ccache=n --rhi=${{ matrix.rhi }} --yes + run: xmake config --mode=release --ccache=n --rhi=${{ matrix.rhi }} --yes - name: Save cached xmake dependencies if: ${{ !steps.restore-depcache.outputs.cache-hit }} @@ -71,10 +70,7 @@ jobs: key: ${{ steps.restore-depcache.outputs.cache-primary-key }} - name: Build Visualizer - run: xmake --all --yes - - - name: Run compile tests - run: xmake test */compile_pass + run: xmake build ${{ matrix.prj }} --yes - name: Run tests - run: xmake test */run_5_seconds + run: xmake test ${{ matrix.prj }}/* diff --git a/.github/workflows/macosx.yml b/.github/workflows/macosx.yml index 37c231f..9fbfb3a 100644 --- a/.github/workflows/macosx.yml +++ b/.github/workflows/macosx.yml @@ -12,9 +12,8 @@ jobs: strategy: fail-fast: false matrix: - mode: [ debug, release ] - rhi: [ metal, opengl ] # Add vulkan support - # rhi: [ dx11, dx12, opengl, vulkan ] + prj: [ BlankApp, HelloTriangle, SpinningCube ] + rhi: [ metal, opengl ] # TODO: Add vulkan steps: - name: Get current date as package key @@ -48,7 +47,7 @@ jobs: uses: actions/cache/restore@v4 with: path: ${{ env.XMAKE_GLOBALDIR }}/.xmake/packages - key: ${{ matrix.rhi }}-${{ matrix.arch }}-${{ matrix.mode }}-${{ env.hash }}-W${{ env.key }} + key: ${{ matrix.rhi }}-${{ matrix.prj }}-${{ env.hash }}-W${{ env.key }} - name: Check xmake packages directory exists shell: bash @@ -61,7 +60,7 @@ jobs: fi - name: Configure xmake and install dependencies - run: xmake config --mode=${{ matrix.mode }} --ccache=n --rhi=${{ matrix.rhi }} --yes + run: xmake config --mode=release --ccache=n --rhi=${{ matrix.rhi }} --yes - name: Save cached xmake dependencies if: ${{ !steps.restore-depcache.outputs.cache-hit }} @@ -71,10 +70,8 @@ jobs: key: ${{ steps.restore-depcache.outputs.cache-primary-key }} - name: Build Visualizer - run: xmake --all --yes - - - name: Run compile tests - run: xmake test */compile_pass + run: xmake build ${{ matrix.prj }} --yes - name: Run tests - run: xmake test */run_5_seconds + run: xmake test ${{ matrix.prj }}/* + diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 24f52cf..ad95b28 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -12,10 +12,8 @@ jobs: strategy: fail-fast: false matrix: - mode: [ debug, release ] - arch: [ x64 ] - rhi: [ dx11, opengl ] # We currently do not support the other APIs - # rhi: [ dx11, dx12, opengl, vulkan ] + prj: [ BlankApp, HelloTriangle, SpinningCube ] + rhi: [ dx11, opengl ] # TODO: Add vulkan, dx12 steps: - name: Get current date as package key @@ -49,7 +47,7 @@ jobs: uses: actions/cache/restore@v4 with: path: ${{ env.XMAKE_GLOBALDIR }}/.xmake/packages - key: ${{ matrix.rhi }}-${{ matrix.arch }}-${{ matrix.mode }}-${{ env.hash }}-W${{ env.key }} + key: ${{ matrix.rhi }}-${{ matrix.prj }}-${{ env.hash }}-W${{ env.key }} - name: Check xmake packages directory exists shell: bash @@ -62,7 +60,7 @@ jobs: fi - name: Configure xmake and install dependencies - run: xmake config --arch=${{ matrix.arch }} --mode=${{ matrix.mode }} --ccache=n --rhi=${{ matrix.rhi }} --yes + run: xmake config --mode=release --ccache=n --rhi=${{ matrix.rhi }} --yes - name: Save cached xmake dependencies if: ${{ !steps.restore-depcache.outputs.cache-hit }} @@ -72,10 +70,7 @@ jobs: key: ${{ steps.restore-depcache.outputs.cache-primary-key }} - name: Build Visualizer - run: xmake --all --yes - - - name: Run compile tests - run: xmake test */compile_pass + run: xmake build ${{ matrix.prj }} --yes - name: Run tests - run: xmake test */run_5_seconds + run: xmake test ${{ matrix.prj }}/*