Skip to content

Feature flags to configure linking (dynamic or static) #209

Feature flags to configure linking (dynamic or static)

Feature flags to configure linking (dynamic or static) #209

Workflow file for this run

name: C++
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
linux-llvm-15:
runs-on: ubuntu-latest
env:
NYXSTONE_LLVM_PREFIX: "/usr/lib/llvm-15/"
steps:
- uses: actions/checkout@v4
- name: Packages
run: |
sudo apt-get update
sudo apt-get install zlib1g-dev libzstd-dev cppcheck clang-tidy clang-format llvm-15 llvm-15-dev
- 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
working-directory: build/
run: make test
- name: cli
working-directory: build/
run: |
./nyxstone "mov rax, rbx"
./nyxstone "jmp label" --labels "label=0x1000"
mac-llvm-15:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Packages
run: brew install llvm@15
- name: Build
run: |
mkdir build
cd build
NYXSTONE_LLVM_PREFIX="$(brew --prefix llvm@15)" cmake ..
make
- name: Test
working-directory: build/
run: make test
- name: cli
working-directory: build/
run: |
./nyxstone "mov rax, rbx"
./nyxstone "jmp label" --labels "label=0x1000"
mac-llvm-16:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Packages
run: brew install llvm@16
- name: Build
run: |
mkdir build
cd build
NYXSTONE_LLVM_PREFIX="$(brew --prefix llvm@16)" cmake ..
make
- name: Test
working-directory: build/
run: make test
- name: cli
working-directory: build/
run: |
./nyxstone "mov rax, rbx"
./nyxstone "jmp label" --labels "label=0x1000"
mac-llvm-17:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Packages
run: brew install llvm@17
- name: Build
run: |
mkdir build
cd build
NYXSTONE_LLVM_PREFIX="$(brew --prefix llvm@17)" cmake ..
make
- name: Test
working-directory: build/
run: make test
- name: cli
working-directory: build/
run: |
./nyxstone "mov rax, rbx"
./nyxstone "jmp label" --labels "label=0x1000"
mac-llvm-18:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Packages
run: brew install llvm@18
- name: Build
run: |
mkdir build
cd build
NYXSTONE_LLVM_PREFIX="$(brew --prefix llvm@18)" cmake ..
make
- name: Test
working-directory: build/
run: make test
- name: cli
working-directory: build/
run: |
./nyxstone "mov rax, rbx"
./nyxstone "jmp label" --labels "label=0x1000"