Verify a Swift package’s minimum toolchain and CLI contract
Описание и применение
Проверка совместимости Swift‑пакета с минимальной версией компилятора и контрактом CLI в CI‑рабочем процессе.
Задача
Ensuring a Swift package builds and runs correctly across declared toolchain versions and on different platforms, including validating its CLI contract.
Результат
The workflow demonstrates that the package builds and passes unit tests on Swift 6.0.3 (Linux), 6.1.2 (macOS), and 6.4 (Ubuntu). The Python script confirms the executable’s CLI contract across four cases, providing evidence beyond the tools version declaration.
Рабочий процесс
- Clone repository
- Checkout tag 0.1.1
- Verify Swift version with
swift --version - Run
swift build - Run
swift test - Execute
python3 Scripts/check-fixture.pyto validate CLI contract
Доказательства
The public workflow run records three successful environments: Linux, macOS 15 runner, Ubuntu 24.04 runner.
Each job prints swift --version before building.
The Python script uses the standard library. Its four‑case check expects the debug executable produced by the preceding build.
- Дата записи: 2026-10-04T04:40:54.166Z