mirror of
https://github.com/apple/swift-nio
synced 2026-11-27 05:04:22 +00:00
Motivation: Some repos using this as their source of GitHub Actions logic have submodules. Modifications: Change workflows to checkout submodules. Result: All CI will work cleanly
27 lines
698 B
YAML
27 lines
698 B
YAML
name: Swift 6 language mode
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
# We are cancelling previously triggered workflow runs
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}-swift-6-language-mode
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
swift-6-language-mode:
|
|
name: Swift 6 language mode
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: swift:6.0-jammy
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
submodules: true
|
|
- name: Set the language mode
|
|
run: swift package tools-version --set 6.0
|
|
- name: Build with Swift 6 language mode
|
|
run: swift build -Xswiftc -warnings-as-errors
|