Repository navigation
79 lines (67 loc) · 2.04 KB
/
Copy pathci-linux.yml
File metadata and controls
79 lines (67 loc) · 2.04 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: "CI - Linux Meson Build"
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
workflow_dispatch:
jobs:
build:
name: meson build (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-22.04, ubuntu-24.04 ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 1
- name: Override submodules from PR title
if: github.event_name == 'pull_request'
uses: ./.github/actions/override-submodules-from-pr
with:
pr-title: ${{ github.event.pull_request.title }}
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
cmake \
pkg-config \
libopenblas-dev \
libiniparser-dev \
libomp-dev \
libflatbuffers-dev \
flatbuffers-compiler \
libgtest-dev \
libgmock-dev
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install meson and ninja
run: pip install meson ninja
- name: Meson setup
run: meson setup build -Denable-test=true
- name: Build
run: ninja -C build
- name: Verify build artifacts
run: |
test -f build/libquick_dot_ai.so
test -x build/quick_dot_ai_run
test -x build/quick_dot_ai_quantize
test -x build/quick_dot_ai_test_api
./build/quick_dot_ai_run 2>&1 | head -1 || true
./build/quick_dot_ai_quantize 2>&1 | head -1 || true
- name: Run unit tests
run: meson test -C build --print-errorlogs
- name: Upload meson test log on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: meson-testlog-${{ matrix.os }}
path: build/meson-logs/testlog.txt
if-no-files-found: ignore