Skip to content
Myr

Merge old jqlang/jq master to the latest (#2596)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* Try making some GitHub Actions * GHA: Add OS X, Windows, and Linux w/ scan-build builds * Add link to discord server Add link to discord server * Update Ubuntu to 22.04 for GitHub Actions * Remove if condition for Ubuntu build * Fix MacOS OS on GitHub Actions * Fix python3 package on GitHub Actions * Disalbe valgrind Getting failed tests: https://github.com/jqlang/jq/actions/runs/5113866588/jobs/9193542140#step:9:341 * Format file * Fix macos build * Fix syntax errors of windows build https://github.com/jqlang/jq/actions/runs/5114162556/workflow * Install windows package with choco * Pin oniguruma to 5a24a49d710a9e3bb8ff11d12e1eae5a9f9df40c MacOS build [fails](https://github.com/jqlang/jq/actions/runs/5114162555/jobs/9194126677#step:6:3160) due to ``` posix.c:94:3: error: implicit declaration of function 'onig_end' is invalid in C99 [-Werror,-Wimplicit-function-declaration] onig_end(); ``` The current `oniguruma` revision 6fa38f4084b448592888ed9ee43c6e90a46b5f5c (15 Mar 2017) lacks the following explicit declaration in src/onigposix.h: ``` ONIG_EXTERN int onig_end P_((void)); ``` This was added to oniguruma in revision 5a24a49d710a9e3bb8ff11d12e1eae5a9f9df40c (8 Sep 2017). Ref: https://github.com/jqlang/jq/issues/2381 * Revert windows build to use pacman * Don't zip jq.exe * Fixing windows build * Update .gitattriutes for eol on Windows * Skip workflow_dispatch for windows build * Clean up builds * Use LF line endings for all text Ref: https://github.com/actions/checkout/issues/135 * Fix test that has rounding error https://github.com/jqlang/jq/pull/2596#issuecomment-1568498993 * Enable CI for all ---------

authored by Owen Ou · committed by GitHub · parent 89caf46 · Browse files · 8 files+261 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: Nicolas Williams <nico@cryptonector.com>

Diff stats

8 files+261 added−2 removed

  • tests:+1 added−1 removed
  • other:+260 added−1 removed

8 files+261 added−2 removed

added:.github/workflows/linux.yml+70 added
added:.github/workflows/macos.yml+62 added
added:.github/workflows/scanbuild.yml+77 added
added:.github/workflows/windows.yml+45 added
modified:modules/onigurumanot shown

Its text is not shown, modified.

modified:tests/jq.test+1 added-1 removed
1563 unmodified lines
15641/01565jq: error: Division by zero? at <top-level>, line 1:15661567# Basic numbers tests: integers, powers of two1568[range(-52;52;1)] as $powers | [$powers[]|pow(2;.)|log2] == $powers1568[range(-52;52;1)] as $powers | [$powers[]|pow(2;.)|log2|round] == $powers1569null1570true15711572[range(-99/2;99/2;1)] as $orig | [$orig[]|pow(2;.)|log2] as $back | ($orig|keys)[]|. as $k | (($orig|.[$k])-($back|.[$k]))|if . < 0 then . * -1 else . end|select(.>.00005)
146 unmodified lines
modified:.gitattributes+1 added
1.gitattributes export-ignore2.gitignore export-ignore3* text=auto eol=lf
modified:README.md+5 added-1 removed
70 unmodified lines
71cross-compilation environment. See also72["Cross compilation"](https://github.com/jqlang/jq/wiki/Cross-compilation) on73the wiki.7475Send questions to https://stackoverflow.com/questions/tagged/jq or to the #jq channel (https://web.libera.chat/#jq) on Libera.Chat (https://libera.chat/).7576# Community7778* Send questions to https://stackoverflow.com/questions/tagged/jq.79* Join our [Discord server](https://discord.gg/yg6yjNmgAC).