ci : remove vulkan SDK dep from webgpu job (#23718)
* ci : remove vulkan dep from webgpu build * cont : add ccache to `ubuntu-24-webgpu-wasm` * ci : fix name + add wasm test
This commit is contained in:
@@ -35,8 +35,7 @@ env:
|
|||||||
LLAMA_LOG_TIMESTAMPS: 1
|
LLAMA_LOG_TIMESTAMPS: 1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
macos-latest-webgpu:
|
||||||
macOS-latest-arm64-webgpu:
|
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -47,7 +46,7 @@ jobs:
|
|||||||
- name: ccache
|
- name: ccache
|
||||||
uses: ggml-org/ccache-action@v1.2.21
|
uses: ggml-org/ccache-action@v1.2.21
|
||||||
with:
|
with:
|
||||||
key: macOS-latest-arm64-webgpu
|
key: macos-latest-webgpu
|
||||||
evict-old-files: 1d
|
evict-old-files: 1d
|
||||||
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
||||||
|
|
||||||
@@ -100,25 +99,6 @@ jobs:
|
|||||||
sudo apt-get install -y build-essential mesa-vulkan-drivers \
|
sudo apt-get install -y build-essential mesa-vulkan-drivers \
|
||||||
libxcb-xinput0 libxcb-xinerama0 libxcb-cursor-dev libssl-dev
|
libxcb-xinput0 libxcb-xinerama0 libxcb-cursor-dev libssl-dev
|
||||||
|
|
||||||
- name: Get latest Vulkan SDK version
|
|
||||||
id: vulkan_sdk_version
|
|
||||||
run: |
|
|
||||||
echo "VULKAN_SDK_VERSION=$(curl https://vulkan.lunarg.com/sdk/latest/linux.txt)" >> "$GITHUB_ENV"
|
|
||||||
|
|
||||||
- name: Use Vulkan SDK Cache
|
|
||||||
uses: actions/cache@v5
|
|
||||||
id: cache-sdk
|
|
||||||
with:
|
|
||||||
path: ./vulkan_sdk
|
|
||||||
key: cache-gha-vulkan-sdk-${{ env.VULKAN_SDK_VERSION }}-${{ runner.os }}
|
|
||||||
|
|
||||||
- name: Setup Vulkan SDK
|
|
||||||
if: steps.cache-sdk.outputs.cache-hit != 'true'
|
|
||||||
uses: ./.github/actions/linux-setup-vulkan
|
|
||||||
with:
|
|
||||||
path: ./vulkan_sdk
|
|
||||||
version: ${{ env.VULKAN_SDK_VERSION }}
|
|
||||||
|
|
||||||
- name: Dawn Dependency
|
- name: Dawn Dependency
|
||||||
id: dawn-depends
|
id: dawn-depends
|
||||||
run: |
|
run: |
|
||||||
@@ -157,6 +137,13 @@ jobs:
|
|||||||
id: checkout
|
id: checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: ccache
|
||||||
|
uses: ggml-org/ccache-action@v1.2.21
|
||||||
|
with:
|
||||||
|
key: ubuntu-24-webgpu-wasm
|
||||||
|
evict-old-files: 1d
|
||||||
|
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
||||||
|
|
||||||
- name: Install Emscripten
|
- name: Install Emscripten
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/emscripten-core/emsdk.git
|
git clone https://github.com/emscripten-core/emsdk.git
|
||||||
@@ -184,3 +171,9 @@ jobs:
|
|||||||
-DEMDAWNWEBGPU_DIR=emdawnwebgpu_pkg
|
-DEMDAWNWEBGPU_DIR=emdawnwebgpu_pkg
|
||||||
|
|
||||||
time cmake --build build-wasm --config Release --target test-backend-ops -j $(nproc)
|
time cmake --build build-wasm --config Release --target test-backend-ops -j $(nproc)
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
id: cmake_test
|
||||||
|
run: |
|
||||||
|
cd build
|
||||||
|
ctest -L main --verbose --timeout 900
|
||||||
|
|||||||
Reference in New Issue
Block a user