Skip to content

Commit

Permalink
try fix docs build (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
loongs-zhang authored Jan 11, 2025
2 parents 4f6f3f1 + a6624f2 commit 1303607
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ env:

jobs:
test:
name: test ${{ matrix.channel }}-${{ matrix.target }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -46,6 +47,11 @@ jobs:
log-level: warn
command: check
arguments: --all-features
- name: Build Docs
uses: actions-rs/cargo@v1
with:
command: doc
args: --all
- name: Run tests
env:
CHANNEL: ${{ matrix.channel }}
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ members = [
]

[workspace.package]
version = "0.6.14"
version = "0.6.15"
edition = "2021"
authors = ["[email protected]"]
repository = "https://github.com/acl-dev/open-coroutine"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ fn main() {
}
```

## 🪽 Advanced Usage
## 🪶 Advanced Usage

### create a task with priority

Expand Down
2 changes: 1 addition & 1 deletion README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ fn main() {
}
```

## 🪽 进阶使用
## 🪶 进阶使用

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

Expand Down
2 changes: 1 addition & 1 deletion core/src/common/ordered_work_steal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl<T: Debug> OrderedWorkStealQueue<T> {
.store(self.len().saturating_sub(1), Ordering::Release);
return Some(item);
}
Steal::Retry => continue,
Steal::Retry => {}
Steal::Empty => break,
}
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/common/work_steal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl<T: Debug> WorkStealQueue<T> {
.store(self.len().saturating_sub(1), Ordering::Release);
return Some(item);
}
Steal::Retry => continue,
Steal::Retry => {}
Steal::Empty => return None,
}
}
Expand Down
15 changes: 12 additions & 3 deletions open-coroutine/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ fn main() {
);
let crates_parent = if crates_parent_dirs.len() == 1 {
crates_parent_dirs.first().expect("host dir not found")
} else {
let rustup_dist_server =
var("RUSTUP_DIST_SERVER").expect("RUSTUP_DIST_SERVER not found");
} else if let Ok(rustup_dist_server) = var("RUSTUP_DIST_SERVER") {
let host = rustup_dist_server
.split("://")
.last()
Expand All @@ -109,6 +107,17 @@ fn main() {
})
.expect("host dir not found")
})
} else {
crates_parent_dirs
.iter()
.find(|entry| {
entry
.file_name()
.to_string_lossy()
.to_string()
.contains("crates.io")
})
.expect("host dir not found")
}
.file_name()
.to_string_lossy()
Expand Down

0 comments on commit 1303607

Please sign in to comment.