-
-
Notifications
You must be signed in to change notification settings - Fork 82
81 lines (59 loc) · 1.73 KB
/
build.yml
File metadata and controls
81 lines (59 loc) · 1.73 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
name: Build
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
build:
name: Build
runs-on: ubicloud-standard-2
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Add LLVM apt Repo
run: |-
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-21 main"
sudo apt update
- name: Install APT dependencies
run: xargs sudo apt-get install -y --no-install-recommends < Aptfile
- name: Install valgrind
run: |-
sudo apt install -y libc6-dbg
sudo snap install --classic valgrind
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Render Templates
run: bundle exec rake templates
- name: Compile Herb
run: make
- name: Compile Ruby extension
run: bundle exec rake compile
- name: Run Ruby Tests
run: bundle exec rake test
- name: Steep
run: bundle exec steep check
- name: RBS Inline
run: bundle exec rake rbs_inline
# - name: Sorbet
# run: bundle exec srb tc
- name: Run C tests
run: make test && ./run_herb_tests
- name: Run valgrind on examples/
run: ./bin/valgrind_check_examples
- name: clang-format version
run: clang-format-21 --version
- name: Lint
run: bin/lint
- name: clang-tidy version
run: clang-tidy-21 --version
- name: Tidy
run: bin/tidy
- name: RuboCop
run: bundle exec rubocop