-
Notifications
You must be signed in to change notification settings - Fork 16
36 lines (32 loc) · 936 Bytes
/
cpp.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
name: C++
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
NYXSTONE_LLVM_PREFIX: "/usr/lib/llvm-15/"
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Packages
run: sudo apt-get install llvm-15 llvm-15-dev zlib1g-dev libzstd-dev libboost-program-options-dev cppcheck clang-tidy clang-format
- name: Code quality - fmt
run: ./tool/format.sh check
- name: Code quality - cppcheck
run: ./tool/static-analysis-cppcheck.sh
- name: Code quality - clang-tidy
run: ./tool/static-analysis-tidy.sh
- name: Build
run: mkdir build/ && cd build && cmake .. && make
- name: Test
run: make test
working-directory: build/
- name: cli
run: |
./nyxstone "mov rax, rbx" &&
./nyxstone "jmp label" --labels "label=0x1000"
working-directory: build/