Skip to content

Commit

Permalink
chore(ribir): 🤖 update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Adoo committed Mar 27, 2024
1 parent 7d5f0a4 commit 41b0ebd
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/alpha-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
level: 'alpha'
ref: ${{ github.ref }}
merge_changelog: false
toolchain: nightly-2023-10-15
toolchain: stable
secrets:
CRATE_RELEASE_TOKEN: ${{ secrets.CRATE_RELEASE_TOKEN }}
GITHUB_RELEASE_TOKEN: ${{ secrets.RIBIR_RELEASE }}
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly-2023-10-15
# we use nightly for clippy and rustfmt
toolchain: nightly-2024-03-25
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: format style check
Expand All @@ -43,7 +44,7 @@ jobs:
uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly-2023-10-15
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: build ribir
run: cargo build
Expand All @@ -52,4 +53,4 @@ jobs:
{
echo ./README.md
find "./docs" -name "*.md"
} | xargs -I {} rustdoc -Z unstable-options --test --no-run {} -L target/debug/deps/ --edition 2018 --extern ribir=target/debug/libribir.rlib
} | xargs -I {} rustdoc --test {} -L target/debug/deps/ --edition 2018 --extern ribir=target/debug/libribir.rlib
2 changes: 1 addition & 1 deletion .github/workflows/new-dev-cycle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
level: 'beta'
ref: ${{ github.ref }}
merge_changelog: true
toolchain: nightly-2023-10-15
toolchain: stable
secrets:
CRATE_RELEASE_TOKEN: ${{ secrets.CRATE_RELEASE_TOKEN }}
GITHUB_RELEASE_TOKEN: ${{ secrets.RIBIR_RELEASE }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/patch-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
level: ${{ needs.release_level.outputs.level }}
ref: ${{ github.ref }}
merge_changelog: ${{ needs.release_level.outputs.level == 'patch' }}
toolchain: nightly-2023-10-15
toolchain: stable
secrets:
CRATE_RELEASE_TOKEN: ${{ secrets.CRATE_RELEASE_TOKEN }}
GITHUB_RELEASE_TOKEN: ${{ secrets.RIBIR_RELEASE }}
File renamed without changes.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ Please only add new entries below the [Unreleased](#unreleased---releasedate) he

### Features

- **macros**: Added a `include_crate_svg!` macro to include the svg relative to current crate. (#pr, @M-Adoo)
- **ribir**: Added a `nightly` feature to enable functionalities that require nightly Rust. (#pr, @M-Adoo)
- **macros**: Added a `include_crate_svg!` macro to include the svg relative to current crate. (#552, @M-Adoo)
- **ribir**: Added a `nightly` feature to enable functionalities that require nightly Rust. (#552, @M-Adoo)
- The `include_crates_svg!` macro can operate without the `nightly` feature.
- The `include_svg!` macro requires the `nightly` feature to be enabled.

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ A simple example of a counter:
<td style="padding:10px">
<div>

``` rust
``` rust no_run
use ribir::prelude::*;
fn main() {
let counter = fn_widget! {
Expand All @@ -66,7 +66,7 @@ fn main() {

**To use Ribir without DSL**:

```rust
```rust no_run
use ribir::prelude::*;

fn main() {
Expand Down
3 changes: 0 additions & 3 deletions docs/en/get_started/try_it.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ sidebar_position: 1

At first, you need to install Rust, you can reference the [official documentation](https://www.rust-lang.org/tools/install).

> Tips
>
> Currently Ribir only supports Rust nightly channel. You can use `rustup override set nightly` to switch to nightly channel. If you haven't installed nightly channel yet, you can check out [rustup Channels documentation](https://rust-lang.github.io/rustup/concepts/channels.html).

## Create a new Ribir project

Expand Down
4 changes: 0 additions & 4 deletions docs/zh/get_started/try_it.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ sidebar_position: 1

首先, 你需要安装 Rust,你可以参考 [Rust 官方文档](https://www.rust-lang.org/tools/install).

> 提示
>
> 目前 Ribir 只支持 Rust nightly 版本。 你可以使用 `rustup override set nightly` 切换到 nightly 通道。如果你还没有安装 nightly 通道,可以查看 [rustup Channels 文档](https://rust-lang.github.io/rustup/concepts/channels.html)
## 新建 Ribir 项目

然后,打开你的终端,创建一个新的 Rust 项目:
Expand Down

0 comments on commit 41b0ebd

Please sign in to comment.