ci: install build-essential in the publish job
CI / build (push) Successful in 3m3s
CI / test (push) Skipped
CI / snap (push) Successful in 6m9s
CI / publish (push) Successful in 2m11s

cargo publish verifies the packaged tarball with a full build before
uploading, and that build needs a C linker for build-script crates
(proc-macro2 was the first to fail). The job's container setup step
omitted build-essential, unlike the build and test jobs, so the
verification failed with 'linker cc not found' on the v0.1.0 tag.
This commit is contained in:
2026-09-24 21:41:15 +02:00
parent f5b7704647
commit 6df490cf9a
+1 -1
View File
@@ -138,7 +138,7 @@ jobs:
- name: Set up container image - name: Set up container image
run: | run: |
apt-get update apt-get update
apt-get install -y nodejs sudo curl wget ca-certificates apt-get install -y nodejs sudo curl wget ca-certificates build-essential
- uses: actions/checkout@v6 - uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable - uses: dtolnay/rust-toolchain@stable
- name: Install build dependencies - name: Install build dependencies