Use directory enumerator to collect and exclude files at the same time #845
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
| name: Build | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| bazel_linux: | |
| name: Bazel, Linux, Swift 6.2 # pre-installed | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| 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 }} | |
| 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' | |
| container: ${{ matrix.image }} | |
| steps: | |
| - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Build plugins | |
| uses: ./.github/actions/run-make | |
| with: | |
| rule: spm_build_plugins |