Skip to content

Commit 4c3cd8f

Browse files
authored
macOS build (#46)
1 parent 9db3368 commit 4c3cd8f

4 files changed

Lines changed: 20 additions & 15 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
matrix:
1414
rust:
1515
- stable
16-
- 1.63.0 # MSRV for linux distributions (>= Debian 12)
17-
# - nightly # To keep the MSRV, we can't test with nightly as some downgraded crates fails to compile
16+
- 1.75.0 # MSRV for linux distributions (>= Debian 12)
17+
- nightly
1818
platform: [ubuntu-latest, windows-latest, macos-latest]
1919
runs-on: ${{ matrix.platform }}
2020
steps:

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
authors = ["Muhammad Mominul Huque <mominul2082@gmail.com>"]
55
license = "MPL-2.0"
66
edition = "2021"
7-
rust-version = "1.63.0"
7+
rust-version = "1.75.0"
88

99
[lib]
1010
crate-type = ["lib", "staticlib"]
@@ -19,10 +19,10 @@ codegen-units = 1
1919
ahash = { version = "0.8", features = ["serde"] }
2020
emojicon = { version = "0.5", features = ["custom"] }
2121
serde_json = "1.0"
22-
regex = "~1.9" # For maintaining MSRV
22+
regex = "1.9"
2323
stringplus = "0.1"
2424
edit-distance = "2.1"
25-
okkhor = "0.7"
25+
okkhor = "0.8"
2626
poriborton = "0.2"
2727
upodesh = "0.4"
2828

riti.xcodeproj/project.pbxproj

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// !$*UTF8*$!
22
{
3-
/* generated with cargo-xcode 1.11.0 */
43
archiveVersion = 1;
54
classes = {
65
};
@@ -32,7 +31,7 @@
3231

3332
/* Begin PBXFileReference section */
3433
CA00B9937C4654FCDE10A9EB /* libriti.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libriti.a; sourceTree = BUILT_PRODUCTS_DIR; };
35-
CAF95239D67F3EF4668187A5 /* Cargo.toml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = Cargo.toml; path = Cargo.toml; sourceTree = "<group>"; };
34+
CAF95239D67F3EF4668187A5 /* Cargo.toml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Cargo.toml; sourceTree = "<group>"; };
3635
/* End PBXFileReference section */
3736

3837
/* Begin PBXGroup section */
@@ -124,41 +123,43 @@
124123
/* End PBXSourcesBuildPhase section */
125124

126125
/* Begin XCBuildConfiguration section */
127-
CA00A0F7F57D1056C3DE07A2 /* Release */ = {
126+
CA004EBF41001056C3DE07A2 /* Debug */ = {
128127
isa = XCBuildConfiguration;
129128
buildSettings = {
130129
CARGO_XCODE_CARGO_DEP_FILE_NAME = libriti.d;
131130
CARGO_XCODE_CARGO_FILE_NAME = libriti.a;
132131
INSTALL_GROUP = "";
133132
INSTALL_MODE_FLAG = "";
134133
INSTALL_OWNER = "";
134+
MACOSX_DEPLOYMENT_TARGET = 10.15;
135135
PRODUCT_NAME = riti;
136136
SKIP_INSTALL = YES;
137137
SUPPORTED_PLATFORMS = "xrsimulator xros watchsimulator watchos macosx iphonesimulator iphoneos driverkit appletvsimulator appletvos";
138138
};
139-
name = Release;
139+
name = Debug;
140140
};
141-
CA004EBF41001056C3DE07A2 /* Debug */ = {
141+
CA00A0F7F57D1056C3DE07A2 /* Release */ = {
142142
isa = XCBuildConfiguration;
143143
buildSettings = {
144144
CARGO_XCODE_CARGO_DEP_FILE_NAME = libriti.d;
145145
CARGO_XCODE_CARGO_FILE_NAME = libriti.a;
146146
INSTALL_GROUP = "";
147147
INSTALL_MODE_FLAG = "";
148148
INSTALL_OWNER = "";
149+
MACOSX_DEPLOYMENT_TARGET = 10.15;
149150
PRODUCT_NAME = riti;
150151
SKIP_INSTALL = YES;
151152
SUPPORTED_PLATFORMS = "xrsimulator xros watchsimulator watchos macosx iphonesimulator iphoneos driverkit appletvsimulator appletvos";
152153
};
153-
name = Debug;
154+
name = Release;
154155
};
155156
CAF7FE07D4CF3CC16B37690B /* Release */ = {
156157
isa = XCBuildConfiguration;
157158
buildSettings = {
159+
"ADDITIONAL_SDKS[sdk=a*]" = macosx;
158160
"ADDITIONAL_SDKS[sdk=i*]" = macosx;
159161
"ADDITIONAL_SDKS[sdk=w*]" = macosx;
160162
"ADDITIONAL_SDKS[sdk=x*]" = macosx;
161-
"ADDITIONAL_SDKS[sdk=a*]" = macosx;
162163
ALWAYS_SEARCH_USER_PATHS = NO;
163164
CARGO_TARGET_DIR = "$(PROJECT_TEMP_DIR)/cargo_target";
164165
CARGO_XCODE_BUILD_PROFILE = release;
@@ -176,10 +177,10 @@
176177
CAF8FE07D4CF228BE02872F8 /* Debug */ = {
177178
isa = XCBuildConfiguration;
178179
buildSettings = {
180+
"ADDITIONAL_SDKS[sdk=a*]" = macosx;
179181
"ADDITIONAL_SDKS[sdk=i*]" = macosx;
180182
"ADDITIONAL_SDKS[sdk=w*]" = macosx;
181183
"ADDITIONAL_SDKS[sdk=x*]" = macosx;
182-
"ADDITIONAL_SDKS[sdk=a*]" = macosx;
183184
ALWAYS_SEARCH_USER_PATHS = NO;
184185
CARGO_TARGET_DIR = "$(PROJECT_TEMP_DIR)/cargo_target";
185186
CARGO_XCODE_BUILD_PROFILE = debug;

src/fixed/method.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,7 @@ fn is_left_standing_kar(c: char) -> bool {
560560
}
561561

562562
#[cfg(test)]
563+
#[allow(unused_imports)]
563564
mod tests {
564565
use pretty_assertions::assert_eq;
565566

@@ -622,6 +623,9 @@ mod tests {
622623
assert_eq!(method.suggestions, ["()"]);
623624
}
624625

626+
// The latest Rust version has incompatibility with the sorting order of the suggestions.
627+
// So, this sensitive test are disabled for the MSRV.
628+
#[rustversion::not(stable(1.75))]
625629
#[test]
626630
fn test_suggestion_smart_quote() {
627631
let mut method = FixedMethod::default();
@@ -645,7 +649,7 @@ mod tests {
645649

646650
// The latest Rust version has incompatibility with the sorting order of the suggestions.
647651
// So, this sensitive test are disabled for the MSRV.
648-
#[rustversion::not(stable(1.63))]
652+
#[rustversion::not(stable(1.75))]
649653
#[test]
650654
fn test_emojis() {
651655
use crate::keycodes::VC_SEMICOLON; // Don't know why Rust 1.63 errors on unused import in CI.
@@ -697,7 +701,7 @@ mod tests {
697701

698702
// The latest Rust version has incompatibility with the sorting order of the suggestions.
699703
// So, this sensitive test are disabled for the MSRV.
700-
#[rustversion::not(stable(1.63))]
704+
#[rustversion::not(stable(1.75))]
701705
#[test]
702706
fn test_suggestion_ansi() {
703707
let mut method = FixedMethod::default();

0 commit comments

Comments
 (0)