66 Commits

Author SHA1 Message Date
Adrià Arrufat
f1293b7346 Merge branch 'main' into semantic-versioning 2026-03-20 07:04:05 +09:00
Adrià Arrufat
fa1dd5237d build: remove shell target from Makefile 2026-03-19 13:24:41 +09:00
Adrià Arrufat
2dbd32d120 build: automate version resolution in build.zig
Removes manual git flags from CI and build scripts.
Versioning is now automatically derived from git and build.zig.zon.

With this PR, we follow https://semver.org/
Logic:

1. Read the version from build.zig.zon
2. If it doesn't have a `.pre` field (i.e. dev/alpha/beta) it will use that
3. Otherwise it will get the info from git: hash and number of commits since last `.0` version
4. Then build the version: `0.3.0-dev.1493+0896edc3`

Note that, since the latest stable version is `0.2.6`.
The convention is to use `0.3.0-dev`, as:
- `0.2.6` < `0.3.0.dev` < `0.3.0`
2026-03-19 13:03:29 +09:00
ireydiak
7c18d857f0 chore: removed gitsubmodules from README and Makefile 2026-02-28 12:36:40 -05:00
Pierre Tachoire
24b6934d3b
remove WPT specific code
Using both lightpanda-io/wpt and lightpanda-io/demo/wptrunner remove the
need for code specific to run WPT from browser.
2026-02-27 10:09:07 +01:00
Pierre Tachoire
e288bfbec4
typo fix 2026-02-18 14:50:43 +01:00
Pierre Tachoire
d5f4ca15cc
add v8 snapshot in build processes 2026-01-07 17:22:49 +01:00
Pierre Tachoire
e642c85ebd
use ReleaseFast build 2026-01-07 17:22:49 +01:00
Pierre Tachoire
00d4ac6137
update ci scripts
* use checkout v6
* remove useless target from Makefile
2025-12-29 15:17:19 +01:00
Pierre Tachoire
d1c33f0872
build: standardize ansi escape sequences in makefile 2025-12-29 12:55:56 +01:00
Pierre Tachoire
ffe2bc9a02
update README 2025-12-24 10:35:11 +01:00
Pierre Tachoire
22303d2ae8
Merge pull request #1236 from lightpanda-io/v8-build-with-zig-gclient-ci
V8 build with zig gclient ci
2025-12-18 11:55:55 +08:00
Karl Seguin
3d8b1abda4
More legacy tests
Largely around how URL attributes (a.href, img.href, link.href) handle empty
values.
2025-12-11 16:45:19 +08:00
Halil Durak
6280232e91
add a build step for html5ever in build.zig 2025-11-26 14:20:39 +03:00
Karl Seguin
b047cb6dc1
remove libdom 2025-10-27 22:14:59 +08:00
Pierre Tachoire
3b51ca3947
make: download libiconv from GH fork 2025-09-15 08:59:30 +02:00
Pierre Tachoire
62a2d08b53
ci: cache libiconv 2025-09-15 08:43:48 +02:00
sjorsdonkers
7da83d2259
fix makebuilddev 2025-06-03 16:25:35 +02:00
Karl Seguin
72a983f6d8
Apply suggestions from code review
Co-authored-by: Pierre Tachoire <pierre@lightpanda.io>
2025-05-22 15:36:55 +08:00
Karl Seguin
a720333c0f
Add debug log level to make build-dev and add new make run-debug
Update WPT submodule, now includes xhr/formdata tests.
2025-05-22 15:28:07 +08:00
Karl Seguin
ca3fa3dc40
Rework WPT runner (#589)
* Rework WPT runner

We have no crashing tests, remove safe mode. Allows better re-use of arenas,
and if we do introduce a crash, it won't be easy to ignore. Could allow for
re-using the environment across tests to further improve performance.

Remove console now that we have a working console api.

* Update workflows, add summary

Remove --safe option from WPT workflows (it's no longer valid)

Include a total test/case summary when --summary or --text (default) is used.

* remove wpt --safe flag from Makefile

* handle tests in the root of the test folder

* Fix a couple possible segfaults base on strange usage (WPT stuff)

* generate proper JSON

* generate proper JSON (for real this time?)

* fix tag type check
2025-05-03 07:53:02 +08:00
Pierre Tachoire
b62faef520
make: add end2end target 2025-04-17 17:41:29 +02:00
Karl Seguin
f6c43eaf9c Fix dockerfile (hopefully)
Add dummy --json stats output to tests

Comment typos fixed

Add make get-v8, build-v8 and build-v8-dev make targets
2025-04-15 15:18:06 +08:00
Karl Seguin
cda6f89dba work on fixing github workflows 2025-04-15 15:18:06 +08:00
Karl Seguin
b8d7744563 replace zig-js-runtime 2025-04-15 15:18:04 +08:00
Pierre Tachoire
e79cd58c8f
ci: add macos x86_64 nightly build 2025-03-19 17:12:10 +01:00
Pierre Tachoire
c5397bfbe2
Merge pull request #448 from karlseguin/set_cookie
Add Set-Cookie parsing
2025-03-04 13:20:33 +01:00
Karl Seguin
6f5028612a add cookie jar 2025-02-27 16:09:10 +08:00
Karl Seguin
d0ba06c44b Add git_commit to build and build-dev target
Add "version" command to cli.
2025-02-26 20:44:44 +08:00
Karl Seguin
6d6b840cf6 Use $(ZIG) variable when building netsurf 2025-02-20 08:42:45 +08:00
Karl Seguin
2c4661a250 Add a new unittest build step
Preserves all existing behavior (i.e. make test and zig build test are not
changed in any way).

The new 'unittest' only runs unit tests and is fast to build. It takes ~1.7 to
build unittest, vs ~11.09 to build test. This is really the main goal, and
hopefully any unit test which are (a) fast and (b) don't impact build times
will be run here.

The test runner is based on:
https://gist.github.com/karlseguin/c6bea5b35e4e8d26af6f81c22cb5d76b

It allow filtering, i.e. `make unittest F="parse query dup"`.

'unittest' does memory leak detection when tests use std.testing.allocator.

Fixed a memory leak in url/query which was detected/reported with by the new
'unittest'.

In order to avoid having 3 src/test_xyx.zig files, I merged the existing
test_runner.zig and run_tests.zig into a single main_tests.zig. (this change
is superfluous, but I thought it was cleaner this way. Happy to revert this).
2025-02-09 11:04:21 +08:00
Lucien Coffe
88e32505a3
fix Makefile download-zig: url changed 2024-11-22 18:50:11 +01:00
Francis Bouvier
2a2486cbe0
build: fix clean-libiconv
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-10-30 13:41:34 +01:00
Francis Bouvier
b9e2be2052
build: support multi os/arch conf for netsurf
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-10-29 20:06:29 +01:00
Francis Bouvier
be5d7022cc
build: support multi os/arch conf for libiconv
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-10-28 21:08:46 +01:00
Francis Bouvier
d1951b286c
build: support multi os/arch conf for mimalloc
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-10-28 16:06:41 +01:00
Francis Bouvier
46d0aa6f9e
Remove all references to the name 'browsercore'
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-10-29 22:16:56 +01:00
Francis Bouvier
0636240a58
Update README
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-05-15 18:10:05 +02:00
Francis Bouvier
986e69f45d
Update dependancy jsruntime-lib -> zig-js-runtime
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-05-14 11:35:23 +02:00
Pierre Tachoire
53a5326248
mimalloc: avoid mimalloc override
By default mimalloc is built to override default allocation functions.
So it is used also by v8.

This change avoid the mimalloc override to keep the native stdlib
functions.
2024-04-19 11:47:03 +02:00
Pierre Tachoire
59b2954ff4
deps: add mimalloc dependency 2024-04-19 11:46:41 +02:00
Pierre Tachoire
52d3f3e966
deps: remove lexbor 2024-03-28 11:13:17 +01:00
Pierre Tachoire
006aea25b8
wpt: fix normal output 2024-01-03 09:56:56 +01:00
Pierre Tachoire
2643366639
make: use safe mode w/ wpt 2023-12-04 17:55:52 +01:00
Pierre Tachoire
6806c151a3
make: add download-zig target 2023-12-04 12:18:49 +01:00
Pierre Tachoire
db8747d1f2
make: add install-netsurf-dev
Build netsurf in debug mode
2023-11-22 17:17:51 +01:00
Pierre Tachoire
ad58e536ed
makefile: remove useless var 2023-11-14 11:36:33 +01:00
Pierre Tachoire
bf0af2c036
wpt: accept test name argument 2023-10-11 10:48:11 +02:00
Pierre Tachoire
22b9b1841c
wpt: rename file into main and create make wpt 2023-10-11 09:35:52 +02:00
Pierre Tachoire
a7933083bd
make: add NDEBUG option to netsurf build
In order to remove the debug output from the parser.
2023-10-10 17:53:09 +02:00