mirror of
https://github.com/realm/SwiftLint.git
synced 2026-05-07 20:12:49 +00:00
Build Linux releases with SPM and static linking
Bazel does not support that yet, so the whole Swift standard library would be required to run the binary.
This commit is contained in:
@@ -94,15 +94,13 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ env.RELEASE_BRANCH }}
|
||||
- uses: ./.github/actions/bazel-linux-build
|
||||
name: Build SwiftLint with Bazel
|
||||
env:
|
||||
CI_BAZELRC_FILE_CONTENT: ${{ secrets.CI_BAZELRC_FILE_CONTENT }}
|
||||
- name: Upload Bazel build artifacts
|
||||
- name: Build binary
|
||||
run: make --debug spm_linux_build
|
||||
- name: Upload binary
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: swiftlint_linux_amd64
|
||||
path: bazel-bin/swiftlint
|
||||
path: .build/release/swiftlint
|
||||
|
||||
build-linux-arm64:
|
||||
name: Build Linux ARM64 Binary
|
||||
@@ -114,15 +112,13 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ env.RELEASE_BRANCH }}
|
||||
- uses: ./.github/actions/bazel-linux-build
|
||||
name: Build SwiftLint with Bazel
|
||||
env:
|
||||
CI_BAZELRC_FILE_CONTENT: ${{ secrets.CI_BAZELRC_FILE_CONTENT }}
|
||||
- name: Upload Bazel build artifacts
|
||||
- name: Build binary
|
||||
run: make --debug spm_linux_build
|
||||
- name: Upload binary
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: swiftlint_linux_arm64
|
||||
path: bazel-bin/swiftlint
|
||||
path: .build/release/swiftlint
|
||||
|
||||
build-macos:
|
||||
name: Build macOS Binaries
|
||||
|
||||
Reference in New Issue
Block a user