Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
163 commits
Select commit Hold shift + click to select a range
3d86402
Fix: OOM vulnerability cause by is_valid_index
thely314 Jan 25, 2026
22e470a
Fix: try to make json_pointer_set_with_array_cb a public api
thely314 Jan 26, 2026
1c3b98d
amend: removed marco related logic
thely314 Jan 26, 2026
bda8299
fix: adapt to the early C std
thely314 Jan 27, 2026
af2671a
meson: use override_dependency
neheb Nov 23, 2025
a0c6bb3
meson: simplify __thread check and fix MinGW
neheb Nov 23, 2025
798d8f7
meson: add license information
neheb Nov 23, 2025
92a4911
meson: use static library for tests
neheb Feb 5, 2026
1d4885a
fix compilation with clang-cl
neheb Nov 25, 2025
d61b41c
github CI: add
neheb Nov 25, 2025
8c01a7c
Merge pull request #903 from neheb/1
hawicz Feb 8, 2026
c293d9b
general callback, safer API & related tests
thely314 Feb 9, 2026
d7f14cb
Merge pull request #917 from thely314/fix/oom-too-large-index
hawicz Feb 14, 2026
8c987e0
Issue #919: Fix build on non-x86 windows. Patch thanks to @dotanbrk
hawicz Feb 19, 2026
52ddfb3
Fix memory leak in test_safe_json_pointer_set, the caller must free t…
hawicz Feb 20, 2026
5320cf9
Add a test to check for issues with deeply nested objects, which can …
hawicz May 3, 2026
e50fb04
Add lh_table_delete_entry_to_tail() and array_list_set_idx() functions.
hawicz Apr 24, 2026
17328a6
Issue #923: Avoid stack recursion in json_object_put() so heavily nes…
hawicz Apr 24, 2026
ccd2803
Merge pull request #924 from json-c/put_no_recurse
hawicz May 4, 2026
1f7589f
Fix function prototypes in deep nesting test (clang compilation)
mbroz May 12, 2026
7947407
Fix expected output for test_deep_nesting
hawicz May 23, 2026
2bfda71
Remove never used struct json_object_iter_info_
hawicz May 23, 2026
dee128f
Issue #927: update the documentation for json_object_iterator to clar…
hawicz May 23, 2026
6167807
Merge pull request #925 from mbroz/fix-build
hawicz May 24, 2026
3e708e4
Drop osx from .travis.yml since macOS builds are no longer supported.
hawicz May 24, 2026
d1018cf
Update test_object_iterator.expect to match current test output.
hawicz May 25, 2026
c6cd1f2
fix locale-dependent strtod in json_object_get_double
dxbjavid Jun 15, 2026
1d65898
Issue #929: fix bad calculation of error offset when parsing in the a…
hawicz Jun 21, 2026
bb9c123
Save stderr from test output, allow for non-zero exit code from tests.
hawicz Jun 21, 2026
d9d8cab
Add tests for the json_parse cli tool.
hawicz Jun 21, 2026
e181207
Issue #928 - work around over-zealous uninitialized check in chromebr…
hawicz Jun 21, 2026
cce075f
Merge pull request #930 from dxbjavid/get-double-locale-radix
hawicz Jun 21, 2026
5647679
deep copy values in json_patch copy op to avoid aliasing and cycles
dxbjavid Jun 24, 2026
d0cc187
ci: set least-privilege GITHUB_TOKEN permissions for meson workflow
Alb3e3 Jun 27, 2026
d2adb47
Merge pull request #932 from Alb3e3/harden-ci-permissions
hawicz Jun 27, 2026
3c1cf2b
Merge pull request #931 from dxbjavid/patch-copy-deep-copy
hawicz Jun 27, 2026
c54e690
More updates to ChangeLog for a 0.19 release
hawicz Jun 27, 2026
c1c7e50
Update the master branch to version 0.19.99
hawicz Jun 27, 2026
b299553
Issue #824: start listing releases on github
hawicz Jun 27, 2026
54f5526
fix signed overflow negating INT64_MIN in json_object_int_inc
dxbjavid Jun 27, 2026
f291fa8
free objects outside assert() in json_object_put
dxbjavid Jun 30, 2026
3aa996b
Issue #934: Be sure to clear _user_delete in _json_object_put_maybe_f…
hawicz Jul 4, 2026
e006975
Merge pull request #936 from dxbjavid/put-free-outside-assert
hawicz Jul 4, 2026
0c3a5a1
Issue #934: Also set _userdata=NULL in _json_object_maybe_free() so j…
hawicz Jul 4, 2026
324e5ca
Merge pull request #933 from dxbjavid/int-inc-int64min-overflow
hawicz Jul 4, 2026
16e394b
reject out-of-range double in get_int64/get_uint64
dxbjavid Jul 6, 2026
aab7925
Issue #941: fix "defined but not used" errors when building with a c+…
hawicz Jul 11, 2026
e65444a
Merge pull request #940 from dxbjavid/get-int64-double-boundary
hawicz Jul 12, 2026
9d116a5
fix out-of-bounds read for negative errno in _json_c_strerror
dxbjavid Jul 13, 2026
56a0e3f
fix installing json-c headers with meson and missing pkgconfig file
vonericsen Jul 13, 2026
69be99e
fix json_object_put() to return 1 for freed scalars and empty containers
arr2036 Jul 14, 2026
dfd37bc
Merge pull request #945 from arr2036/json-object-put-return-value
hawicz Jul 16, 2026
f61e612
Merge pull request #943 from Seagate/meson_install_fix
hawicz Jul 16, 2026
0ea5f6c
Merge pull request #942 from dxbjavid/strerror-negative-oob
hawicz Jul 16, 2026
eed664e
reject null op/path/from fields in json_patch_apply
dxbjavid Jul 16, 2026
e248056
require string type for patch op/path/from fields
dxbjavid Jul 18, 2026
1e39345
Merge pull request #946 from dxbjavid/patch-null-field-fields
hawicz Jul 18, 2026
70f3169
reject empty reference token as array index in json_pointer
dxbjavid Jul 20, 2026
1bd2e4b
Merge pull request #949 from dxbjavid/pointer-empty-index-token
hawicz Jul 21, 2026
cf95809
meson: wire up `extra_libs` option
thesamesam Jul 18, 2026
87087de
meson: improve test handling
thesamesam Jul 18, 2026
7ee487c
meson: fix version numbers
thesamesam Jul 18, 2026
2419dbd
meson: fix pkgconfig file
thesamesam Jul 18, 2026
133b0b8
make: Fixing missing math dependency in non-Windows json-c builds wit…
vonericsen Jul 22, 2026
ff18c75
reject leading zeros in strict-mode number parsing
dxbjavid Jul 28, 2026
62bb838
printbuf: preserve self-append sources across growth
carrerasdarren-cell Aug 1, 2026
c0d4626
Merge pull request #953 from dxbjavid/number-leading-zero-strict
hawicz Aug 4, 2026
9782370
Address printbuf review comments
carrerasdarren-cell Aug 10, 2026
892c204
Merge pull request #955 from carrerasdarren-cell/agent/fix-printbuf-s…
hawicz Aug 15, 2026
27bf659
Merge the two meson checks for arc4random, instead have the has_funct…
hawicz Aug 15, 2026
e222189
Check the whole RFC 8259 number grammar in strict mode
dngr2 Aug 16, 2026
8319071
Merge pull request #957 from dngr2/fix/strict-number-grammar
hawicz Aug 17, 2026
81092b3
Merge pull request #948 from thesamesam/meson
hawicz Aug 17, 2026
510d68b
reject negative after whitespace in json_parse_uint64
dxbjavid Aug 17, 2026
f4fd48c
Merge pull request #958 from dxbjavid/uint64-negative-whitespace
hawicz Aug 20, 2026
c80ca19
Only execute test_json_parse_cli when BUILD_APPS is ON
Max13245 Aug 20, 2026
105a106
Use printf instead of echo
Max13245 Aug 20, 2026
d17ad9d
Merge pull request #960 from Max13245/fix/test-json-parse-cli
hawicz Aug 21, 2026
2094974
Fix object key leak on insertion failure
junkilee80 Aug 21, 2026
dcdea4e
decode ~1/~0 escapes when setting an object member in json_pointer
dxbjavid Aug 22, 2026
f688166
Specify fbaserel and Motorola CPU target
sacredbanana Aug 22, 2026
a521107
Update readme
sacredbanana Aug 22, 2026
3ea3271
Package for Amiga for publishing
sacredbanana Aug 23, 2026
13778a9
Update readme
sacredbanana Aug 23, 2026
6a273c5
add json-c directory to root of lha
sacredbanana Aug 23, 2026
385c46e
Add Amiga workflow
sacredbanana Aug 23, 2026
697c6bf
Merge pull request #962 from junkilee80/fix/object-add-key-leak
hawicz Aug 30, 2026
befb5a0
Merge pull request #961 from dxbjavid/pointer-set-unescape
hawicz Aug 30, 2026
083d244
Address review feedback on the Amiga packaging PR.
sacredbanana Aug 30, 2026
0fbd6ae
Fix typo in json_object_iterator.h
Sep 2, 2026
a0bfde7
Merge pull request #964 from hilbert149/master
hawicz Sep 2, 2026
5815bab
Fix swapped lseek() arguments
Sep 7, 2026
7760bce
Merge pull request #965 from hilbert149/lseek-args
hawicz Sep 7, 2026
6c57831
Fix json_parse:exit with error when input file cannot be opened
Sep 7, 2026
b11a9cd
json_object_array_to_json_string: Hoist array length out of the loop
Sep 7, 2026
18000a8
Merge pull request #966 from hilbert149/json_object_array_to_json_string
hawicz Sep 7, 2026
8381d33
Merge pull request #967 from hilbert149/exit_with_error
hawicz Sep 7, 2026
0dd8a02
Documentation fixes
Sep 9, 2026
ea23279
json_parse: Exit with error when reading the input fails
Sep 9, 2026
694b912
Merge pull request #970 from hilbert149/parseit
hawicz Sep 12, 2026
a954bda
Merge pull request #969 from hilbert149/docs
hawicz Sep 12, 2026
596c9d2
json_tokener, arraylist: assorted cleanups
prownd Sep 10, 2026
0e5a2d4
json_parse returned success when input ended while the tokener was
1234binpig Sep 8, 2026
a559871
Merge pull request #971 from prownd/json_tokener-arraylist-assorted-c…
hawicz Sep 15, 2026
fa774da
Merge pull request #968 from 1234binpig/master
hawicz Sep 20, 2026
19980db
Merge pull request #963 from sacredbanana/fbaserel
hawicz Sep 20, 2026
25895a5
Instead of hardcoding the version into amiga/json-c.readme, generate …
hawicz Sep 20, 2026
52f57ec
AIX: Fix test_json_patch NULL pointer passed to printf
sswamy48 Sep 21, 2026
1b504e2
json_patch: fix move/copy false rejection between sibling keys sharin…
afonsojanu Sep 25, 2026
e32fe9b
Fix header installation path in CMakeLists
Expertcoderz Sep 29, 2026
168c0f3
Assert the object type in json_object_array_shrink like every array a…
ManoharPaturi Sep 29, 2026
353e643
Propagate printbuf append failures in json_escape_str
ManoharPaturi Sep 29, 2026
b5cd62d
printbuf_memset: maintain the NUL-termination invariant
ManoharPaturi Sep 29, 2026
b469bea
Merge pull request #980 from ManoharPaturi/fix-printbuf-memset-nul
hawicz Sep 29, 2026
645e768
Merge pull request #979 from ManoharPaturi/fix-escape-str-append-errors
hawicz Sep 30, 2026
ceeff4b
Merge pull request #974 from sswamy48/AIX_null
hawicz Sep 30, 2026
1ed5e6f
Merge pull request #977 from Expertcoderz/master
hawicz Sep 30, 2026
dcd1572
Merge pull request #978 from ManoharPaturi/fix-array-shrink-type-check
hawicz Oct 1, 2026
9e99c1c
Merge pull request #975 from afonsojanu/fix/patch-move-copy-sibling-p…
hawicz Oct 4, 2026
fd92d58
Fix memory leak in json_tokener_parse_ex due to duplocale
sswamy48 Sep 28, 2026
7662139
tokener: clear pending surrogate on reset
anon5376 Oct 10, 2026
de70fe6
meson: Fix lld version script detection
aokblast Oct 21, 2026
2403a84
Merge pull request #988 from aokblast/fix-lld-symbol
hawicz Oct 21, 2026
174d76e
Merge pull request #986 from anon5376/codex/tokener-reset-surrogate
hawicz Oct 25, 2026
cbc3d2c
Merge pull request #976 from sswamy48/AIX_memleak
hawicz Oct 25, 2026
e77ca4f
Add Windows support for the json_tokener_local_fini() destructor.
hawicz Oct 25, 2026
86fe287
json_patch: remove members whose names contain '/' or '~'
fhgffy Oct 9, 2026
d9b375f
json_pointer: find null array elements
wleeaf Oct 25, 2026
217808a
Amiga: build libm881 (FPU) slots for AmigaOS 3
sacredbanana Nov 7, 2026
b48717e
Amiga: only take the bundle version from an exact release tag
sacredbanana Nov 7, 2026
d3c1ab9
Remove "mainpage" entry from README
polluks Nov 8, 2026
ea3756e
json_patch: compare integer and double test values numerically
trestoncuzzort Oct 26, 2026
cdd8db0
json_patch: treat an empty "from" as a parent of any "path"
emincan2000 Oct 26, 2026
7f41962
keep the exponent when trimming zeroes with JSON_C_TO_STRING_NOZERO
dxbjavid Oct 26, 2026
0f8fe5d
json_object: fix double format use-after-free on strdup failure
zhouyunding Nov 4, 2026
46f0355
pass the add flag to the array callback for json_patch copy
dxbjavid Nov 2, 2026
0389cc8
json_patch: reject a move past the end of the same array
wleeaf Oct 25, 2026
e0a1735
json_tokener: free the detached value when insertion into its parent …
bg0d-droid Oct 15, 2026
99c14de
tokener: preserve number errors at EOF
1234binpig Nov 9, 2026
0be2f37
json_util: parse EOF-terminated scalar values
1234binpig Nov 9, 2026
9c1ef55
cmake-configure: return failure for usage errors
fhgffy Oct 5, 2026
40045d0
tests: run cmake-configure regression with /bin/sh
fhgffy Nov 9, 2026
be68ce5
stop is_valid_index wrapping large array indices on 32-bit
dxbjavid Nov 2, 2026
9715fad
pin to ubuntu-24.04 until https://github.com/jirutka/setup-alpine/pul…
hawicz Nov 15, 2026
bdb9ab2
Upgrade checkout action from v4 to v7 to squash Node 20 warnings
hawicz Nov 15, 2026
f2b558c
Add parens to squash warning about "suspicious concatenation of strin…
hawicz Nov 16, 2026
b99d91f
reject overlong and surrogate forms in json_tokener_validate_utf8
dxbjavid Oct 5, 2026
1b72e9a
json_patch: allow copying a location into its own children
waw666waw666 Nov 16, 2026
79b4f79
keep utf-8 validation state across json_tokener_parse_ex calls
nab-iha3 Nov 20, 2026
d2ce61e
propagate printbuf failures for object keys and doubles
nab-iha3 Nov 19, 2026
7de8482
keep the pending utf-8 state in tok->flags instead of a new field
nab-iha3 Nov 23, 2026
890efe9
reject single-quoted object keys in strict mode
dxbjavid Nov 15, 2026
9abd3da
Merge branch 'tokener-utf8-split-state' of https://github.com/nab-iha…
hawicz Nov 29, 2026
bb8c5b8
Merge branch 'nab-iha3-tokener-utf8-split-state'
hawicz Nov 29, 2026
b952cbd
Free stdout/stderr buffers in test_tokener_oom, skip using valgrind w…
hawicz Nov 29, 2026
a67a180
Keep the tokener's numeric locale private on Windows
davidreic2 Nov 23, 2026
82f8fd7
json_object: do not append .0 to uppercase scientific notation
sagaragas Nov 30, 2026
77a614c
reject object keys containing \u0000 in json_tokener
dxbjavid Nov 14, 2026
df93d38
move the nul key check into the unicode escape state
dxbjavid Nov 17, 2026
be71f4f
Merge branch 'dxbjavid-tokener-reject-nul-key'
hawicz Nov 30, 2026
739c206
json_patch: validate "from" when moving a location onto itself
sagaragas Nov 30, 2026
76285d3
json_patch: check path length explicitly before prefix comparison
sagaragas Nov 30, 2026
71429bf
printbuf_memset: prevent signed overflow in size_needed + 1
sagaragas Nov 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions .github/workflows/amiga.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: amiga

