Skip to content

Commit 82f6a14

Browse files
edg-ligaray
andauthored
Add old ubuntu 20.04 focal to ci (#1097)
* Add old ubuntu 20.04 focal to ci * add zstd * fix --------- Co-authored-by: Iñaki Garay <[email protected]>
1 parent a648601 commit 82f6a14

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,54 @@ jobs:
153153
- name: test-cairo
154154
run: make test-cairo
155155

156+
test-ubuntu-old:
157+
name: test ubuntu old (linux, amd64)
158+
runs-on: ubuntu-20.04
159+
env:
160+
MLIR_SYS_190_PREFIX: /usr/lib/llvm-19/
161+
LLVM_SYS_191_PREFIX: /usr/lib/llvm-19/
162+
TABLEGEN_190_PREFIX: /usr/lib/llvm-19/
163+
RUST_LOG: cairo_native=debug,cairo_native_test=debug
164+
steps:
165+
- uses: actions/checkout@v4
166+
- name: check and free hdd space left
167+
run: |
168+
echo "Listing 20 largest packages"
169+
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 20
170+
df -h
171+
sudo apt-get update
172+
sudo apt-get remove -y '^llvm-.*'
173+
sudo apt-get remove -y 'php.*'
174+
sudo apt-get remove -y '^dotnet-.*'
175+
sudo apt-get remove -y '^temurin-.*'
176+
sudo apt-get autoremove -y
177+
sudo apt-get clean
178+
df -h
179+
echo "Removing large directories"
180+
# deleting 15GB
181+
sudo rm -rf /usr/share/dotnet/
182+
sudo rm -rf /usr/local/lib/android
183+
df -h
184+
- name: Setup rust env
185+
uses: dtolnay/[email protected]
186+
- name: Retreive cached dependecies
187+
uses: Swatinem/rust-cache@v2
188+
- name: add llvm deb repository
189+
uses: myci-actions/add-deb-repo@11
190+
with:
191+
repo: deb http://apt.llvm.org/focal/ llvm-toolchain-focal-19 main
192+
repo-name: llvm-repo
193+
keys-asc: https://apt.llvm.org/llvm-snapshot.gpg.key
194+
- run: sudo apt-get update && sudo apt-get upgrade -y
195+
- name: Install LLVM
196+
run: sudo apt-get install libzstd-dev llvm-19 llvm-19-dev llvm-19-runtime clang-19 clang-tools-19 lld-19 libpolly-19-dev libmlir-19-dev mlir-19-tools
197+
- name: Install deps
198+
run: make deps
199+
- name: test
200+
run: make test-ci
201+
- name: test-cairo
202+
run: make test-cairo
203+
156204
test_macos:
157205
name: Test (macOS, Apple silicon)
158206
runs-on: macos-14

0 commit comments

Comments
 (0)