[Swift] Bump minimum supported version of swift to 5.10 (#8758)

This commit is contained in:
mustiikhalil
2025-11-15 00:07:49 +01:00
committed by GitHub
parent fa87eccd1a
commit 7150dfb5c4
10 changed files with 11 additions and 11 deletions

View File

@@ -10,7 +10,7 @@ tasks:
bazel: ${{ bazel }}
environment:
CC: clang
SWIFT_VERSION: "5.9"
SWIFT_VERSION: "5.10"
SWIFT_HOME: "$HOME/swift-$SWIFT_VERSION"
PATH: "$PATH:$SWIFT_HOME/usr/bin"
shell_commands:
@@ -26,7 +26,7 @@ tasks:
bazel: ${{ bazel }}
environment:
CC: clang
SWIFT_VERSION: "5.9"
SWIFT_VERSION: "5.10"
SWIFT_HOME: "$HOME/swift-$SWIFT_VERSION"
PATH: "$PATH:$SWIFT_HOME/usr/bin"
shell_commands:

View File

@@ -503,7 +503,7 @@ jobs:
name: Test Swift
strategy:
matrix:
swift: ["5.9", "5.10", "6.1"]
swift: ["5.10", "6.1", "6.2"]
# Only 22.04 has swift at the moment https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md?plain=1#L30
runs-on: ubuntu-22.04
steps:

View File

@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
s.ios.deployment_target = '11.0'
s.osx.deployment_target = '10.14'
s.swift_version = '5.0'
s.swift_version = '5.10'
s.source_files = 'swift/Sources/Flatbuffers/*.swift'
s.pod_target_xcconfig = {
'BUILD_LIBRARY_FOR_DISTRIBUTION' => 'YES'

View File

@@ -1,4 +1,4 @@
// swift-tools-version:5.9
// swift-tools-version:5.10
/*
* Copyright 2020 Google Inc. All rights reserved.
*

View File

@@ -1,4 +1,4 @@
// swift-tools-version:5.9
// swift-tools-version:5.10
/*
* Copyright 2020 Google Inc. All rights reserved.
*

View File

@@ -1,4 +1,4 @@
// swift-tools-version:5.9
// swift-tools-version:5.10
/*
* Copyright 2020 Google Inc. All rights reserved.
*

View File

@@ -480,7 +480,7 @@ public struct FlatBufferBuilder {
return endVector(len: size)
}
#if swift(>=5.0) && !os(WASI)
#if !os(WASI)
@inline(__always)
/// Creates a vector of bytes in the buffer.
///

View File

@@ -143,7 +143,7 @@ struct _InternalByteBuffer {
/// Adds a `ContiguousBytes` to buffer memory
/// - Parameter value: bytes to copy
#if swift(>=5.0) && !os(WASI)
#if !os(WASI)
@inline(__always)
@usableFromInline
mutating func push(bytes: ContiguousBytes) {

View File

@@ -1,4 +1,4 @@
// swift-tools-version:5.9
// swift-tools-version:5.10
/*
* Copyright 2020 Google Inc. All rights reserved.
*

View File

@@ -1,4 +1,4 @@
// swift-tools-version:5.9
// swift-tools-version:5.10
/*
* Copyright 2020 Google Inc. All rights reserved.
*