Skip to content

Commit 3f37985

Browse files
committed
build(dev): publish clang-tools-manager dirty
needed to distribute versions.json with package ref #365
1 parent f7f7b25 commit 3f37985

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/binary-builds.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,4 +223,9 @@ jobs:
223223
env:
224224
PKG_NAME: ${{ startsWith(github.ref_name, 'cpp-linter') && 'cpp-linter' || 'clang-tools-manager' }}
225225
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
226+
# `--allow-dirty` is required for clang-tools-manager
227+
# because the versions.json file is flagged as "not checked in",
228+
# but docs.rs build requires the versions.json file present to
229+
# avoid clang-tools-manager/build.rs using network access.
230+
PUB_ARG: ${{ startsWith(github.ref_name, 'clang-tools-manager/v') && '--allow-dirty' || '' }}
226231
run: cargo publish -p ${PKG_NAME}

0 commit comments

Comments
 (0)