# Verifies that AmigaOS 3/4 and MorphOS still cross-compile. The uploaded
# json-c.lha is a CI convenience artifact only — official json-c releases
# remain source-only. Aminet uploads are a separate, manual process and
# are not published from this job.

on: [push, pull_request, workflow_dispatch]

concurrency:
group: ${{github.workflow}}-${{github.event.pull_request.number || github.ref}}
cancel-in-progress: true

permissions:
contents: read

jobs:
package:
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- uses: actions/checkout@v7

# Ubuntu's `lha` package is lhasa: extract-only, cannot create archives.
# Build LHa for UNIX (https://github.com/jca02266/lha) instead.
- name: Cache LHa for UNIX
id: cache-lha
uses: actions/cache@v6
with:
path: ~/.local/bin/lha
key: lha-16619b066b189ef289bb8b07b37d1c38d550da99-${{ runner.os }}

- name: Install LHa for UNIX
if: steps.cache-lha.outputs.cache-hit != 'true'
working-directory: ${{runner.temp}}
run: |
sudo apt-get update
sudo apt-get install -y autoconf automake
curl -fsSL -o lha.tar.gz \
https://github.com/jca02266/lha/archive/16619b066b189ef289bb8b07b37d1c38d550da99.tar.gz
tar -xzf lha.tar.gz
cd lha-16619b066b189ef289bb8b07b37d1c38d550da99
autoreconf -is
./configure --prefix="$HOME/.local"
make -j"$(nproc)"
make install

