Skip to content

Commit

Permalink
Update actions to be sample specific (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnavMehta3000 authored Aug 14, 2024
1 parent b6e0262 commit e0eb223
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 31 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -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 }}/*
17 changes: 7 additions & 10 deletions .github/workflows/macosx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -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 }}/*

17 changes: 6 additions & 11 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -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 }}/*

0 comments on commit e0eb223

Please sign in to comment.