Skip to content

Commit 24650c2

Browse files
committed
chore(ci): use public runner for extra backends
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
1 parent 236ac30 commit 24650c2

File tree

4 files changed

+108
-47
lines changed

4 files changed

+108
-47
lines changed

.github/workflows/image.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ jobs:
3636
quayUsername: ${{ secrets.LOCALAI_REGISTRY_USERNAME }}
3737
quayPassword: ${{ secrets.LOCALAI_REGISTRY_PASSWORD }}
3838
strategy:
39-
max-parallel: 2
4039
matrix:
4140
include:
4241
- build-type: 'hipblas'
@@ -76,7 +75,7 @@ jobs:
7675
quayUsername: ${{ secrets.LOCALAI_REGISTRY_USERNAME }}
7776
quayPassword: ${{ secrets.LOCALAI_REGISTRY_PASSWORD }}
7877
strategy:
79-
max-parallel: ${{ github.event_name != 'pull_request' && 2 || 4 }}
78+
#max-parallel: ${{ github.event_name != 'pull_request' && 2 || 4 }}
8079
matrix:
8180
include:
8281
- build-type: ''

.github/workflows/image_build.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,22 @@ jobs:
8181
reusable_image-build:
8282
runs-on: ${{ inputs.runs-on }}
8383
steps:
84+
85+
- name: Free Disk Space (Ubuntu)
86+
if: inputs.runs-on == 'ubuntu-latest'
87+
uses: jlumbroso/free-disk-space@main
88+
with:
89+
# this might remove tools that are actually needed,
90+
# if set to "true" but frees about 6 GB
91+
tool-cache: false
92+
# all of these default to true, but feel free to set to
93+
# "false" if necessary for your workflow
94+
android: true
95+
dotnet: true
96+
haskell: true
97+
large-packages: true
98+
docker-images: true
99+
swap-storage: true
84100
- name: Force Install GIT latest
85101
run: |
86102
sudo apt-get update \
@@ -102,8 +118,8 @@ jobs:
102118
df -h
103119
echo
104120
sudo apt-get remove -y '^llvm-.*|^libllvm.*' || true
105-
sudo apt-get remove --auto-remove android-sdk-platform-tools || true
106-
sudo apt-get purge --auto-remove android-sdk-platform-tools || true
121+
sudo apt-get remove --auto-remove android-sdk-platform-tools snapd || true
122+
sudo apt-get purge --auto-remove android-sdk-platform-tools snapd || true
107123
sudo rm -rf /usr/local/lib/android
108124
sudo apt-get remove -y '^dotnet-.*|^aspnetcore-.*' || true
109125
sudo rm -rf /usr/share/dotnet

0 commit comments

Comments
 (0)