- name: Add LHa to PATH
run: echo "$HOME/.local/bin" >> "$GITHUB_PATH"

- name: Check lha can create archives
run: |
command -v lha
d=$(mktemp -d)
echo probe > "$d/f"
( cd "$d" && lha -aq2 t.lha f )
test -s "$d/t.lha"

- name: Pull compiler images
run: |
docker pull sacredbanana/amiga-compiler:m68k-amigaos &
docker pull sacredbanana/amiga-compiler:ppc-amigaos &
docker pull sacredbanana/amiga-compiler:ppc-morphos &
wait

- name: Build and package
run: ./amiga/package-amiga.sh

- uses: actions/upload-artifact@v7
with:
name: json-c.lha
path: dist/json-c.lha
if-no-files-found: error
231 changes: 231 additions & 0 deletions .github/workflows/meson.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,231 @@
name: meson

on: [push, pull_request]

concurrency:
group: ${{github.workflow}}-${{github.head_ref}}
cancel-in-progress: true

permissions:
contents: read

jobs:
Linux-GCC:
runs-on: ubuntu-22.04
strategy:
matrix:
cc: ['9', '13']
steps:
- uses: actions/checkout@v7
- uses: egor-tensin/setup-gcc@v1
with:
version: ${{matrix.cc}}

