Skip to content

Commit bf90e33

Browse files
committed
disable_tests_failing_repositories
1 parent d17add1 commit bf90e33

File tree

1 file changed

+76
-74
lines changed

1 file changed

+76
-74
lines changed

.github/workflows/build-linux-cross.yml

Lines changed: 76 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -4,49 +4,50 @@ on:
44
workflow_call:
55

66
jobs:
7-
ubuntu-24-riscv64-cpu-cross:
8-
runs-on: ubuntu-24.04
7+
# Disabled. Fails to install some dependencies from arch-specific repositories.
8+
# ubuntu-24-riscv64-cpu-cross:
9+
# runs-on: ubuntu-24.04
910

10-
steps:
11-
- uses: actions/checkout@v4
12-
- name: Setup Riscv
13-
run: |
14-
sudo dpkg --add-architecture riscv64
11+
# steps:
12+
# - uses: actions/checkout@v4
13+
# - name: Setup Riscv
14+
# run: |
15+
# sudo dpkg --add-architecture riscv64
1516

16-
# Add arch-specific repositories for non-amd64 architectures
17-
cat << EOF | sudo tee /etc/apt/sources.list.d/riscv64-ports.list
18-
deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ noble main universe
19-
deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ noble-updates main universe
20-
deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ noble-security main universe
21-
deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ noble-backports main universe
22-
EOF
17+
# # Add arch-specific repositories for non-amd64 architectures
18+
# cat << EOF | sudo tee /etc/apt/sources.list.d/riscv64-ports.list
19+
# deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ noble main universe
20+
# deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ noble-updates main universe
21+
# deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ noble-security main universe
22+
# deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ noble-backports main universe
23+
# EOF
2324

24-
sudo apt-get update || true ;# Prevent failure due to missing URLs.
25+
# sudo apt-get update || true ;# Prevent failure due to missing URLs.
2526

26-
sudo apt-get install -y --no-install-recommends \
27-
build-essential \
28-
gcc-14-riscv64-linux-gnu \
29-
g++-14-riscv64-linux-gnu
27+
# sudo apt-get install -y --no-install-recommends \
28+
# build-essential \
29+
# gcc-14-riscv64-linux-gnu \
30+
# g++-14-riscv64-linux-gnu
3031

31-
- name: Build
32-
run: |
33-
cmake -B build -DLLAMA_CURL=OFF \
34-
-DCMAKE_BUILD_TYPE=Release \
35-
-DGGML_OPENMP=OFF \
36-
-DLLAMA_BUILD_EXAMPLES=ON \
37-
-DLLAMA_BUILD_TOOLS=ON \
38-
-DLLAMA_BUILD_TESTS=OFF \
39-
-DCMAKE_SYSTEM_NAME=Linux \
40-
-DCMAKE_SYSTEM_PROCESSOR=riscv64 \
41-
-DCMAKE_C_COMPILER=riscv64-linux-gnu-gcc-14 \
42-
-DCMAKE_CXX_COMPILER=riscv64-linux-gnu-g++-14 \
43-
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
44-
-DCMAKE_FIND_ROOT_PATH=/usr/lib/riscv64-linux-gnu \
45-
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
46-
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
47-
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH
32+
# - name: Build
33+
# run: |
34+
# cmake -B build -DLLAMA_CURL=OFF \
35+
# -DCMAKE_BUILD_TYPE=Release \
36+
# -DGGML_OPENMP=OFF \
37+
# -DLLAMA_BUILD_EXAMPLES=ON \
38+
# -DLLAMA_BUILD_TOOLS=ON \
39+
# -DLLAMA_BUILD_TESTS=OFF \
40+
# -DCMAKE_SYSTEM_NAME=Linux \
41+
# -DCMAKE_SYSTEM_PROCESSOR=riscv64 \
42+
# -DCMAKE_C_COMPILER=riscv64-linux-gnu-gcc-14 \
43+
# -DCMAKE_CXX_COMPILER=riscv64-linux-gnu-g++-14 \
44+
# -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
45+
# -DCMAKE_FIND_ROOT_PATH=/usr/lib/riscv64-linux-gnu \
46+
# -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
47+
# -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
48+
# -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH
4849

49-
cmake --build build --config Release -j $(nproc)
50+
# cmake --build build --config Release -j $(nproc)
5051

5152
# ubuntu-24-riscv64-vulkan-cross:
5253
# runs-on: ubuntu-24.04
@@ -141,49 +142,50 @@ jobs:
141142

142143
# cmake --build build --config Release -j $(nproc)
143144

