Skip to content

Commit 4bef42a

Browse files
committed
[CI] Add support for GitHub Actions
1 parent a5a83d1 commit 4bef42a

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

.github/workflows/automerge.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Create PR to merge main into release branch
2+
# In the first period after branching the release branch,
3+
# we typically want to include many changes from `main` in the release branch.
4+
# This workflow automatically creates a PR to merge the main into the release branch.
5+
# Later in the release cycle we should stop this practice to avoid landing risky changes by disabling this workflow.
6+
# To do so, disable the workflow as described in https://docs.github.com/en/actions/managing-workflow-runs-and-deployments/managing-workflow-runs/disabling-and-enabling-a-workflow
7+
permissions:
8+
contents: read
9+
on:
10+
schedule:
11+
- cron: '0 9 * * MON'
12+
workflow_dispatch:
13+
jobs:
14+
create_merge_pr:
15+
name: Create PR to merge main into release branch
16+
uses: swiftlang/github-workflows/.github/workflows/create_automerge_pr.yml@main
17+
with:
18+
head_branch: main
19+
base_branch: release/6.3
20+
permissions:
21+
contents: write
22+
pull-requests: write
23+
if: (github.event_name == 'schedule' && github.repository == 'swiftlang/swift-package-manager') || (github.event_name != 'schedule') # Ensure that we don't run this on a schedule in a fork

.github/workflows/pull_request.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Pull request
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
pull_request:
8+
types: [opened, reopened, synchronize]
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
tests:
16+
name: Test
17+
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
18+
with:
19+
linux_os_versions: '["amazonlinux2", "bookworm", "noble", "jammy", "rhel-ubi9"]'
20+
linux_swift_versions: '["nightly-main"]'
21+
windows_swift_versions: '["nightly-main"]'
22+
enable_android_sdk_build: true
23+
android_sdk_build_command: "swift build --build-tests"
24+
android_ndk_versions: '["r27d", "r29"]'
25+
enable_ios_checks: true
26+
enable_macos_checks: true
27+
macos_exclude_xcode_versions: "[{\"xcode_version\": \"16.3\"}, {\"xcode_version\": \"16.4\"}]"
28+
29+
soundness:
30+
name: Soundness
31+
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
32+
with:
33+
license_header_check_project_name: "Swift.org"

0 commit comments

Comments
 (0)