Commit graph

1097 commits

Author SHA1 Message Date
Richard Feldman
7bed6e5a8d
Merge pull request #8302 from roc-lang/import-builtins
Import builtins from .roc files
2025-10-20 21:48:14 -04:00
Anton-4
505119fb3f
back to normal CI triggers 2025-10-20 15:28:43 +02:00
Anton-4
10b48f6f45
fix ilammy action 2025-10-20 15:03:45 +02:00
Anton-4
bc3f31e959
remove leaked detection 2025-10-20 14:59:29 +02:00
Anton-4
f3c22966f5
no confusing exit code 2025-10-20 13:44:38 +02:00
Anton-4
392c1f0ab9
flaky retry improvements 2025-10-20 13:37:36 +02:00
Anton-4
595034a723
add workflow new compiler nightly 2025-10-20 13:23:41 +02:00
Richard Feldman
6706a068f0
Merge origin/main - upgrade to Zig 0.15.2
- Resolved conflicts preserving BuiltinTypes architecture
- Updated ArrayList to array_list.Managed for Zig 0.15.2
- Updated Io.Writer API for Zig 0.15.2
- Kept Bool special-case handling in render_helpers
- Kept builtin module loading in all affected files
2025-10-19 14:58:53 -04:00
Anton-4
995296d851
Merge branch 'main' of github.com:roc-lang/roc into upgrade-to-zig-0.15.1 2025-10-19 12:33:25 +02:00
Anton-4
ba09e3b4bd
fix macos if 2025-10-19 12:13:55 +02:00
Anton-4
ac6312337a
zig 15 nix package is broken on macOS x64
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-10-18 21:45:14 +02:00
Anton-4
5191ab56c7
upgrade to zig 0.15.2 2025-10-18 20:30:45 +02:00
Richard Feldman
82c6562352
Merge remote-tracking branch 'origin/main' into import-builtins 2025-10-17 21:05:58 -04:00
Anton-4
d52fd4cdea
command clarification
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-10-17 17:09:04 +02:00
Anton-4
ea45b7f99f
Merge branch 'main' of github.com:roc-lang/roc into upgrade-to-zig-0.15.1 2025-10-17 11:38:36 +02:00
Richard Feldman
11a2a626a7
Merge pull request #8295 from roc-lang/where-syntax
Update `where` syntax
2025-10-15 15:05:39 -04:00
Anton-4
5356b09d3c
zig build retry protection
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-10-15 11:00:27 +02:00
Anton-4
788b9a93ac
Disable cache for setup-zig
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-10-15 10:53:31 +02:00
Anton-4
e5fed613ce
Merge branch 'main' of github.com:roc-lang/roc into upgrade-to-zig-1.15.1 2025-10-14 15:48:33 +02:00
Anton-4
6c91c30313
sha256 correct command on macOS
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-10-13 14:19:09 +02:00
Anton-4
fbf2a0cf1a
sha256 correct command on macOS
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-10-13 14:18:27 +02:00
Richard Feldman
185f372fb8
Merge remote-tracking branch 'origin/main' into remove-injection 2025-10-12 20:53:50 -04:00
Anton-4
bcc59a64ce
print nightly sha256 2025-10-12 13:30:01 +02:00
Richard Feldman
5562334ce5
test that Serialized types are platform-independent
This test ensures that all .Serialized types have identical sizes on
32-bit and 64-bit platforms. This is critical because we serialize these
types and expect them to be portable across architectures.

If a Serialized type accidentally contains pointers/slices, it will have
different sizes on different platforms, breaking serialization. This test
catches such issues by building for both native and wasm32 targets.

