-
Notifications
You must be signed in to change notification settings - Fork 1.1k
54 lines (47 loc) · 1.64 KB
/
testing-ecosystem.yml
File metadata and controls
54 lines (47 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Ecosystem
on:
pull_request:
types: [ opened, synchronize, reopened ]
paths:
- '**.h'
- '**.c'
- '**.cpp'
- 'CMakeLists.txt'
- '**.cmake'
- '.github/workflows/testing-ecosystem.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
env:
LLVM_VERSION: 22
jobs:
check_ubuntu:
if: "!contains(github.event.pull_request.labels.*.name, 'skip_buildbots')"
name: CMake configure (Ubuntu 24.04)
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
# Get new enough LLVM from apt.llvm.org
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
echo "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-${LLVM_VERSION} main" | \
sudo tee "/etc/apt/sources.list.d/llvm-${LLVM_VERSION}.list"
# Get everything else from upstream Ubuntu
sudo apt-get update && sudo apt-get install -y \
"clang-${LLVM_VERSION}" \
curl \
flatbuffers-compiler \
"libclang-${LLVM_VERSION}-dev" \
libedit-dev \
libflatbuffers-dev \
libpng-dev \
libjpeg-turbo8-dev \
"liblld-${LLVM_VERSION}-dev" \
"lld-${LLVM_VERSION}" \
"llvm-${LLVM_VERSION}-dev" \
pybind11-dev
- name: Check CMake configures
run: cmake --preset ubuntu-release -DHalide_LLVM_ROOT="/usr/lib/llvm-${LLVM_VERSION}"