diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 09cb5768..90157c55 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -10,23 +10,22 @@ on: jobs: tests: name: Test - uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@0.0.13 + uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@0.0.14 with: - linux_exclude_swift_versions: '[{"swift_version": "5.8"}, {"swift_version": "5.9"}, {"swift_version": "5.10"}]' - windows_exclude_swift_versions: '[{"swift_version": "5.9"}, {"swift_version": "5.10"}]' - macos_exclude_xcode_versions: '[{"xcode_version": "26.0"}]' enable_macos_checks: true + macos_exclude_xcode_versions: '[]' + linux_exclude_swift_versions: '[{"swift_version": "5.9"}, {"swift_version": "5.10"}]' + windows_exclude_swift_versions: '[{"swift_version": "5.9"}]' enable_wasm_sdk_build: true enable_android_sdk_build: true enable_android_sdk_checks: true + enable_freebsd_checks: true containers-tests: name: Containers Test - uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@0.0.13 + uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@0.0.14 with: - linux_exclude_swift_versions: '[{"swift_version": "5.8"}, {"swift_version": "5.9"}, {"swift_version": "5.10"}, {"swift_version": "6.0"}, {"swift_version": "6.1"}, {"swift_version": "6.2"}, {"swift_version": "6.3"}, {"swift_version": "nightly-6.3"}]' - windows_exclude_swift_versions: '[{"swift_version": "5.9"}, {"swift_version": "5.10"}, {"swift_version": "6.0"}, {"swift_version": "6.1"}, {"swift_version": "6.2"}]' - macos_exclude_xcode_versions: '[{"xcode_version": "26.0"}, {"xcode_version": "16.3"}, {"xcode_version": "16.4"}]' + linux_swift_versions: '["6.2", "nightly-main"]' enable_macos_checks: false enable_linux_checks: true enable_windows_checks: false @@ -34,19 +33,27 @@ jobs: hashed-containers-tests: name: Hashed Containers Test - uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@0.0.13 + uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@0.0.14 with: - linux_exclude_swift_versions: '[{"swift_version": "5.8"}, {"swift_version": "5.9"}, {"swift_version": "5.10"}, {"swift_version": "6.0"}, {"swift_version": "6.1"}, {"swift_version": "6.2"}, {"swift_version": "6.3"}, {"swift_version": "nightly-6.3"}]' - windows_exclude_swift_versions: '[{"swift_version": "5.9"}, {"swift_version": "5.10"}, {"swift_version": "6.0"}, {"swift_version": "6.1"}, {"swift_version": "6.2"}]' - macos_exclude_xcode_versions: '[{"xcode_version": "26.0"}, {"xcode_version": "16.3"}, {"xcode_version": "16.4"}]' + linux_swift_versions: '["6.2", "nightly-main"]' enable_macos_checks: false enable_linux_checks: true enable_windows_checks: false - swift_flags: --traits UnstableContainersPreview,UnstableHashedContainers + swift_flags: --traits UnstableHashedContainers + + all-traits-tests: + name: All Unstable Package Traits Test + uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@0.0.14 + with: + linux_swift_versions: '["6.2", "nightly-main"]' + enable_macos_checks: false + enable_linux_checks: true + enable_windows_checks: false + swift_flags: --traits UnstableHashedContainers,UnstableContainersPreview,UnstableSortedCollections embedded-swift: name: Build with Embedded Swift - uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@0.0.13 + uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@0.0.14 with: enable_linux_checks: false enable_macos_checks: false @@ -57,7 +64,7 @@ jobs: soundness: name: Soundness - uses: swiftlang/github-workflows/.github/workflows/soundness.yml@0.0.13 + uses: swiftlang/github-workflows/.github/workflows/soundness.yml@0.0.14 with: license_header_check_project_name: "Swift.org" # https://github.com/apple/swift-collections/issues/428 @@ -93,3 +100,18 @@ jobs: run: cmake -G Ninja -S . -B .cmake-build - name: Build run: cmake --build .cmake-build + + xcode-build: + name: Xcode Project Build + runs-on: [self-hosted, macos, "tahoe", "ARM64"] + steps: + - name: Checkout repo + uses: actions/checkout@v7 + - name: Select Xcode + run: echo "DEVELOPER_DIR=/Applications/Xcode_swift_6.4.app/Contents/Developer" >> $GITHUB_ENV + - name: Xcode version + run: xcrun xcodebuild -version + - name: Swift version + run: xcrun swift --version + - name: Build + run: xcrun xcodebuild -project Xcode/Collections.xcodeproj -scheme Collections