Sign in Join
Wiki copytemporary

Build server: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Build server

OldNewLine
1+Build server with automated build process is not useful just for big developers teams but also for single developer who working on multiple small applications. Build server can run daily or on-demand build for multiple projects and send notification emails if build was not successful. Build server can also help with cross-platform projects where developer would need to run build for all supported builds manually.
2+
3+# Setup on Ubuntu
4+
5+Assume 64-bit Ubuntu server.
6+
7+Install binutils for required targets:
8+
9+``` bash
10+sudo apt-get install binutils-powerpc-linux-gnu
11+sudo apt-get install binutils-powerpc64le-linux-gnu
12+sudo apt-get install binutils-arm-linux-gnueabi
13+```
14+
15+Create **ld** and **as** scripts needed for FPC:
16+
17+``` bash
18+#!/bin/bash
19+
20+cat >/usr/bin/i386-linux-ld << EOF
21+#!/bin/bash
22+ld -A elf32-i386 $@
23+EOF
24+chmod +x /usr/bin/i386-linux-ld
25+
26+cat >/usr/bin/i386-linux-as << EOF
27+#!/bin/bash
28+as --32 $@
29+EOF
30+chmod +x /usr/bin/i386-linux-as
31+
32+cat >/usr/bin/arm-linux-ld << EOF
33+#!/bin/bash
34+/usr/bin/arm-linux-gnueabi-ld $@
35+EOF
36+chmod +x /usr/bin/arm-linux-ld
37+
38+cat >/usr/bin/arm-linux-as << EOF
39+#!/bin/bash
40+/usr/bin/arm-linux-gnueabi-as $@
41+EOF
42+chmod +x /usr/bin/arm-linux-as
43+
44+cat >/usr/bin/powerpc-linux-ld << EOF
45+#!/bin/bash
46+/usr/bin/powerpc-linux-gnu-ld $@
47+EOF
48+chmod +x /usr/bin/powerpc-linux-ld
49+
50+cat >/usr/bin/powerpc-linux-as << EOF
51+#!/bin/bash
52+/usr/bin/powerpc-linux-gnu-as $@
53+EOF
54+chmod +x /usr/bin/powerpc-linux-as
55+```
56+
57+# See also
58+
59+- [[Jenkins]]
60+
61+---
62+*From the Free Pascal wiki, page "Build server", as it stood on 2022-08-16 after a change by Skalogryz, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
63+Category: CI/CD
64+Category: Cross compilation

Back to history