- name: Install packages
run: |
python3 -m pip install meson ninja

- name: Compile and Test
run: |
meson setup "${{github.workspace}}/build" -Dwarning_level=3 -Dbuildtype=debug
meson compile -C "${{github.workspace}}/build" --verbose
meson test -C "${{github.workspace}}/build" --verbose
Linux-Clang:
runs-on: ubuntu-22.04
strategy:
matrix:
cc: ['9', '22']
steps:
- uses: actions/checkout@v7
- uses: egor-tensin/setup-clang@v1

- name: Install packages
run: |
python3 -m pip install meson ninja

- name: Compile and Test
run: |
meson setup "${{github.workspace}}/build" -Dwarning_level=3 -Dbuildtype=debug
meson compile -C "${{github.workspace}}/build" --verbose
meson test -C "${{github.workspace}}/build" --verbose
VisualStudio:
runs-on: windows-latest
strategy:
matrix:
platform: ['x64', 'x86']
steps:
- uses: actions/checkout@v7

- name: Install packages
run: |
python -m pip install meson ninja

- uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{matrix.platform}}

- name: Compile and Test
env:
CFLAGS: '/analyze'
run: |
meson setup "${{github.workspace}}/build" --wrap-mode=forcefallback -Dwarning_level=3 -Dbuildtype=debug
meson compile -C "${{github.workspace}}/build" --verbose
meson test -C "${{github.workspace}}/build" --verbose
VisualStudio-clang-cl:
runs-on: windows-latest
steps:
- uses: actions/checkout@v7

