forked from bellard/quickjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- disable `isatty()` test in `test_os()` - add `.github/workflows/ci.yml` with 8 targets
- Loading branch information
1 parent
06c100c
commit e17cb9f
Showing
2 changed files
with
143 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
name: ci | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '**' | ||
- '!.gitignore' | ||
- '!LICENSE' | ||
- '!TODO' | ||
- '!doc/**' | ||
- '!examples/**' | ||
- '.github/workflows/ci.yml' | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
linux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: build | ||
run: | | ||
make -j$(getconf _NPROCESSORS_ONLN) CONFIG_WERROR=y | ||
- name: stats | ||
run: | | ||
./qjs -qd | ||
- name: test | ||
run: | | ||
make test | ||
- name: microbench | ||
run: | | ||
make 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=y | ||
- name: test | ||
env: | ||
ASAN_OPTIONS: halt_on_error=1 | ||
run: | | ||
make CONFIG_ASAN=y test | ||
linux-msan: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: build | ||
env: | ||
CC: clang | ||
run: | | ||
make -j$(getconf _NPROCESSORS_ONLN) CONFIG_WERROR=y CONFIG_MSAN=y CONFIG_CLANG=y | ||
- name: test | ||
env: | ||
MSAN_OPTIONS: halt_on_error=1 | ||
run: | | ||
make CONFIG_MSAN=y CONFIG_CLANG=y test | ||
linux-ubsan: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: build | ||
run: | | ||
make -j$(getconf _NPROCESSORS_ONLN) CONFIG_WERROR=y CONFIG_UBSAN=y | ||
- name: test | ||
env: | ||
UBSAN_OPTIONS: halt_on_error=1 | ||
run: | | ||
make CONFIG_UBSAN=y test | ||
macos: | ||
runs-on: macos-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: build | ||
run: | | ||
make -j$(getconf _NPROCESSORS_ONLN) CONFIG_WERROR=y | ||
- name: stats | ||
run: | | ||
./qjs -qd | ||
- name: test | ||
run: | | ||
make test | ||
macos-asan: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: build | ||
run: | | ||
make -j$(getconf _NPROCESSORS_ONLN) CONFIG_WERROR=y CONFIG_ASAN=y | ||
- name: test | ||
env: | ||
ASAN_OPTIONS: halt_on_error=1 | ||
run: | | ||
make CONFIG_ASAN=y test | ||
macos-ubsan: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: build | ||
run: | | ||
make -j$(getconf _NPROCESSORS_ONLN) CONFIG_WERROR=y CONFIG_UBSAN=y | ||
- name: test | ||
env: | ||
UBSAN_OPTIONS: halt_on_error=1 | ||
run: | | ||
make CONFIG_UBSAN=y test | ||
freebsd: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: build + test | ||
uses: vmactions/freebsd-vm@v1 | ||
with: | ||
usesh: true | ||
prepare: | | ||
pkg install -y gmake | ||
run: | | ||
gmake | ||
./qjs -qd | ||
gmake test |
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