-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (45 loc) · 1.43 KB
/
test.yml
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
name: Test
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
# https://apt.llvm.org/bookworm/dists/
llvm-version:
# TODO: add 14 to ensure support for Ubuntu 22.04. LLVM doesn't build
# 14 for Bookworm, so we could switch to Bullseye, or use some other
# means of testing against LLVM 14. We've manually confirmed 14 works,
# but having automated tests would ensure compatibility as development
# continues. Tracking upstream request here:
# https://github.com/opencollab/llvm-jenkins.debian.net/issues/27
- "15"
- "16"
- "17"
- "18"
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build image (LLVM ${{ matrix.llvm-version }})
uses: docker/build-push-action@v5
with:
push: false
load: true
tags: ruzzy
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
LLVM_VERSION=${{ matrix.llvm-version }}
- name: Run tests
run: |
docker run \
--env LD_PRELOAD=$(docker run --entrypoint ruby ruzzy -e 'require "ruzzy"; print Ruzzy::ASAN_PATH') \
--entrypoint rake \
ruzzy test