Refactor according to some internal and external recommendations #41
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C++ | |
on: | |
push: | |
paths: | |
- src/** | |
- include/** | |
- examples/** | |
- tool/** | |
- CMakeLists.txt | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
paths: | |
- src/** | |
- include/** | |
- examples/** | |
- tool/** | |
- CMakeLists.txt | |
env: | |
CARGO_TERM_COLOR: always | |
NYXSTONE_LLVM_PREFIX: "/usr/lib/llvm-15/" | |
jobs: | |
build: | |
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 | |
run: ./tool/format.sh check && ./tool/static-analysis-cppcheck.sh && ./tool/static-analysis-tidy.sh | |
- name: Build | |
run: mkdir build/ && cd build && cmake .. && make | |
- name: Sample | |
run: ./build/sample | |
- name: cli | |
run: ./build/nstone -A "mov rax, rbx" |