Recent

Author Topic: lazarus build station  (Read 1313 times)

Attid

  • New member
  • *
  • Posts: 9
lazarus build station
« on: March 25, 2026, 09:18:06 pm »
  Hi, I recently updated my Lazarus build environment and published it as ready-to-use Docker images:

  https://github.com/attid/lazarus-build-station

  To make the workflow easier to understand, I also created a small example project:

  https://github.com/attid/lazarus-build-station-example

  The idea is simple: if you have a Lazarus/FPC project that is already written in a cross-platform way, you can fork the example repository, replace the demo application with your own project, push it to GitHub,
  create a release tag, and let GitHub Actions build binaries for multiple targets automatically.

  For example:

  git tag v1.0.1
  git push origin v1.0.1

  That will trigger the release workflow and build packages for 4 targets:

  - Linux x86_64
  - Linux i386
  - Windows x86_64
  - Windows i386

  The example repository is intentionally small, so the whole pipeline is easy to inspect and adapt. It also shows how to build a Lazarus GUI application with an external visual package included in the
  repository.

  Local builds on Linux are also straightforward:

  just make

  This runs the same containerized build flow locally. In theory the local workflow should also work on Windows, but I have not been able to test that myself yet.

  Maybe this is useful for anyone who wants a simple starting point for cross-platform Lazarus builds with Docker and GitHub Actions. If there is interest, I can also document more project layouts or packaging
  variants.

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1285
Re: lazarus build station
« Reply #1 on: March 25, 2026, 11:18:25 pm »
  Hi, I recently updated my Lazarus build environment and published it as ready-to-use Docker images:

  https://github.com/attid/lazarus-build-station

  To make the workflow easier to understand, I also created a small example project:

  https://github.com/attid/lazarus-build-station-example

  The idea is simple: if you have a Lazarus/FPC project that is already written in a cross-platform way, you can fork the example repository, replace the demo application with your own project, push it to GitHub,
  create a release tag, and let GitHub Actions build binaries for multiple targets automatically.

  For example:

  git tag v1.0.1
  git push origin v1.0.1

  That will trigger the release workflow and build packages for 4 targets:

  - Linux x86_64
  - Linux i386
  - Windows x86_64
  - Windows i386

  The example repository is intentionally small, so the whole pipeline is easy to inspect and adapt. It also shows how to build a Lazarus GUI application with an external visual package included in the
  repository.

  Local builds on Linux are also straightforward:

  just make

  This runs the same containerized build flow locally. In theory the local workflow should also work on Windows, but I have not been able to test that myself yet.

  Maybe this is useful for anyone who wants a simple starting point for cross-platform Lazarus builds with Docker and GitHub Actions. If there is interest, I can also document more project layouts or packaging
  variants.

Thanks.

C0m3b4ck

  • New Member
  • *
  • Posts: 30
  • Open-source programs for Windows 95-11 and Linux
    • Github
Re: lazarus build station
« Reply #2 on: March 29, 2026, 07:24:46 am »
Which FPC versions does it use and how could I modify them to my own accord?
Github profile - https://github.com/C0m3b4ck | YouTube Channel - https://youtube.com/@PrinterFixer
Current Pascal project - https://github.com/C0m3b4ck/BookwormPascal - library book management app

Still making sure I support Win95 for its users out there...

Thaddy

  • Hero Member
  • *****
  • Posts: 19258
  • Glad to be alive.
Re: lazarus build station
« Reply #3 on: March 29, 2026, 08:31:31 am »
What do you mean? That info is in the readme.md:
Laz 4.6 and fpc 3.2.2
objects are fine constructs. You can even initialize them with constructors.

Attid

  • New member
  • *
  • Posts: 9
Re: lazarus build station
« Reply #4 on: March 30, 2026, 01:48:21 am »
how could I modify them to my own accord?

See Dockerfile you can change all what you want

 

TinyPortal © 2005-2018