fix UB on bf_set
#13
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: ci | |
on: | |
pull_request: | |
paths: | |
- '**' | |
- '!.gitignore' | |
- '!LICENSE' | |
- '!TODO' | |
- '!doc/**' | |
- '!examples/**' | |
- '.github/workflows/ci.yml' | |
push: | |
branches: | |
- master | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: build | |
run: | | |
make -j$(getconf _NPROCESSORS_ONLN) CONFIG_WERROR=y | |
- name: stats | |
run: | | |
make CONFIG_WERROR=y qjs | |
./qjs -qd | |
- name: test | |
run: | | |
make CONFIG_WERROR=y test | |
- name: microbench | |
run: | | |
make CONFIG_WERROR=y microbench | |
linux-asan: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: build | |
run: | | |
make -j$(getconf _NPROCESSORS_ONLN) CONFIG_WERROR=y CONFIG_ASAN=ON | |
- name: test | |
env: | |
ASAN_OPTIONS: halt_on_error=1 | |
run: | | |
make CONFIG_ASAN=ON test | |
linux-msan: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: build | |
env: | |
CC: clang | |
run: | | |
make CONFIG_MSAN=ON CONFIG_CLANG=y | |
- name: test | |
env: | |
MSAN_OPTIONS: halt_on_error=1 | |
run: | | |
make CONFIG_MSAN=ON CONFIG_CLANG=y test | |
linux-ubsan: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: build | |
run: | | |
make CONFIG_UBSAN=ON | |
- name: test | |
env: | |
UBSAN_OPTIONS: halt_on_error=1 | |
run: | | |
make CONFIG_UBSAN=ON test | |
macos: | |
runs-on: macos-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: build | |
run: | | |
make -j$(getconf _NPROCESSORS_ONLN) | |
- name: stats | |
run: | | |
make CONFIG_WERROR=y qjs | |
./qjs -qd | |
- name: test | |
run: | | |
make CONFIG_WERROR=y test | |
macos-asan: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: build | |
run: | | |
make -j$(getconf _NPROCESSORS_ONLN) CONFIG_ASAN=ON | |
- name: test | |
env: | |
ASAN_OPTIONS: halt_on_error=1 | |
run: | | |
make CONFIG_ASAN=ON test | |
macos-ubsan: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: build | |
run: | | |
make -j$(getconf _NPROCESSORS_ONLN) CONFIG_UBSAN=ON | |
- name: test | |
env: | |
UBSAN_OPTIONS: halt_on_error=1 | |
run: | | |
make CONFIG_UBSAN=ON test |