Skip to content

Combining MUSL/GNU rust targets in single builder on same platform causes archive step to fail in CI #5865

@andriygm

Description

@andriygm

Opening this issue as a result of the discussion here: https://discord.com/channels/890434333251362866/890434334803247126/1389307061380055231

Currently, combining MUSL/GNU rust targets in a single builder on the same platform causes the archive step to fail due to multiple binaries moving to the same path. It looks like archive step is per OS/arch combo instead of per target.

In CI, get an error like:

  • archives
    • will not set artifact-related template fields  reason=archive contains more than 1 binary
    • archiving                                      name=dist/linux/archive-bug-mre_Linux_x86_64.tar.gz
  ⨯ release failed after 1m14s               error=failed to add: 'dist/linux/archive-bug-mre_x86_64-unknown-linux-musl/archive-bug-mre' -> 'archive-bug-mre': add archive-bug-mre: file already exists

Minimum reproducible example: https://github.com/andriygm/archive-bug-mre/actions/runs/15980219055/job/45072648326

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingeco/rust

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions