diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4a3ab46 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: ci + +on: + pull_request: + paths: + - '**' + - '!LICENSE' + - '!TODO' + - '!doc/**' + - '!examples/**' + - '.github/workflows/ci.yml' + push: + branches: + - master + +# TODO(bnoordhuis) run test262 tests +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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bbf01f5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +examples/point.so +.obj/ +qjs +qjs32 +qjsc +qjscalc.c +repl.c +tests/bjson.so diff --git a/Makefile b/Makefile index 49b1f6f..419a3a4 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,8 @@ endif # Windows cross compilation from Linux #CONFIG_WIN32=y # use link time optimization (smaller and faster executables but slower build) -CONFIG_LTO=y +# XXX(bnoordhuis) disabled because of slow build times +#CONFIG_LTO=y # consider warnings as errors (for development) #CONFIG_WERROR=y # force 32 bit build for some utilities diff --git a/tests/test_std.js b/tests/test_std.js index 3ea6e34..c341a41 100644 --- a/tests/test_std.js +++ b/tests/test_std.js @@ -143,7 +143,8 @@ function test_os() { var fd, fpath, fname, fdir, buf, buf2, i, files, err, fdate, st, link_path; - assert(os.isatty(0)); + // XXX(bnoordhuis) disabled because stdio is not a tty on CI + //assert(os.isatty(0)); fdir = "test_tmp_dir"; fname = "tmp_file.txt";