Skip to content

Commit 1303607

Browse files
authored
try fix docs build (#376)
2 parents 4f6f3f1 + a6624f2 commit 1303607

File tree

7 files changed

+23
-8
lines changed

7 files changed

+23
-8
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515

1616
jobs:
1717
test:
18+
name: test ${{ matrix.channel }}-${{ matrix.target }}
1819
runs-on: ${{ matrix.os }}
1920
steps:
2021
- uses: actions/checkout@v4
@@ -46,6 +47,11 @@ jobs:
4647
log-level: warn
4748
command: check
4849
arguments: --all-features
50+
- name: Build Docs
51+
uses: actions-rs/cargo@v1
52+
with:
53+
command: doc
54+
args: --all
4955
- name: Run tests
5056
env:
5157
CHANNEL: ${{ matrix.channel }}

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ members = [
88
]
99

1010
[workspace.package]
11-
version = "0.6.14"
11+
version = "0.6.15"
1212
edition = "2021"
1313
authors = ["[email protected]"]
1414
repository = "https://github.com/acl-dev/open-coroutine"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ fn main() {
136136
}
137137
```
138138

139-
## 🪽 Advanced Usage
139+
## 🪶 Advanced Usage
140140

141141
### create a task with priority
142142

README_ZH.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ fn main() {
132132
}
133133
```
134134

135-
## 🪽 进阶使用
135+
## 🪶 进阶使用
136136

137137
### 创建具有优先级的任务
138138

core/src/common/ordered_work_steal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ impl<T: Debug> OrderedWorkStealQueue<T> {
104104
.store(self.len().saturating_sub(1), Ordering::Release);
105105
return Some(item);
106106
}
107-
Steal::Retry => continue,
107+
Steal::Retry => {}
108108
Steal::Empty => break,
109109
}
110110
}

core/src/common/work_steal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl<T: Debug> WorkStealQueue<T> {
7474
.store(self.len().saturating_sub(1), Ordering::Release);
7575
return Some(item);
7676
}
77-
Steal::Retry => continue,
77+
Steal::Retry => {}
7878
Steal::Empty => return None,
7979
}
8080
}

open-coroutine/build.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ fn main() {
8181
);
8282
let crates_parent = if crates_parent_dirs.len() == 1 {
8383
crates_parent_dirs.first().expect("host dir not found")
84-
} else {
85-
let rustup_dist_server =
86-
var("RUSTUP_DIST_SERVER").expect("RUSTUP_DIST_SERVER not found");
84+
} else if let Ok(rustup_dist_server) = var("RUSTUP_DIST_SERVER") {
8785
let host = rustup_dist_server
8886
.split("://")
8987
.last()
@@ -109,6 +107,17 @@ fn main() {
109107
})
110108
.expect("host dir not found")
111109
})
110+
} else {
111+
crates_parent_dirs
112+
.iter()
113+
.find(|entry| {
114+
entry
115+
.file_name()
116+
.to_string_lossy()
117+
.to_string()
118+
.contains("crates.io")
119+
})
120+
.expect("host dir not found")
112121
}
113122
.file_name()
114123
.to_string_lossy()

0 commit comments

Comments
 (0)