Skip to content
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

Run release build on Linux #5586

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ let package = Package(
"SwiftLintTestHelpers"
]
),
.binaryTarget(
name: "SwiftLintBinary",
url: "https://github.com/realm/SwiftLint/releases/download/0.55.0/SwiftLintBinary-macos.artifactbundle.zip",
checksum: "0a689bf8f851e4ab06bfce1bf5a01840984473ef720a63916611664e442499d6"
),
.macro(
name: "SwiftLintCoreMacros",
dependencies: [
Expand All @@ -162,13 +167,3 @@ let package = Package(
),
]
)

#if os(macOS)
package.targets.append(
.binaryTarget(
name: "SwiftLintBinary",
url: "https://github.com/realm/SwiftLint/releases/download/0.55.0/SwiftLintBinary-macos.artifactbundle.zip",
checksum: "0a689bf8f851e4ab06bfce1bf5a01840984473ef720a63916611664e442499d6"
)
)
#endif
16 changes: 14 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ trigger:
- main

jobs:
- job: Linux
- job: LinuxTesting
pool:
vmImage: 'ubuntu-22.04'
strategy:
Expand All @@ -13,7 +13,19 @@ jobs:
container: $[ variables['containerImage'] ]
steps:
- script: swift test --parallel -Xswiftc -DDISABLE_FOCUSED_EXAMPLES
displayName: swift test
displayName: Testing
- job: LinuxReleaseBuild
pool:
vmImage: 'ubuntu-22.04'
strategy:
maxParallel: 10
matrix:
swift59:
containerImage: swift:5.9
container: $[ variables['containerImage'] ]
steps:
- script: swift build --disable-sandbox --configuration release --product swiftlint
displayName: Building

# TODO: Re-enable when FB11648454 is fixed
# - job: Xcode
Expand Down