### Motivation:
SwiftPM behaviour has changed in recent Swift nightlies.
In most recent released version of Swift, SwiftPM will use the parent
directory name for the source and test target directory too, even when
it contains a period:
```
% docker run -it swift:6.2 bash -c 'mkdir -p /tmp/foo.bar && cd /tmp/foo.bar && swift package init'
Creating library package: foo.bar
Creating Package.swift
Creating .gitignore
Creating Sources
Creating Sources/foo.bar/foo_bar.swift
Creating Tests/
Creating Tests/foo.barTests/
Creating Tests/foo.barTests/foo_barTests.swift
```
Note in the above how it replaces the `.` with a `_` in the source
files, but the directories retain the `.`.
In the recent nightly-main, SwiftPM has also started replacing `.` with
`_` in the target directory names:
```
% docker run -it swiftlang/swift:nightly-main bash -c 'cat /etc/motd && mkdir -p /tmp/foo.bar && cd /tmp/foo.bar && swift package init'
################################################################
# #
# Swift Nightly Docker Image #
# Tag: swift-DEVELOPMENT-SNAPSHOT-2026-02-06-a #
# #
################################################################
Creating library package: foo.bar
Creating Package.swift
Creating .gitignore
Creating Sources
Creating Sources/foo_bar/foo_bar.swift
Creating Tests/
Creating Tests/foo_barTests/
Creating Tests/foo_barTests/foo_barTests.swift
```
Probably this
https://github.com/swiftlang/swift-package-manager/pull/9252.
This breaks our CI automation, only on nightly-main, because we run
`swift package init` in a directory created by `mktemp -d`, which, by
default, follows the pattern `tmp.XXXXXXX`.
### Modifications:
Create temporary directory for Swift package using explicit pattern
containing no periods.
### Result:
C++ interop CI should now work again on nightly-main Swift, and continue
to work on all supported Swift versions.
Cxx interop CI appends `swiftSettings` to any existing settings rather
than overriding them.
### Motivation:
This better accommodates workflows for example which use Swift 5
language mode on a per-target basis.
### Modifications:
Cxx interop CI appends `swiftSettings` to any existing settings rather
than overriding them.
### Result:
Cxx interop CI jobs don't cause unexpected build configurations.
### Motivation:
At the moment the Cxx interoperability CI workflow doesn't actually test
Cxx interoperability.
### Modifications:
The script now looks for the precise way that the `Package.swift`
currently formats the target entry and appends a `swiftSettings` entry
to it.
This approach is pretty brittle but has the advantage that it's the same
on Linux and Darwin. If this formatting changes too often then we could
give up on this and assume the availability of gnu-sed instead (and make
sure it's present on our CI containers).
### Result:
All Cxx interoperability checks will check what they are named for.
---------
Co-authored-by: George Barnett <gbarnett@apple.com>
# Motivation
Switch to the reusable workflows from the swiftlang organization for
soundness.
# Modification
This PR moves over to the new reusable soundness workflow. Additionally,
it also deletes all files in this repo for the soundness checks since
they are no longer needed.
# Motivation
Another reusable check is to make sure that all library products of a package are successfully building when consumed from a module that has Cxx interoperability enabled. Another check that's missing is running the integration tests.
# Modification
This PR adds two new checks to the reusable workflow. One to check for Cxx interoperability compatibility and another one to run the integration tests. I also fixed a misalgined name for the nightly benchmarks.
# Result
This should be one of the last reusable workflow checks.