-
Notifications
You must be signed in to change notification settings - Fork 90
[CI] Add support for GitHub Actions #446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
39fb051
[CI] Add support for GitHub Actions
shahmishal ac69e13
Update the license headers
shahmishal 2ec278c
Add libsqlite3-dev to the pre build command
shahmishal 58a09b8
For linux action add libncurses5-dev
shahmishal 2015da9
Disable ABI, Unacceptable lang, and format checks
shahmishal adb2643
Only build for main and 6.2
shahmishal 831cb02
Remove strings, xcbuildrules, and xcspec from .licenseignore
shahmishal 0ae6d6a
Add support for multiple Linux platforms
shahmishal 9cd8857
Cancel in progress builds
shahmishal f7bc982
Also include libncurses-dev for UBI OS
shahmishal 51940c9
Update pull_request.yml remove the libncurses-dev from UBI.
shahmishal 609aa04
Fix the package names
jakepetroules 0a59da5
Add --no-parallel to Linux build command so we can try to find which …
jakepetroules 932ef8a
Use swift build for Linux and Windows
shahmishal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Pull request | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
|
||
jobs: | ||
tests: | ||
name: Test | ||
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main | ||
with: | ||
linux_exclude_swift_versions: '[{"swift_version": "5.9"}, {"swift_version": "5.10"}]' | ||
linux_pre_build_command: apt-get update && apt-get install -y libsqlite3-dev libncurses5-dev | ||
shahmishal marked this conversation as resolved.
Show resolved
Hide resolved
|
||
windows_exclude_swift_versions: '[{"swift_version": "5.9"}, {"swift_version": "5.10"}]' | ||
shahmishal marked this conversation as resolved.
Show resolved
Hide resolved
|
||
soundness: | ||
name: Soundness | ||
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main | ||
with: | ||
license_header_check_project_name: "Swift" | ||
shahmishal marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@@===----------------------------------------------------------------------===@@ | ||
@@ | ||
@@ This source file is part of the Swift open source project | ||
@@ | ||
@@ Copyright (c) YEARS Apple Inc. and the Swift project authors | ||
@@ Licensed under Apache License v2.0 with Runtime Library Exception | ||
@@ | ||
@@ See http://swift.org/LICENSE.txt for license information | ||
@@ See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors | ||
@@ | ||
@@===----------------------------------------------------------------------===@@ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
**/*.mlmodel | ||
**/*.pbxproj | ||
**/*.png | ||
**/*.strings | ||
**/*.xcbuildrules | ||
shahmishal marked this conversation as resolved.
Show resolved
Hide resolved
|
||
**/*.xcspec | ||
**/*.xcworkspacedata | ||
**/Package.swift | ||
.dir-locals.el | ||
.editorconfig | ||
CODEOWNERS | ||
Package.swift |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
Tests/SwiftBuildTests/TestData/CommandLineTool/CommandLineTool/main.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// This source file is part of the Swift open source project | ||
// | ||
// Copyright (c) 2025 Apple Inc. and the Swift project authors | ||
// Licensed under Apache License v2.0 with Runtime Library Exception | ||
// | ||
// See http://swift.org/LICENSE.txt for license information | ||
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
int main() { | ||
return 0; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// This source file is part of the Swift open source project | ||
// | ||
// Copyright (c) 2025 Apple Inc. and the Swift project authors | ||
// Licensed under Apache License v2.0 with Runtime Library Exception | ||
// | ||
// See http://swift.org/LICENSE.txt for license information | ||
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.