- name: Install packages
run: |
python -m pip install meson ninja

- uses: ilammy/msvc-dev-cmd@v1

- name: Compile and Test
env:
CC: clang-cl
run: |
meson setup "${{github.workspace}}/build" -Dwarning_level=3 -Dbuildtype=debug
meson compile -C "${{github.workspace}}/build" --verbose
meson test -C "${{github.workspace}}/build" --verbose
MSYS2:
runs-on: windows-latest
strategy:
matrix:
platform: ['UCRT64', 'CLANG64']
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v7

- uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.platform}}
pacboy: >-
cc:p
cmake:p
meson:p
ninja:p
pkgconf:p

- name: Compile and Test
run: |
meson setup "${{github.workspace}}/build" -Dwarning_level=3 -Dbuildtype=debug
meson compile -C "${{github.workspace}}/build" --verbose
meson test -C "${{github.workspace}}/build" --verbose
Cygwin:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v7
- uses: msys2/setup-msys2@v2
with:
msystem: 'MSYS'
install: >-
gcc
meson
ninja
- name: Compile and Test
run: |
meson setup build -Dwarning_level=3 -Dcpp_std=gnu++20 -Dbuildtype=debug
meson compile -C build --verbose
meson test -C build --verbose
MacOS:
runs-on: macos-latest
steps:
- uses: actions/checkout@v7

