mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
bazel_linux:
|
|
name: Bazel, Linux, Swift 6.3 # pre-installed
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- &checkout-step
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
- uses: ./.github/actions/bazel-linux-build
|
|
name: Build SwiftLint with Bazel
|
|
env:
|
|
CI_BAZELRC_FILE_CONTENT: ${{ secrets.CI_BAZELRC_FILE_CONTENT }}
|
|
- name: Verify SourceKit dynamic loading behavior
|
|
run: bash tools/verify-sourcekit-loading.sh bazel-bin/swiftlint .
|
|
|
|
plugins_linux:
|
|
name: SPM plugins, Linux, Swift ${{ matrix.version }}
|
|
runs-on: ubuntu-24.04
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- image: swift:5.9-jammy
|
|
version: '5.9'
|
|
- image: swift:5.10-noble
|
|
version: '5.10'
|
|
- image: swift:6.0-noble
|
|
version: '6.0'
|
|
- image: swift:6.1-noble
|
|
version: '6.1'
|
|
- image: swift:6.2-noble
|
|
version: '6.2'
|
|
- image: swift:6.3-noble
|
|
version: '6.3'
|
|
container: ${{ matrix.image }}
|
|
steps:
|
|
- *checkout-step
|
|
- name: Build plugins
|
|
uses: ./.github/actions/run-make
|
|
with:
|
|
rule: spm_build_plugins
|