From e87aa8dc7311c7b6a3b67853a42bfbb635835605 Mon Sep 17 00:00:00 2001 From: Mishal Shah Date: Tue, 15 Apr 2025 22:43:17 -0700 Subject: [PATCH 1/5] [CI] Add support for GitHub Actions --- .github/workflows/pull_request.yml | 26 +++++++++++++++++++ .license_header_template | 10 +++++++ .licenseignore | 3 +++ .../include/target_conditionals.h | 1 - .../SubprocessTests+Windows.swift | 2 +- 5 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/pull_request.yml create mode 100644 .license_header_template create mode 100644 .licenseignore diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 0000000..2ce2ea8 --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,26 @@ +name: Pull request + +on: + pull_request: + types: [opened, reopened, synchronize] + +jobs: + tests: + name: Test + uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@macos-support + with: + linux_os_versions: '["amazonlinux2", "noble", "jammy", "focal", "rhel-ubi9", "bookworm"]' + linux_swift_versions: '["6.1", "nightly-main"]' + windows_swift_versions: '["6.1", "nightly-main"]' + enable_macos_checks: true + macos_xcode_versions: '["16.2"]' + + soundness: + name: Soundness + uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main + with: + license_header_check_project_name: "Swift.org" + docs_check_enabled: false + format_check_enabled: false + unacceptable_language_check_enabled: false + api_breakage_check_enabled: false diff --git a/.license_header_template b/.license_header_template new file mode 100644 index 0000000..c784192 --- /dev/null +++ b/.license_header_template @@ -0,0 +1,10 @@ +@@===----------------------------------------------------------------------===@@ +@@ +@@ This source file is part of the Swift.org open source project +@@ +@@ Copyright (c) YEARS Apple Inc. and the Swift project authors +@@ Licensed under Apache License v2.0 with Runtime Library Exception +@@ +@@ See https://swift.org/LICENSE.txt for license information +@@ +@@===----------------------------------------------------------------------===@@ diff --git a/.licenseignore b/.licenseignore new file mode 100644 index 0000000..c9b1be8 --- /dev/null +++ b/.licenseignore @@ -0,0 +1,3 @@ +Package.swift +Package@swift-6.0.swift +LICENSE diff --git a/Sources/_SubprocessCShims/include/target_conditionals.h b/Sources/_SubprocessCShims/include/target_conditionals.h index fef2eaf..aaa4a60 100644 --- a/Sources/_SubprocessCShims/include/target_conditionals.h +++ b/Sources/_SubprocessCShims/include/target_conditionals.h @@ -6,7 +6,6 @@ // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt for license information -// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// diff --git a/Tests/SubprocessTests/SubprocessTests+Windows.swift b/Tests/SubprocessTests/SubprocessTests+Windows.swift index a78b9a0..8e20711 100644 --- a/Tests/SubprocessTests/SubprocessTests+Windows.swift +++ b/Tests/SubprocessTests/SubprocessTests+Windows.swift @@ -7,7 +7,7 @@ // // See https://swift.org/LICENSE.txt for license information // -//===---------------------------------------------------------------------s-===// +//===----------------------------------------------------------------------===// #if canImport(WinSDK) From 1e3ef265d1c8e0c54a48b2347a9b9922eb4f8dfa Mon Sep 17 00:00:00 2001 From: Mishal Shah Date: Fri, 25 Apr 2025 14:21:54 -0700 Subject: [PATCH 2/5] Update pull_request.yml to use Xcode 16.3 --- .github/workflows/pull_request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 2ce2ea8..38097a6 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -13,7 +13,7 @@ jobs: linux_swift_versions: '["6.1", "nightly-main"]' windows_swift_versions: '["6.1", "nightly-main"]' enable_macos_checks: true - macos_xcode_versions: '["16.2"]' + macos_xcode_versions: '["16.3"]' soundness: name: Soundness From b116cfd323887ed9846c3f2e5a20f31cd1ca99b2 Mon Sep 17 00:00:00 2001 From: Mishal Shah Date: Fri, 25 Apr 2025 18:47:38 -0700 Subject: [PATCH 3/5] Update pull_request.yml to only build on Linux and Windows --- .github/workflows/pull_request.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 38097a6..9c5fbf8 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -7,11 +7,13 @@ on: jobs: tests: name: Test - uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@macos-support + uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main with: linux_os_versions: '["amazonlinux2", "noble", "jammy", "focal", "rhel-ubi9", "bookworm"]' linux_swift_versions: '["6.1", "nightly-main"]' + linux_build_command: 'swift build' windows_swift_versions: '["6.1", "nightly-main"]' + windows_build_command: 'swift build' enable_macos_checks: true macos_xcode_versions: '["16.3"]' From c4794484cef38544ec885f6cd026ac388a3c979b Mon Sep 17 00:00:00 2001 From: Mishal Shah Date: Fri, 25 Apr 2025 18:52:41 -0700 Subject: [PATCH 4/5] Update pull_request.yml to not use Amazon Linux 2 and update the tag for debian12 --- .github/workflows/pull_request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 9c5fbf8..6108f53 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -9,7 +9,7 @@ jobs: name: Test uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main with: - linux_os_versions: '["amazonlinux2", "noble", "jammy", "focal", "rhel-ubi9", "bookworm"]' + linux_os_versions: '["noble", "jammy", "focal", "rhel-ubi9", "debian12"]' linux_swift_versions: '["6.1", "nightly-main"]' linux_build_command: 'swift build' windows_swift_versions: '["6.1", "nightly-main"]' From ddb66d12230f4332d0cab1d6c289a2ad4cc02931 Mon Sep 17 00:00:00 2001 From: Mishal Shah Date: Fri, 25 Apr 2025 18:54:27 -0700 Subject: [PATCH 5/5] Update pull_request.yml drop debian12 for now --- .github/workflows/pull_request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 6108f53..767f5fb 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -9,7 +9,7 @@ jobs: name: Test uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main with: - linux_os_versions: '["noble", "jammy", "focal", "rhel-ubi9", "debian12"]' + linux_os_versions: '["noble", "jammy", "focal", "rhel-ubi9"]' linux_swift_versions: '["6.1", "nightly-main"]' linux_build_command: 'swift build' windows_swift_versions: '["6.1", "nightly-main"]'