- name: Install packages
run: |
brew install meson

- name: Compile and Test
run: |
meson setup "${{github.workspace}}/build" -Dwarning_level=3 -Dbuildtype=debug
meson compile -C "${{github.workspace}}/build" --verbose
meson test -C "${{github.workspace}}/build" --verbose
DragonflyBSD:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: vmactions/dragonflybsd-vm@v1
with:
prepare: |
pkg install -y ninja meson pkgconf
run: |
meson setup "${{github.workspace}}/build" -Dwarning_level=3 -Dbuildtype=debug
meson compile -C "${{github.workspace}}/build" --verbose
meson test -C "${{github.workspace}}/build" --verbose
FreeBSD:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: vmactions/freebsd-vm@v1
with:
prepare: |
pkg install -y ninja meson pkgconf
run: |
meson setup "${{github.workspace}}/build" -Dwarning_level=3 -Dbuildtype=debug
meson compile -C "${{github.workspace}}/build" --verbose
meson test -C "${{github.workspace}}/build" --verbose
NetBSD:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: vmactions/netbsd-vm@v1
with:
prepare: |
/usr/sbin/pkg_add meson pkgconf
run: |
meson setup "${{github.workspace}}/build" -Dwarning_level=3 -Dbuildtype=debug
meson compile -C "${{github.workspace}}/build" --verbose
meson test -C "${{github.workspace}}/build" --verbose
OmniOS:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: vmactions/omnios-vm@v1
with:
prepare: |
pkg install gcc14 meson-313 ninja pkg-config python-313
run: |
/usr/lib/python3.13/bin/meson setup "${{github.workspace}}/build" -Dwarning_level=3 -Dbuildtype=debug
/usr/lib/python3.13/bin/meson compile -C "${{github.workspace}}/build" --verbose
/usr/lib/python3.13/bin/meson test -C "${{github.workspace}}/build" --verbose
OpenBSD:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: vmactions/openbsd-vm@v1
with:
prepare: |
pkg_add ninja meson pkgconf
run: |
meson setup "${{github.workspace}}/build" -Dwarning_level=3 -Dbuildtype=debug
meson compile -C "${{github.workspace}}/build" --verbose
meson test -C "${{github.workspace}}/build" --verbose
Alpine:
runs-on: ubuntu-24.04
strategy:
matrix:
platform: ['x86_64', 'x86', 'armhf', 'armv7', 'aarch64', 'ppc64le', 'riscv64', 's390x']
defaults:
run:
shell: alpine.sh {0}
steps:
- uses: actions/checkout@v7
- uses: jirutka/setup-alpine@v1
with:
branch: edge
arch: ${{matrix.platform}}
packages: >
build-base pkgconf meson samurai
- name: Compile and Test
run: |
meson setup "${{github.workspace}}/build" -Dwarning_level=3 -Dbuildtype=debug
meson compile -C "${{github.workspace}}/build" --verbose
meson test -C "${{github.workspace}}/build" --verbose
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,7 @@
# Benchmarking input and output
/bench/data
/bench/work

