work on workflows #5
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 -j$(getconf _NPROCESSORS_ONLN) CONFIG_WERROR=y qjs | ||
./qjs -qd | ||
- name: test | ||
run: | | ||
make -j$(getconf _NPROCESSORS_ONLN) CONFIG_WERROR=y test | ||
- name: microbench | ||
run: | | ||
make -j$(getconf _NPROCESSORS_ONLN) 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 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 | ||
- name: test | ||
env: | ||
MSAN_OPTIONS: halt_on_error=1 | ||
run: | | ||
make 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 test | ||
macos: | ||
runs-on: macos-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: build | ||
run: | | ||
make -j$(getconf _NPROCESSORS_ONLN) | ||
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 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 test |