Compare commits

..

6 Commits

Author SHA1 Message Date
Lukas Kubanek 06fd5ea31a Updated to Xcode 13.2 2021-11-25 20:58:08 +01:00
Lukas Kubanek 36f17aa442 Updated to Xcode 13.1 2021-10-19 11:11:29 +02:00
Lukas Kubanek 6c891952f4 Raised minimum macOS deployment target for test targets 2021-08-18 16:06:27 +02:00
Lukas Kubanek 3bac27b7a8 Added macOS 11 & Xcode 13 CI configuration 2021-08-18 15:39:28 +02:00
Lukas Kubanek 94d4b11aec Fixed compatibility issue with Swift 5.5 2021-08-18 15:23:00 +02:00
Lukas Kubanek 4be394e313 Updated to Xcode 13 β1 2021-06-08 09:44:17 +02:00
5 changed files with 41 additions and 9 deletions
+21 -2
View File
@@ -6,13 +6,32 @@ on:
pull_request:
branches: [ master ]
jobs:
jobs:
macos-11:
name: macOS 11 (Xcode ${{ matrix.xcode }})
runs-on: macos-11
strategy:
matrix:
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11-Readme.md#xcode
xcode:
- "13.0" # Swift 5.5
- "12.5.1" # Swift 5.4.2
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: Build
run: swift build -v
- name: Test
run: swift test -v
macos-10_15:
name: macOS 10.15 (Xcode ${{ matrix.xcode }})
runs-on: macos-10.15
strategy:
matrix:
# See https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md#xcode
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md#xcode
xcode:
- "12.3" # Swift 5.3.2
- "12.2" # Swift 5.3.1
+3 -3
View File
@@ -312,7 +312,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0820;
LastUpgradeCheck = 1250;
LastUpgradeCheck = 1320;
ORGANIZATIONNAME = "Lukas Kubanek";
TargetAttributes = {
8055B0371E201C5D009DC3EE = {
@@ -645,7 +645,7 @@
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = "Supporting Files/Info-Tests.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.15;
MACOSX_DEPLOYMENT_TARGET = 11.0;
PRODUCT_BUNDLE_IDENTIFIER = com.lukaskubanek.OrderedDictionaryTests;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
};
@@ -658,7 +658,7 @@
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = "Supporting Files/Info-Tests.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.15;
MACOSX_DEPLOYMENT_TARGET = 11.0;
PRODUCT_BUNDLE_IDENTIFIER = com.lukaskubanek.OrderedDictionaryTests;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
};
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1250"
LastUpgradeVersion = "1320"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1250"
LastUpgradeVersion = "1320"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
@@ -38,10 +38,12 @@ public struct OrderedDictionarySlice<Key: Hashable, Value>: RandomAccessCollecti
public let endIndex: Base.Index
// ============================================================================ //
// MARK: - Subscript
// MARK: - Subscripts
// ============================================================================ //
public subscript(position: Base.Index) -> Base.Element {
public subscript(
position: Base.Index
) -> Base.Element {
get {
base[position]
}
@@ -50,6 +52,17 @@ public struct OrderedDictionarySlice<Key: Hashable, Value>: RandomAccessCollecti
}
}
public subscript(
bounds: Range<Int>
) -> OrderedDictionarySlice<Key, Value> {
get {
base[bounds]
}
set(newElements) {
base[bounds] = newElements
}
}
// ============================================================================ //
// MARK: - Reordering Methods Overloads
// ============================================================================ //