# AmigaOS packaging output
dist/
bld-*/
18 changes: 2 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ matrix:
- cmake
env: CHECK="true"

# osx
- os: osx
osx_image: xcode13.4
env: XCODE="true" CHECK="true"

# run coveralls
- os: linux
dist: xenial
Expand Down Expand Up @@ -109,9 +104,6 @@ matrix:
- lcov -r build/all_coverage.info '/usr/*' '*CMakeFiles*' '*fuzz*' '*test*' -o build/coverage.info
- coveralls-lcov --verbose build/coverage.info

# allow_failures:
# - os: osx

before_install:
- echo $CC
- echo $LANG
Expand All @@ -125,8 +117,6 @@ before_install:
fi

before_script:
# XXX osx on travis doesn't work w/ set -e, so turn it off :(
- set +e
- mkdir -p build || echo "Failed to mkdir build"
- cd build || echo "Failed to cd build"
- cmake .. || echo "Failed to run cmake"
Expand All @@ -135,12 +125,8 @@ script:
- make
# when using bionic, Travis seems to ignore the "addons" section, so installing the packages with apt-get...
- if [ -n "$CHECK" ]; then
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
brew install doxygen;
else
if [ "$TRAVIS_DIST" = "bionic" ]; then
sudo apt-get install -y valgrind cppcheck doxygen;
fi;
if [ "$TRAVIS_DIST" = "bionic" ]; then
sudo apt-get install -y valgrind cppcheck doxygen;
fi;
make distcheck;
if type cppcheck &> /dev/null ; then cppcheck --error-exitcode=1 --quiet *.h *.c tests/ ; fi;
Expand Down
Loading