The test runs in CI as part of the check-once job, and can be run locally
with: zig build test-serialization-sizes
2025-10-11 11:31:26 -04:00
Richard Feldman
78dbd55303
s/roc format/roc fmt/g 2025-10-09 13:07:58 -04:00
Anton-4
87c7ed2027
move flaky-retry to tests 2025-10-03 08:01:53 -07:00
Anton-4
44a33d1da7
use macos-15-intel 2025-10-03 07:15:04 -07:00
Anton-4
1ce6c08134
Merge pull request #8261 from roc-lang/bundle-test-flaky-retry
add flaky retry for bundle test
2025-10-03 07:01:42 -07:00
Anton-4
0a225600f7
fix bad error part detection
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-10-03 15:48:17 +02:00
Anton-4
c8e03954f0
add flaky retry for bundle test
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-10-03 14:32:57 +02:00
Anton-4
d34d342d7e
use zig 15 2025-10-01 20:13:16 +02:00
Jared Ramirez
aac3d24c21
Fix playground test call, don't err on bad ext 2025-09-30 17:47:05 -04:00
Anton-4
5368184946
Display output in flaky retry action (#8259)
* Display output in flaky retry action

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* run on action change too

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* Add logging of all output in flaky-retry action

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

---------

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-09-30 16:38:26 +02:00
Anton-4
6bec5078f9
update setup-zig action, use cache (#8257) 2025-09-30 15:23:28 +02:00
Anton-4
365a29c553
added flaky retry action (#8258)
* added flaky retry action

* Add ci_cross_compile.yml to paths filter

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* windows fix + just build roc

* back to zig build

* try to fix retry failure

* try to fix windows

---------

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-09-30 14:00:57 +02:00
Anton-4
68a8acd879
temp z lib fix (#8254)
Workaround for:
unable to find dynamic system library 'z' using strategy 'paths_first'

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-09-29 19:15:10 +02:00
Anton-4
9090fa4f97
update link checker script (#8242)
update link checker
2025-09-09 17:00:59 +02:00
Anton-4
56e44049ed
musl removals
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-09-09 14:43:22 +02:00
Anton-4
29d9e17e6b
set GITHUB_TOKEN
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-09-09 14:12:26 +02:00
Luke Boswell
cb42d26e11
Roc platform host shim (#8214)
* use zig Builder to generate LLVM bc for platform host shim

* WIP

* Working embedded LLVM compilation

* lints

* Update test_shared_memory_system.zig

* Update main.zig

* Refactor out builder into separate file

* remove clang fallback, remove -Dllvm build flag

* WIP change platform header

* WIP no hardcoded platform entrypoints

* WIP no hardcoded entrypoints

* remove hardcoded interpreter shim entrypoint

* WIP multiple entrypoints

* WIP multiple entrypoints

* WIP alignment issue

* it's working!!

* cleanup

* fmt

* fix tests and snapshots

* fix cross-compile

* WIP fix linking linux

* improved debug logging in rocRun

* WIP fix linux segfaults

* cleanup stray dbgs

* fix Windows linking

* WIP remove std.debug.print in prebuilt shim

* remove libc stubs, try C shim for platform host main

* WORKING ON LINUX!!!

* WIP fixing int platform

* prevent double mapping of shared memory

* WIP

* remove clang fallback

* cleanup test platforms

* vendor linux object files for musl and gnu in test platforms

* fix windows __main export

* typo

* avoide hardcoding libc path and dynamic linker on linux

* some fixes

* try CI fix for linux ARM64

* try use system CRT for ARM64

* use absolute pats for vendored CRT

* minimal roc build

* use target os for filename not host os

* implement app stubs for test platforms

* fix glibc

* WIP cross compilation

* fix run, fix build for native

* Merge remote/main

* fix macos

* add bookends

* remove hosts

* fix cross-compile for linux on macos

* fix files paths for Windows

* Update main.zig

* test ubu 24.04 too

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* debug: log all used instructions

* fmt

* get bad instruction with gdb

* install gdb

* Revert last 4 commits

* simpler cross-compile arm64 runtime files

* add minimal cross-compilation for glibc

* simplify stub generation

* Update test_int_platform.sh

* Update ci_cross_compile.yml

* Update ci_cross_compile.yml

* try alpine3.18 x64musl files

* Claude's fix + removed CPU instructions

* fix fuzz crash empty after merge

* update snapshot

* restore full CI

* some cleanup

* remove debugging from CI - print all supported CPU instructions

* try using generic when LLVM compiles app stub

* enhanced error handling for app stub compilation using LLVM

* check machine ABI on linux

* try more debugging

* update test script to inidicate truncated error logs, temporarily display everything for arm64 linux errors

* fix missing arm64 libc search paths

* back to normal CI

* try without .git 

See https://github.com/ziglang/zig/issues/21316#issuecomment-2408071050

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* undo .git change

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* retry zig build command

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* different retry strategy

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

---------

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
Co-authored-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-09-09 13:15:23 +02:00
Anton-4
d73ea109cc
build linux arm64 on github hosted runner (#8241)
* build linux arm64 on github hosted runner

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* disable ci manager

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* sudo llvm.sh

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* rm clang

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* normal triggers

---------

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-09-08 13:00:58 +02:00
Anton-4
74e2c6abf5
basic-webserver release 0.13.0 (#8228)
* basic-webserver release 0.13.0

* enable PR trigger

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* sync with cli changes

* try less flags

this works on my local rpi

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* install gcc-aarch64-linux-gnu

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* did install locally

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* debug ls

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* rm was done in prev step

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* rm file....exp

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* move rm

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* tar.br

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* back to normal triggers

---------

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-09-05 17:37:18 +02:00
Anton-4
293148921d
basic-cli 0.20 (#8227)
* WIP basic-cli 0.20.0

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* disable typical CI

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* forgot tests dir

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* test on more OS

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* Remove ubuntu-20.04 from CI matrix

Official support for 20.04 was ended on 31 May 2025

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* test on ubuntu-24.04-arm too

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* macos ripgrep install

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* add ripgrep dep ubu

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* test musl hypothesis

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* Fix cargo copy

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* fix OS pattern linux arm64

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* Update build script to remove incompatible functions

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* Remove incompatible tests for Ubuntu builds

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* fix path

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* more musl removal

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* fix paths

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* fix multi command

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* debug with tree

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* install tree

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* test-cmd check

* correct filename

* no macos tests

* add macos again

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* debug cleanup

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* build tar.br release

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* back to normal CI

---------

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-09-01 16:14:33 +02:00
Luke Boswell
c9693c5bf0
Update CI for snapshot folder change 2025-08-12 18:42:06 +10:00
Luke Boswell
b93a962cf3 configure CI to switch on Windows Arch also 2025-08-07 15:48:49 +10:00
Luke Boswell
f27191dd59 Setup MSCV environment variables on our Windows CI runners 2025-08-07 15:39:23 +10:00
Luke Boswell
d1b8e1626c try re-enable Windows platform test in CI 2025-08-07 09:14:32 +10:00
Luke Boswell
4da8ce8ded
Merge pull request #8162 from lukewilliamboswell/windows-interpreter
Fix Windows for `roc run` + cleanup Interpreter
2025-08-06 20:18:22 +10:00
Anton-4
eefe1d8a7c
dont't trigger old workflows on test folder changes (#8164)
no old workflows on test folder changes

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-08-06 12:00:35 +02:00
Luke Boswell
db9db8f24c
disable platform tests in CI for Windows (again) 2025-08-05 20:42:46 +10:00