ci : do not allocate ccache for 3rd-party hosted runners (#23730)
* ci : do not allocate ccache for 3rd-party hosted runners [no release] * cont : add prints [no ci] [no release]
This commit is contained in:
@@ -58,17 +58,20 @@ jobs:
|
|||||||
ldd --version
|
ldd --version
|
||||||
cmake --version
|
cmake --version
|
||||||
rustc --version
|
rustc --version
|
||||||
|
env
|
||||||
|
echo "nproc=$(nproc)"
|
||||||
|
|
||||||
- name: Clone
|
- name: Clone
|
||||||
id: checkout
|
id: checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: ccache
|
# note: sparing some ccache since these jobs run on dedicated runners that are not part of the organitzation
|
||||||
uses: ggml-org/ccache-action@afde29e5b5422e5da23cb1f639e8baecadeadfc3 # https://github.com/ggml-org/ccache-action/pull/1
|
#- name: ccache
|
||||||
with:
|
# uses: ggml-org/ccache-action@afde29e5b5422e5da23cb1f639e8baecadeadfc3 # https://github.com/ggml-org/ccache-action/pull/1
|
||||||
key: ubuntu-cpu-riscv64-native
|
# with:
|
||||||
evict-old-files: 1d
|
# key: ubuntu-cpu-riscv64-native
|
||||||
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
# evict-old-files: 1d
|
||||||
|
# save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
id: cmake_build
|
id: cmake_build
|
||||||
@@ -132,12 +135,13 @@ jobs:
|
|||||||
id: checkout
|
id: checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: ccache
|
# note: sparing some ccache since these jobs run on dedicated runners that are not part of the organitzation
|
||||||
uses: ggml-org/ccache-action@afde29e5b5422e5da23cb1f639e8baecadeadfc3 # https://github.com/ggml-org/ccache-action/pull/1
|
#- name: ccache
|
||||||
with:
|
# uses: ggml-org/ccache-action@afde29e5b5422e5da23cb1f639e8baecadeadfc3 # https://github.com/ggml-org/ccache-action/pull/1
|
||||||
key: ubuntu-riscv64-native-sanitizer-${{ matrix.sanitizer }}-${{ matrix.build_type }}
|
# with:
|
||||||
evict-old-files: 1d
|
# key: ubuntu-riscv64-native-sanitizer-${{ matrix.sanitizer }}-${{ matrix.build_type }}
|
||||||
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
# evict-old-files: 1d
|
||||||
|
# save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
id: cmake_build
|
id: cmake_build
|
||||||
|
|||||||
@@ -354,3 +354,52 @@ jobs:
|
|||||||
# id: ggml-ci
|
# id: ggml-ci
|
||||||
# run: |
|
# run: |
|
||||||
# GG_BUILD_KLEIDIAI=1 GG_BUILD_EXTRA_TESTS_0=1 bash ./ci/run.sh ~/results/llama.cpp ~/mnt/llama.cpp
|
# GG_BUILD_KLEIDIAI=1 GG_BUILD_EXTRA_TESTS_0=1 bash ./ci/run.sh ~/results/llama.cpp ~/mnt/llama.cpp
|
||||||
|
|
||||||
|
ggml-ci-arm64-cpu-kleidiai-graviton4:
|
||||||
|
runs-on: ah-ubuntu_22_04-c8g_8x
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Clone
|
||||||
|
id: checkout
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Dependencies
|
||||||
|
id: depends
|
||||||
|
run: |
|
||||||
|
set -euxo pipefail
|
||||||
|
sudo apt-get update
|
||||||
|
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a \
|
||||||
|
apt-get install -y \
|
||||||
|
build-essential \
|
||||||
|
python3-venv \
|
||||||
|
gpg \
|
||||||
|
wget \
|
||||||
|
time \
|
||||||
|
git-lfs
|
||||||
|
|
||||||
|
git lfs install
|
||||||
|
|
||||||
|
# install the latest cmake
|
||||||
|
sudo install -d /usr/share/keyrings
|
||||||
|
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc \
|
||||||
|
| gpg --dearmor \
|
||||||
|
| sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
|
||||||
|
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy main' \
|
||||||
|
| sudo tee /etc/apt/sources.list.d/kitware.list
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y cmake
|
||||||
|
|
||||||
|
# note: sparing some ccache since these jobs run on dedicated runners that are not part of the organitzation
|
||||||
|
#- name: ccache
|
||||||
|
# uses: ggml-org/ccache-action@v1.2.21
|
||||||
|
# with:
|
||||||
|
# key: ggml-ci-arm64-cpu-kleidiai-graviton4
|
||||||
|
# evict-old-files: 1d
|
||||||
|
# save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
id: ggml-ci
|
||||||
|
run: |
|
||||||
|
GG_BUILD_KLEIDIAI=1 \
|
||||||
|
GG_BUILD_EXTRA_TESTS_0=1 \
|
||||||
|
bash ./ci/run.sh ./tmp/results ./tmp/mnt
|
||||||
|
|||||||
@@ -516,51 +516,3 @@ jobs:
|
|||||||
id: ggml-ci
|
id: ggml-ci
|
||||||
run: |
|
run: |
|
||||||
GG_BUILD_KLEIDIAI=1 GG_BUILD_EXTRA_TESTS_0=1 bash ./ci/run.sh ./tmp/results ./tmp/mnt
|
GG_BUILD_KLEIDIAI=1 GG_BUILD_EXTRA_TESTS_0=1 bash ./ci/run.sh ./tmp/results ./tmp/mnt
|
||||||
|
|
||||||
ggml-ci-arm64-cpu-kleidiai-graviton4:
|
|
||||||
runs-on: ah-ubuntu_22_04-c8g_8x
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Clone
|
|
||||||
id: checkout
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
|
|
||||||
- name: Dependencies
|
|
||||||
id: depends
|
|
||||||
run: |
|
|
||||||
set -euxo pipefail
|
|
||||||
sudo apt-get update
|
|
||||||
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a \
|
|
||||||
apt-get install -y \
|
|
||||||
build-essential \
|
|
||||||
python3-venv \
|
|
||||||
gpg \
|
|
||||||
wget \
|
|
||||||
time \
|
|
||||||
git-lfs
|
|
||||||
|
|
||||||
git lfs install
|
|
||||||
|
|
||||||
# install the latest cmake
|
|
||||||
sudo install -d /usr/share/keyrings
|
|
||||||
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc \
|
|
||||||
| gpg --dearmor \
|
|
||||||
| sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
|
|
||||||
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy main' \
|
|
||||||
| sudo tee /etc/apt/sources.list.d/kitware.list
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y cmake
|
|
||||||
|
|
||||||
- name: ccache
|
|
||||||
uses: ggml-org/ccache-action@v1.2.21
|
|
||||||
with:
|
|
||||||
key: ggml-ci-arm64-cpu-kleidiai-graviton4
|
|
||||||
evict-old-files: 1d
|
|
||||||
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
id: ggml-ci
|
|
||||||
run: |
|
|
||||||
GG_BUILD_KLEIDIAI=1 \
|
|
||||||
GG_BUILD_EXTRA_TESTS_0=1 \
|
|
||||||
bash ./ci/run.sh ./tmp/results ./tmp/mnt
|
|
||||||
|
|||||||
Reference in New Issue
Block a user