Skip to content

ci: update and improve FreeBSD CI#24726

Merged
spytheman merged 10 commits into
vlang:masterfrom
lcheylus:freebsd-ci
Jun 15, 2025
Merged

ci: update and improve FreeBSD CI#24726
spytheman merged 10 commits into
vlang:masterfrom
lcheylus:freebsd-ci

Conversation

@lcheylus

@lcheylus lcheylus commented Jun 15, 2025

Copy link
Copy Markdown
Contributor

Now that all the tests have been fixed for FreeBSD with tcc, I propose to update and improve "FreeBSD CI":

  • use cross-platform-actions/action GH action instead of vmactions/freebsd-vm action. This action is more reliable and runs faster on amd64 architecture. (< 10 minutes to run all tests with gcc)
  • use a FreeBSD VM on amd64 arch with 14.2 version (14.3 is not available for now, see Add support for FreeBSD 14.3 cross-platform-actions/action#106).
  • install libiconv and boehm-gc-threaded packages for build/tests on FreeBSD
  • use gmake (GNU make) instead of BSD make to build V => tcc is detected during build
  • remove unset of CFLAGS for V build
  • split this workflow with 3 jobs (using different value of VFLAGS for each):
    • one for tests with tcc
    • one for tests with clang (version 19.1.7)
    • one for tests with gcc (version 13.3.0)
  • All tests run with script ci/freebsd_ci.vsh (unmodified)

✅ Example of this "FreeBSD CI" workflow in my own repository => https://github.com/lcheylus/v/actions/runs/15663998010

lcheylus added 10 commits June 15, 2025 16:03
Signed-off-by: Laurent Cheylus <foxy@free.fr>
Signed-off-by: Laurent Cheylus <foxy@free.fr>
Signed-off-by: Laurent Cheylus <foxy@free.fr>
Signed-off-by: Laurent Cheylus <foxy@free.fr>
Signed-off-by: Laurent Cheylus <foxy@free.fr>
Signed-off-by: Laurent Cheylus <foxy@free.fr>
Signed-off-by: Laurent Cheylus <foxy@free.fr>
Signed-off-by: Laurent Cheylus <foxy@free.fr>
Signed-off-by: Laurent Cheylus <foxy@free.fr>
Signed-off-by: Laurent Cheylus <foxy@free.fr>
@lcheylus lcheylus changed the title Freebsd ci Update and improve Freebsd CI Jun 15, 2025
@lcheylus lcheylus changed the title Update and improve Freebsd CI Update and improve FreeBSD CI Jun 15, 2025
@lcheylus lcheylus changed the title Update and improve FreeBSD CI ci: update and improve FreeBSD CI Jun 15, 2025

@spytheman spytheman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work. It is indeed much faster now.

@spytheman spytheman merged commit 099b57f into vlang:master Jun 15, 2025
7 checks passed
@lcheylus lcheylus deleted the freebsd-ci branch June 15, 2025 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants