54 Commits
Author SHA1 Message Date
Nils Andreas Svee a653bcf279 ci: support static cross-compilation with vendored UCI
Add Dockerfile.ci with pkg-config for vendored UCI builds. Switch
Jenkinsfile from pre-built Docker images to Dockerfile-based agents
for full control over the build environment. Add static CRT linking
via RUSTFLAGS for standalone static binaries across the CI matrix.
2026-08-07 16:04:59 +07:00
Nils Andreas Svee 8a3dbcfd0b ci: Archives target-specific binary
Ensures the pipeline archives the correct binary for each target architecture. Uses CARGO_BUILD_TARGET to locate and rename the binary before archiving.
2026-02-21 15:02:51 +07:00
Nils Andreas Svee 611998c5e9 fix(Jenkinsfile): Removes duplicate target
Removes a duplicate target from the Jenkinsfile. This ensures correct target specification during builds.
2026-02-21 15:02:43 +07:00
Nils Andreas Svee 83ee08052f feat: Enables nightly toolchain support
Adds support for the nightly Rust toolchain, enabling the `build-std` feature when detected. This allows building with `panic=abort` for smaller binaries.
2026-02-21 14:45:32 +07:00
Nils Andreas Svee 9c11f2ed3f ci: Configures cross-compilation for Rust
Configures the Rust build environment for cross-compilation within the CI pipeline by setting CARGO_HOME, adding local bin to PATH, and copying the linker configuration from the image. This ensures the build process uses the correct linker settings for the target architecture.
2026-02-21 14:08:24 +07:00
Nils Andreas Svee cccd3a3966 ci: remove mold and debug statements
Removes mold integration and debug statements from the CI pipeline. This simplifies the build process and improves clarity by removing unnecessary tools and logs.
2026-02-21 13:57:47 +07:00
Nils Andreas Svee d0ecf72566 ci: Adds compiler version checks
Adds compiler version checks to ensure correct toolchain setup for cross-compilation.
2026-02-21 13:42:25 +07:00
Nils Andreas Svee 07b74666ac ci: Adds debug info to CI build
Adds `ls` command to inspect the contents of the musl toolchain directory for debugging purposes in the CI environment. This aids in diagnosing potential build issues related to toolchain availability.
2026-02-21 13:37:52 +07:00
Nils Andreas Svee 684d137235 Move mold version check to after clang and gcc 2026-02-21 13:12:14 +07:00
Nils Andreas Svee b3da435125 Add GCC version check to Jenkinsfile 2026-02-21 13:03:05 +07:00
Nils Andreas Svee 44ba412bd5 Update mold version in Jenkinsfile to 2.40.4 2026-02-21 12:46:34 +07:00
Nils Andreas Svee c376880393 Update Jenkinsfile to always pull Docker image 2026-02-21 11:11:03 +07:00
Nils Andreas Svee f4a9135c60 fix(build): wget not available, use curl 2025-05-09 19:56:07 +07:00
Nils Andreas Svee 4b566bc04d chore(build): try to use mold instead 2025-05-09 19:48:28 +07:00
Nils Andreas Svee 2656e7e4f6 chore(build): set cc 2025-05-09 19:28:19 +07:00
Nils Andreas Svee 942a28ed1c chore: print env again. 2025-05-09 19:24:57 +07:00
Nils Andreas Svee 44305f70ad fix(build): try to move cargo home to ws 2025-05-09 18:56:36 +07:00
Nils Andreas Svee 9c4b6ab7df chore(build): use premade docker env 2025-05-09 18:46:21 +07:00
Nils Andreas Svee 31d3db328a chore: use lld with rust 2025-05-09 05:47:00 +07:00
Nils Andreas Svee d9b87a5087 fix(build): triple check that CC gets ets correctly 2025-05-09 04:57:41 +07:00
Nils Andreas Svee c6c4b17ef5 fix: let the shell handle the env vars 2025-05-09 04:48:47 +07:00
Nils Andreas Svee 7489f5ae93 chore: try to fix path 2025-05-09 04:40:48 +07:00
Nils Andreas Svee 97a4bfeaba fix(build): try to get the env right 2025-05-09 02:48:22 +07:00
Nils Andreas Svee b9749981d0 chore(builder): printenv for test 2025-05-09 02:37:28 +07:00
Nils Andreas Svee 44e4e8591e Revert "chore: add network=host to build arg just to test"
This reverts commit a615174451.
2025-05-09 01:59:39 +07:00
Nils Andreas Svee a615174451 chore: add network=host to build arg just to test 2025-05-09 01:46:07 +07:00
Nils Andreas Svee 63b49dd347 chore: use dockerfile as jenkins agent 2025-05-09 01:11:35 +07:00
Nils Andreas Svee 7134f62e02 Revert "jenkinsfile: enable uci"
This reverts commit de099a44ac.
2022-11-27 22:38:32 +01:00
Nils Andreas Svee de099a44ac jenkinsfile: enable uci 2022-11-27 21:59:50 +01:00
Nils Andreas Svee 512a5dec16 jenkinsfile: add arm targets 2022-11-27 21:35:12 +01:00
Nils Andreas Svee f2b7ff066c jenkinsfile: move rustflags to build stage 2022-11-27 20:52:10 +01:00
Nils Andreas Svee bc8138c51a jenkinsfile: force static builds 2022-11-27 20:47:07 +01:00
Nils Andreas Svee d0dc59d763 Revert "jenkinsfile: use only one target while testing"
This reverts commit e56c367183.
2022-11-27 16:37:16 +01:00
Nils Andreas Svee 610d8bbe98 jenkinsfile: switch to replaceall 2022-11-27 16:09:24 +01:00
Nils Andreas Svee e6ece9493d jenkinsfile: set linker for rust 2022-11-27 16:06:37 +01:00
Nils Andreas Svee 904bc20b2b jenkinsfile: attempt to start building 2022-11-27 15:53:24 +01:00
Nils Andreas Svee 56464338bb jenkinsfile: add missing parenthese 2022-11-27 15:41:43 +01:00
Nils Andreas Svee 89c441de90 jenkinsfile: try to correct rust target check 2022-11-27 15:38:38 +01:00
Nils Andreas Svee cac4fc761b jenkinsfile: silence wget 2022-11-27 15:29:21 +01:00
Nils Andreas Svee e56c367183 jenkinsfile: use only one target while testing 2022-11-27 15:27:33 +01:00
Nils Andreas Svee 779e6de707 jenkinsfile: use CC env for conditional 2022-11-27 15:26:07 +01:00
Nils Andreas Svee 9d3b028ce4 jenkinsfile: automatically install rust target 2022-11-27 15:25:53 +01:00
Nils Andreas Svee 518e003185 jenkinsfile: correct gcc conditional 2022-11-27 15:25:12 +01:00
Nils Andreas Svee b4eb1b5479 jenkinsfile: check gcc version 2022-11-27 15:18:19 +01:00
Nils Andreas Svee 3d9573a50c jenkinsfile: try to use jenkins function for running executables 2022-11-27 15:15:57 +01:00
Nils Andreas Svee 412b343775 jenkinsfile: add missing parentheses 2022-11-27 15:11:53 +01:00
Nils Andreas Svee 74a92f5df5 jenkinsfile: conditionally download toolchain 2022-11-27 15:10:24 +01:00
Nils Andreas Svee a985cfcf0d jenkinsfile: use wget for java memory reasons 2022-11-27 14:42:16 +01:00
Nils Andreas Svee ffde8dcb70 jenkinsfile: use double quotes 2022-11-27 14:38:38 +01:00
Nils Andreas Svee cc3ea9cf21 jenkinsfile: try to fix target mapping lookup 2022-11-27 14:37:34 +01:00