144-
ubuntu-24-ppc64el-cpu-cross:
145-
runs-on: ubuntu-24.04
145+
# Disabled. Fails to install some dependencies from arch-specific repositories.
146+
# ubuntu-24-ppc64el-cpu-cross:
147+
# runs-on: ubuntu-24.04
146148

147-
steps:
148-
- uses: actions/checkout@v4
149-
- name: Setup PowerPC64le
150-
run: |
151-
sudo dpkg --add-architecture ppc64el
149+
# steps:
150+
# - uses: actions/checkout@v4
151+
# - name: Setup PowerPC64le
152+
# run: |
153+
# sudo dpkg --add-architecture ppc64el
152154

153-
# Add arch-specific repositories for non-amd64 architectures
154-
cat << EOF | sudo tee /etc/apt/sources.list.d/ppc64el-ports.list
155-
deb [arch=ppc64el] http://ports.ubuntu.com/ubuntu-ports/ noble main universe
156-
deb [arch=ppc64el] http://ports.ubuntu.com/ubuntu-ports/ noble-updates main universe
157-
deb [arch=ppc64el] http://ports.ubuntu.com/ubuntu-ports/ noble-security main universe
158-
deb [arch=ppc64el] http://ports.ubuntu.com/ubuntu-ports/ noble-backports main universe
159-
EOF
155+
# # Add arch-specific repositories for non-amd64 architectures
156+
# cat << EOF | sudo tee /etc/apt/sources.list.d/ppc64el-ports.list
157+
# deb [arch=ppc64el] http://ports.ubuntu.com/ubuntu-ports/ noble main universe
158+
# deb [arch=ppc64el] http://ports.ubuntu.com/ubuntu-ports/ noble-updates main universe
159+
# deb [arch=ppc64el] http://ports.ubuntu.com/ubuntu-ports/ noble-security main universe
160+
# deb [arch=ppc64el] http://ports.ubuntu.com/ubuntu-ports/ noble-backports main universe
161+
# EOF
160162

161-
sudo apt-get update || true ;# Prevent failure due to missing URLs.
163+
# sudo apt-get update || true ;# Prevent failure due to missing URLs.
162164

163-
sudo apt-get install -y --no-install-recommends \
164-
build-essential \
165-
gcc-14-powerpc64le-linux-gnu \
166-
g++-14-powerpc64le-linux-gnu
165+
# sudo apt-get install -y --no-install-recommends \
166+
# build-essential \
167+
# gcc-14-powerpc64le-linux-gnu \
168+
# g++-14-powerpc64le-linux-gnu
167169

168-
- name: Build
169-
run: |
170-
cmake -B build -DLLAMA_CURL=OFF \
171-
-DCMAKE_BUILD_TYPE=Release \
172-
-DGGML_OPENMP=OFF \
173-
-DLLAMA_BUILD_EXAMPLES=ON \
174-
-DLLAMA_BUILD_TOOLS=ON \
175-
-DLLAMA_BUILD_TESTS=OFF \
176-
-DCMAKE_SYSTEM_NAME=Linux \
177-
-DCMAKE_SYSTEM_PROCESSOR=ppc64 \
178-
-DCMAKE_C_COMPILER=powerpc64le-linux-gnu-gcc-14 \
179-
-DCMAKE_CXX_COMPILER=powerpc64le-linux-gnu-g++-14 \
180-
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
181-
-DCMAKE_FIND_ROOT_PATH=/usr/lib/powerpc64le-linux-gnu \
182-
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
183-
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
184-
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH
170+
# - name: Build
171+
# run: |
172+
# cmake -B build -DLLAMA_CURL=OFF \
173+
# -DCMAKE_BUILD_TYPE=Release \
174+
# -DGGML_OPENMP=OFF \
175+
# -DLLAMA_BUILD_EXAMPLES=ON \
176+
# -DLLAMA_BUILD_TOOLS=ON \
177+
# -DLLAMA_BUILD_TESTS=OFF \
178+
# -DCMAKE_SYSTEM_NAME=Linux \
179+
# -DCMAKE_SYSTEM_PROCESSOR=ppc64 \
180+
# -DCMAKE_C_COMPILER=powerpc64le-linux-gnu-gcc-14 \
181+
# -DCMAKE_CXX_COMPILER=powerpc64le-linux-gnu-g++-14 \
182+
# -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
183+
# -DCMAKE_FIND_ROOT_PATH=/usr/lib/powerpc64le-linux-gnu \
184+
# -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
185+
# -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
186+
# -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH
185187

186-
cmake --build build --config Release -j $(nproc)
188+
# cmake --build build --config Release -j $(nproc)
187189

188190
# ubuntu-24-ppc64el-vulkan-cross:
189191
# runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)