Skip to content

Commit 072dabb

Browse files
committed
Update docs
1 parent 389a493 commit 072dabb

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

BuildingCompilers.md

+6-20
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,14 @@ Compiler Explorer builds its compilers using docker images. These images are eac
44

55
## Daily images
66

7-
There's an AWS instance (see `setup-builder.sh`) that is left shut down most of the time. It's used to build new
8-
compilers. Daily compilations are orchestrated via the admin node. It runs the `admin-daily-build.sh` on a daily
7+
Compilers are built using a Github workflow, running on our own builders, in the [compiler-workflows](https://github.com/compiler-explorer/compiler-workflows/) repo.
8+
9+
Some legacy builds use a dedicated AWS instance (see `setup-builder.sh`) that is left shut down most of the time. These compilations are orchestrated via the admin node. It runs the `admin-daily-build.sh` on a daily
910
schedule via cron (see `crontab.admin`). This script fires up the builder node, runs the various builds on it, and shuts down.
10-
The same crontab also updates the symlinks in `/opt/compiler-explorer` daily to point at the newest builds.
1111

1212
## New compilers
1313

14-
New compilers are built by logging into the admin node (with `ce admin`), and then manually starting the build node (`ce builder start`).
15-
16-
Then compilations can be run with commands like:
17-
18-
```bash
19-
ce builder exec -- \
20-
sudo docker run --rm --name clang.build \
21-
-v/home/ubuntu/.s3cfg:/root/.s3cfg:ro compilerexplorer/clang-builder \
22-
bash build.sh 6.0.0 s3://compiler-explorer/opt/
23-
```
24-
25-
A clang build takes around 20 minutes.
26-
27-
**Don't forget to shut the build node down with `ce builder stop` when you've finished!**
14+
New compilers can be built by triggering a Github action build - use the [Custom compiler build](https://github.com/compiler-explorer/infra/actions/workflows/bespoke-build.yaml) and then click "Run workflow". A clang build takes around 20 minutes.
2815

29-
Remember that after building a compiler you'll need to update the `update_compilers/install_compilers.sh` script
30-
to install it. And if you're updating an existing compiler, you'll need to do something like unpacking the
31-
compiler to the admin drive's `/tmp/` and then `rsync --delete-after -avz /tmp/compiler/ /opt/compiler-explorer/compiler/`.
16+
Remember that after building a compiler you'll need to update the [YAML configuration](bin/yaml)
17+
to install it.

0 commit comments

Comments
 (0)