First CI run failed with "linker cc not found" — the runner executes jobs on the host, so the C toolchain a container image would normally provide has to be installed there. Records the fix, and notes openssl-devel as the next thing that would break so it can be installed in one go. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a4401936a0
commit
0272a6f46b
1 file changed
+15
-1
+15
-1
@@ -119,4 +119,18 @@ What still needs doing, in order of how likely it is to bite:
|
||||
3. **Android signing secrets** — see §3 above: `ANDROID_KEYSTORE_B64`, `ANDROID_KEYSTORE_PASSWORD`, `ANDROID_KEY_ALIAS`, `ANDROID_KEY_PASSWORD`.
|
||||
4. **`docker build` available to the job** — already proven on this runner.
|
||||
|
||||
New toolchains for this runner are Rust (`dtolnay/rust-toolchain`) and the Android SDK (`android-actions/setup-android`). Both are widely used and should fetch fine given third-party actions already work there, but they're the two steps that haven't run on this box before, so they're the ones to watch on the first CI run.
|
||||
### Host packages on the runner
|
||||
|
||||
The runner executes jobs **on the host**, not in a container, so build toolchains that a container image would normally provide have to exist on the box. Rust needs a C toolchain for linking (every Rust build does, even pure-Rust crates — proc-macro build scripts get linked like anything else), and `openssl-sys` needs OpenSSL headers:
|
||||
|
||||
```bash
|
||||
sudo dnf install -y gcc openssl-devel pkgconf-pkg-config unzip
|
||||
```
|
||||
|
||||
(`unzip` is for the Android SDK's cmdline-tools, not Rust.)
|
||||
|
||||
This was found the direct way: the first CI run failed in 12 seconds with ``linker `cc` not found`` while compiling `proc-macro2`'s build script.
|
||||
|
||||
`openssl-devel` is in there because `async-native-tls` → `native-tls` → `openssl-sys` links against system OpenSSL. It isn't needed yet at the point the build currently fails, but it's the very next thing that would break, so it's worth installing in the same command rather than discovering it on the next run.
|
||||
|
||||
> **Possible cleanup, not urgent:** the project currently carries two TLS stacks — rustls (via sqlx, for Postgres) and OpenSSL (via async-native-tls, for IMAP). Switching the IMAP side to `tokio-rustls` would drop the `openssl-devel` dependency and leave one TLS implementation. Worth doing at some point for build simplicity; deliberately not done now because it's off the spec's build order and the TLS path has no integration test yet (the Greenmail test runs plaintext). If it happens, use `rustls-native-certs` rather than `webpki-roots`, so a mail server using an internal CA keeps working.
|
||||
Reference in new issue
Block a user