Don't build cstool arch specific details printing, if not requested. #1
Workflow file for this run
This file contains hidden or 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: CSTOOL | |
| on: | |
| push: | |
| paths-ignore: | |
| - ".gitignore" | |
| - "docs/**" | |
| - "ChangeLog" | |
| - "CREDITS.TXT" | |
| - "COMPILE_MAKE.TXT" | |
| - "BUILDING.md" | |
| - "CONTRIBUTING.md" | |
| - "LICENSE.TXT" | |
| - "LICENSE_LLVM.TXT" | |
| - "README.md" | |
| - "RELEASE_NOTES" | |
| - "SPONSORS.TXT" | |
| - "TODO" | |
| pull_request: | |
| # Stop previous runs on the same branch on new push | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| CI: true | |
| UBSAN_OPTIONS: "halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1" | |
| ASAN_OPTIONS: "halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1" | |
| LSAN_OPTIONS: "halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1" | |
| jobs: | |
| Linux: | |
| runs-on: ${{ matrix.config.os }} | |
| name: ${{ matrix.config.name }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - { | |
| name: 'CAPSTONE_X86_SUPPORT only', | |
| diet-build: 'OFF', | |
| enable-asan: 'ON', | |
| build_type: 'Debug', | |
| build_options: '-DCAPSTONE_ARCHITECTURE_DEFAULT=OFF', | |
| insn_bytes: '', | |
| cs_arch: 'x86' | |
| } | |
| - { | |
| name: 'CAPSTONE_ARM_SUPPORT only', | |
| diet-build: 'OFF', | |
| enable-asan: 'ON', | |
| build_type: 'Debug', | |
| build_options: '-DCAPSTONE_ARCHITECTURE_DEFAULT=OFF', | |
| insn_bytes: 'f0ff2005', | |
| cs_arch: 'arm+thumb' | |
| } | |
| - { | |
| name: 'CAPSTONE_AARCH64_SUPPORT only', | |
| diet-build: 'OFF', | |
| enable-asan: 'ON', | |
| build_type: 'Debug', | |
| build_options: '-DCAPSTONE_ARCHITECTURE_DEFAULT=OFF', | |
| insn_bytes: '2090226f', | |
| cs_arch: 'aarch64' | |
| } | |
| - { | |
| name: 'CAPSTONE_MIPS_SUPPORT only', | |
| diet-build: 'OFF', | |
| enable-asan: 'ON', | |
| build_type: 'Debug', | |
| build_options: '-DCAPSTONE_ARCHITECTURE_DEFAULT=OFF', | |
| insn_bytes: '', | |
| cs_arch: 'mips' | |
| } | |
| - { | |
| name: 'CAPSTONE_PPC_SUPPORT only', | |
| diet-build: 'OFF', | |
| enable-asan: 'ON', | |
| build_type: 'Debug', | |
| build_options: '-DCAPSTONE_ARCHITECTURE_DEFAULT=OFF', | |
| insn_bytes: '', | |
| cs_arch: 'ppc' | |
| } | |
| - { | |
| name: 'CAPSTONE_SPARC_SUPPORT only', | |
| diet-build: 'OFF', | |
| enable-asan: 'ON', | |
| build_type: 'Debug', | |
| build_options: '-DCAPSTONE_ARCHITECTURE_DEFAULT=OFF', | |
| insn_bytes: '', | |
| cs_arch: 'sparc' | |
| } | |
| - { | |
| name: 'CAPSTONE_SYSTEMZ_SUPPORT only', | |
| diet-build: 'OFF', | |
| enable-asan: 'ON', | |
| build_type: 'Debug', | |
| build_options: '-DCAPSTONE_ARCHITECTURE_DEFAULT=OFF', | |
| insn_bytes: '', | |
| cs_arch: 'systemz' | |
| } | |
| - { | |
| name: 'CAPSTONE_XCORE_SUPPORT only', | |
| diet-build: 'OFF', | |
| enable-asan: 'ON', | |
| build_type: 'Debug', | |
| build_options: '-DCAPSTONE_ARCHITECTURE_DEFAULT=OFF', | |
| insn_bytes: '', | |
| cs_arch: 'xcore' | |
| } | |
| - { | |
| name: 'CAPSTONE_M68K_SUPPORT only', | |
| diet-build: 'OFF', | |
| enable-asan: 'ON', | |
| build_type: 'Debug', | |
| build_options: '-DCAPSTONE_ARCHITECTURE_DEFAULT=OFF', | |
| insn_bytes: '', | |
| cs_arch: 'm68k' | |
| } | |
| - { | |
| name: 'CAPSTONE_TMS320C64X_SUPPORT only', | |
| diet-build: 'OFF', | |
| enable-asan: 'ON', | |
| build_type: 'Debug', | |
| build_options: '-DCAPSTONE_ARCHITECTURE_DEFAULT=OFF', | |
| insn_bytes: '', | |
| cs_arch: 'tms320c64x' | |
| } | |
| - { | |
| name: 'CAPSTONE_M680X_SUPPORT only', | |
| diet-build: 'OFF', | |
| enable-asan: 'ON', | |
| build_type: 'Debug', | |
| build_options: '-DCAPSTONE_ARCHITECTURE_DEFAULT=OFF', | |
| insn_bytes: '', | |
| cs_arch: 'm680x' | |
| } | |
| - { | |
| name: 'CAPSTONE_EVM_SUPPORT only', | |
| diet-build: 'OFF', | |
| enable-asan: 'ON', | |
| build_type: 'Debug', | |
| build_options: '-DCAPSTONE_ARCHITECTURE_DEFAULT=OFF', | |
| insn_bytes: '', | |
| cs_arch: 'evm' | |
| } | |
| - { | |
| name: 'CAPSTONE_WASM_SUPPORT only', | |
| diet-build: 'OFF', | |
| enable-asan: 'ON', | |
| build_type: 'Debug', | |
| build_options: '-DCAPSTONE_ARCHITECTURE_DEFAULT=OFF', | |
| insn_bytes: '', | |
| cs_arch: 'wasm' | |
| } | |
| - { | |
| name: 'CAPSTONE_MOS65XX_SUPPORT only', | |
| diet-build: 'OFF', | |
| enable-asan: 'ON', | |
| build_type: 'Debug', | |
| build_options: '-DCAPSTONE_ARCHITECTURE_DEFAULT=OFF', | |
| insn_bytes: 'a112a512', | |
| cs_arch: '6502' | |
| } | |
| - { | |
| name: 'CAPSTONE_BPF_SUPPORT only', | |
| diet-build: 'OFF', | |
| enable-asan: 'ON', | |
| build_type: 'Debug', | |
| build_options: '-DCAPSTONE_ARCHITECTURE_DEFAULT=OFF', | |
| insn_bytes: 'c6c70fcc431fb9f5', | |
| cs_arch: 'ebpf' | |
| } | |
| - { | |
| name: 'CAPSTONE_RISCV_SUPPORT only', | |
| diet-build: 'OFF', | |
| enable-asan: 'ON', | |
| build_type: 'Debug', | |
| build_options: '-DCAPSTONE_ARCHITECTURE_DEFAULT=OFF', | |
| insn_bytes: '57144a14', | |
| cs_arch: 'riscv64+v+fd' | |
| } | |
| - { | |
| name: 'CAPSTONE_SH_SUPPORT only', | |
| diet-build: 'OFF', | |
| enable-asan: 'ON', | |
| build_type: 'Debug', | |
| build_options: '-DCAPSTONE_ARCHITECTURE_DEFAULT=OFF', | |
| insn_bytes: '3211920032493100 ', | |
| cs_arch: 'sh2a-fpu' | |
| } | |
| - { | |
| name: 'CAPSTONE_TRICORE_SUPPORT only', | |
| diet-build: 'OFF', | |
| enable-asan: 'ON', | |
| build_type: 'Debug', | |
| build_options: '-DCAPSTONE_ARCHITECTURE_DEFAULT=OFF', | |
| insn_bytes: '17016002', | |
| cs_arch: 'tricore' | |
| } | |
| - { | |
| name: 'CAPSTONE_ALPHA_SUPPORT only', | |
| diet-build: 'OFF', | |
| enable-asan: 'ON', | |
| build_type: 'Debug', | |
| build_options: '-DCAPSTONE_ARCHITECTURE_DEFAULT=OFF', | |
| insn_bytes: 'c3002248', | |
| cs_arch: 'alpha' | |
| } | |
| - { | |
| name: 'CAPSTONE_HPPA_SUPPORT only', | |
| diet-build: 'OFF', | |
| enable-asan: 'ON', | |
| build_type: 'Debug', | |
| build_options: '-DCAPSTONE_ARCHITECTURE_DEFAULT=OFF', | |
| insn_bytes: 'a04137e5', | |
| cs_arch: 'hppa20be' | |
| } | |
| - { | |
| name: 'CAPSTONE_LOONGARCH_SUPPORT only', | |
| diet-build: 'OFF', | |
| enable-asan: 'ON', | |
| build_type: 'Debug', | |
| build_options: '-DCAPSTONE_ARCHITECTURE_DEFAULT=OFF', | |
| insn_bytes: '40b2aa74', | |
| cs_arch: 'loongarch64' | |
| } | |
| - { | |
| name: 'CAPSTONE_XTENSA_SUPPORT only', | |
| diet-build: 'OFF', | |
| enable-asan: 'ON', | |
| build_type: 'Debug', | |
| build_options: '-DCAPSTONE_ARCHITECTURE_DEFAULT=OFF', | |
| insn_bytes: 'f60900', | |
| cs_arch: 'xtensa' | |
| } | |
| - { | |
| name: 'CAPSTONE_ARC_SUPPORT only', | |
| diet-build: 'OFF', | |
| enable-asan: 'ON', | |
| build_type: 'Debug', | |
| build_options: '-DCAPSTONE_ARCHITECTURE_DEFAULT=OFF', | |
| insn_bytes: '3178', | |
| cs_arch: 'arc' | |
| } | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: cmake | |
| env: | |
| asan: ${{ matrix.config.enable-asan }} | |
| build_option: ${{ matrix.config.build_option }} | |
| build_type: ${{ matrix.config.build_type }} | |
| run: | | |
| cmake -DCMAKE_BUILD_TYPE=${build_type} -DCAPSTONE_INSTALL=1 -DCAPSTONE_BUILD_SHARED_LIBS=1 -DCMAKE_INSTALL_PREFIX=/usr -DCAPSTONE_BUILD_CSTEST=ON -DENABLE_ASAN=${asan} ${build_option} .. | |
| sudo cmake --build . --config ${build_type} --target install | |
| - name: Run cstest | |
| env: | |
| insn_bytes: ${{ matrix.config.insn_bytes }} | |
| cs_arch: ${{ matrix.config.cs_arch }} | |
| run: | | |
| cstool -d ${cs_arch} ${insn_bytes} | |