Skip to content

Commit b9b9286

Browse files
authored
Merge pull request #39 from ChamalGomesHSO/feat/control-glibc
Modify CI workflow for CPU build with GLIBC check
2 parents 9648743 + 2019c95 commit b9b9286

File tree

2 files changed

+6
-27
lines changed

2 files changed

+6
-27
lines changed

.github/workflows/llama-build-cpu.yaml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ name: Build Release (CPU)
22

33
on: workflow_dispatch
44

5-
env:
6-
GCC_VERSION: 11
7-
85
permissions:
96
contents: write
107

@@ -14,20 +11,15 @@ jobs:
1411
runs-on: ${{ matrix.os }}
1512
strategy:
1613
matrix:
17-
os: [ubuntu-latest] # windows-2025
14+
os: [ubuntu-22.04] # windows-2025
1815
python-version: ["3.13"]
1916
steps:
2017
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
2118
with:
2219
submodules: "recursive"
2320

24-
- name: Set GCC Version
25-
uses: egor-tensin/setup-gcc@eaa888eb19115a521fa72b65cd94fe1f25bbcaac # v1
26-
with:
27-
version: ${{ env.GCC_VERSION }}
28-
29-
- name: Verify GCC version
30-
run: gcc --version
21+
- name: Verify GLIBC version
22+
run: ldd --version
3123

3224
- name: Install the latest version of uv
3325
uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7
@@ -101,6 +93,3 @@ jobs:
10193
- uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3
10294
with:
10395
subject-path: 'dist/*'
104-
105-
106-

.github/workflows/llama-build-cuda.yaml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ name: Build Release (CUDA)
22

33
on: workflow_dispatch
44

5-
env:
6-
GCC_VERSION: 13
7-
85
permissions:
96
contents: write
107

@@ -23,7 +20,7 @@ jobs:
2320
id: set-matrix
2421
run: |
2522
$matrix = @{
26-
'os' = @('ubuntu-latest')
23+
'os' = @('ubuntu-24.04')
2724
'pyver' = @("3.13")
2825
'cuda' = @("12.8.1") #12.9.0 >= is not supported (12.8.1 works)
2926
'releasetag' = @("basic")
@@ -54,13 +51,8 @@ jobs:
5451
with:
5552
submodules: "recursive"
5653

57-
- name: Set GCC Version
58-
uses: egor-tensin/setup-gcc@eaa888eb19115a521fa72b65cd94fe1f25bbcaac # v1
59-
with:
60-
version: ${{ env.GCC_VERSION }}
61-
62-
- name: Verify GCC version
63-
run: gcc --version
54+
- name: Verify GLIBC version
55+
run: ldd --version
6456

6557
- name: Install the latest version of uv
6658
uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7
@@ -121,5 +113,3 @@ jobs:
121113
with:
122114
subject-path: 'vendor/llama-cpp-python/dist/*.whl'
123115

124-
125-

0 commit comments

Comments
 (0)