Skip to content

Commit ab3c79b

Browse files
LessUpqwencoder
andcommitted
fix(ci): resolve GitHub workflow errors
- Update clang-format-action to v4.14.0 (latest stable) - Add node_modules to format check exclude list - Reduce CUDA architectures from 6 to 4 (70;75;80;86) to prevent timeout/OOM - Reorder checkout before install-deps in container - Use --no-install-recommends and cleanup apt cache - Remove sparse-checkout from pages workflow (causes Jekyll issues) - Add CONTRIBUTING.md and assets/** to pages path triggers - Remove conflicting docs/_config.yml (duplicate of root config) Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
1 parent ee0135a commit ab3c79b

3 files changed

Lines changed: 12 additions & 43 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ jobs:
2626
uses: actions/checkout@v4
2727

2828
- name: Check formatting
29-
uses: jidicula/clang-format-action@v4.13.0
29+
uses: jidicula/clang-format-action@v4.14.0
3030
with:
3131
clang-format-version: '17'
3232
check-path: '.'
33-
exclude-regex: '(^|/)(build|third_party|external|vendor|\.git|\.kiro)(/|$)'
33+
exclude-regex: '(^|/)(build|third_party|external|vendor|node_modules|\.git|\.kiro)(/|$)'
3434
fallback-style: 'LLVM'
3535

3636
cuda-build:
@@ -39,17 +39,20 @@ jobs:
3939
container:
4040
image: nvidia/cuda:12.4.1-devel-ubuntu22.04
4141
steps:
42-
- name: Install dependencies
43-
run: apt-get update && apt-get install -y cmake git build-essential
44-
4542
- name: Checkout
4643
uses: actions/checkout@v4
4744

45+
- name: Install dependencies
46+
run: |
47+
apt-get update
48+
apt-get install -y --no-install-recommends cmake git build-essential
49+
rm -rf /var/lib/apt/lists/*
50+
4851
- name: Configure
49-
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF -DCMAKE_CUDA_ARCHITECTURES="70;75;80;86;89;90"
52+
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF -DCMAKE_CUDA_ARCHITECTURES="70;75;80;86"
5053

5154
- name: Build
52-
run: cmake --build build --target sgemm_benchmark -j2 --verbose
55+
run: cmake --build build --target sgemm_benchmark -j$(nproc)
5356

5457
- name: Info
5558
run: |

.github/workflows/pages.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ on:
1111
- 'README.md'
1212
- 'README.zh-CN.md'
1313
- 'CHANGELOG.md'
14+
- 'CONTRIBUTING.md'
1415
- '_config.yml'
1516
- 'docs/**'
1617
- 'specs/**'
18+
- 'assets/**'
1719
- '.github/workflows/pages.yml'
1820
workflow_dispatch:
1921

@@ -32,19 +34,6 @@ jobs:
3234
steps:
3335
- name: Checkout
3436
uses: actions/checkout@v4
35-
with:
36-
sparse-checkout-cone-mode: false
37-
sparse-checkout: |
38-
index.md
39-
README.md
40-
README.zh-CN.md
41-
_config.yml
42-
CHANGELOG.md
43-
CONTRIBUTING.md
44-
LICENSE
45-
docs/
46-
specs/
47-
assets/
4837

4938
- name: Setup Pages
5039
uses: actions/configure-pages@v5

docs/_config.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)