-
Notifications
You must be signed in to change notification settings - Fork 118
92 lines (77 loc) · 2.49 KB
/
Copy pathci_linux.yml
File metadata and controls
92 lines (77 loc) · 2.49 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
80
81
82
83
84
85
86
87
88
89
90
91
92
# .github/workflows/ci_linux.yml
name: CI – Linux
on:
pull_request:
branches: [main, develop]
workflow_dispatch: {}
jobs:
build_and_test:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
# 1️⃣ Checkout the repository
- name: Checkout repository
uses: actions/checkout@v6
# 2️⃣ Install Bazelisk (recommended Bazel launcher)
- name: Setup Bazelisk
uses: bazel-contrib/setup-bazel@0.19.0
with:
bazelisk-version: "1.29.0"
# 3️⃣ (Optional) Install Doxygen for documentation generation
- name: Install Doxygen
run: sudo apt-get update && sudo apt-get install -y doxygen
# 4️⃣ Build all targets
- name: Build all targets
run: bazel build --verbose_failures //...
# 6️⃣ Run all tests (including Python)
- name: Run all tests
run: bazel test --verbose_failures //...
# 7️⃣ Upload test logs
- name: Upload test logs - Linux
if: always()
uses: actions/upload-artifact@v6
with:
name: bazel-test-logs-linux
path: bazel-testlogs/
if-no-files-found: ignore
retention-days: 30
asan:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup Bazelisk
uses: bazel-contrib/setup-bazel@0.19.0
with:
bazelisk-version: "1.29.0"
- name: Run tests (AddressSanitizer)
run: bazel test --config=asan --verbose_failures --test_output=errors //library/tests/...
- name: Upload ASAN test logs
if: always()
uses: actions/upload-artifact@v6
with:
name: bazel-test-logs-linux-asan
path: bazel-testlogs/
if-no-files-found: ignore
retention-days: 30
tsan:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup Bazelisk
uses: bazel-contrib/setup-bazel@0.19.0
with:
bazelisk-version: "1.29.0"
- name: Run system tests (ThreadSanitizer)
run: bazel test --config=tsan --verbose_failures --test_output=errors //library/tests/system/...
- name: Upload TSAN test logs
if: always()
uses: actions/upload-artifact@v6
with:
name: bazel-test-logs-linux-tsan
path: bazel-testlogs/
if-no-files-found: ignore
retention-days: 30