switch to stable channel

This commit is contained in:
nathan 2022-01-23 11:34:41 +08:00
parent fa91654f68
commit dccbd45a00
15 changed files with 20 additions and 22 deletions

View File

@ -51,8 +51,8 @@ jobs:
curl \
--proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
rustup toolchain install nightly
rustup default nightly
rustup toolchain install stable
rustup default stable
- name: Checkout Flutter
uses: actions/checkout@v2
with:

View File

@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: stable
override: true
- run: rustup component add rustfmt
working-directory: frontend/rust-lib
@ -38,7 +38,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: stable
override: true
- run: rustup component add clippy
working-directory: frontend/rust-lib
@ -55,8 +55,8 @@ jobs:
curl \
--proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
rustup toolchain install nightly
rustup default nightly
rustup toolchain install stable
rustup default stable
- name: Frontend tests
working-directory: frontend/rust-lib
run: cargo test

View File

@ -1,2 +0,0 @@
[toolchain]
channel = "nightly-2021-04-24"

View File

@ -0,0 +1,2 @@
[toolchain]
channel = "stable-2022-01-20"

View File

@ -34,8 +34,8 @@ yay -S curl base-devel sqlite openssl clang cmake ninja pkg-config gtk3 unzip
```shell
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
rustup toolchain install nightly
rustup default nightly
rustup toolchain install stable
rustup default stable
```
3. Install flutter according to https://docs.flutter.dev/get-started/install/linux

View File

@ -32,7 +32,7 @@ flutter doctor
```shell
# Download rustup.exe from https://win.rustup.rs/x86_64
# Call rustup.exe from powershell or cmd
.\rustup-init.exe --default-toolchain nightly --default-host x86_64-pc-windows-msvc -y
.\rustup-init.exe --default-toolchain stable --default-host x86_64-pc-windows-msvc -y
# Note: you probably need to re-open termial to get cargo command be available in PATH var
```
5. Install cargo make

View File

@ -9,4 +9,4 @@ install_cargo_make:
install_rust:
brew bundle
rustup-init -y --default-toolchain=nightly
rustup-init -y --default-toolchain=stable

View File

@ -59,4 +59,4 @@ windows/flutter/dart_ffi/
**/**/*.lib
**/**/*.dll
**/**/*.so
**/Brewfile.lock.json
**/**/Brewfile.lock.json

View File

@ -1,3 +0,0 @@
[toolchain]
#rustup override set nightly-2021-04-24
channel = "nightly-2021-04-24"

View File

@ -0,0 +1,2 @@
[toolchain]
channel = "stable-2022-01-20"

View File

@ -7,7 +7,7 @@ rustup show
#Env check
#1. rustc --version will be the same as cargo --version
#2. override the toolchain if the current toolchain not equal to the rust-toolchain file specified.
# rustup override set nightly-2021-04-24
# rustup override set stable-2021-04-24
#3. Check your cargo env using the same source by: which cargo
# 1. ~/.bash_profile,
# 2. ~/.bashrc

View File

@ -22,7 +22,7 @@ RUN git clone https://aur.archlinux.org/yay.git \
RUN yay -S --noconfirm curl base-devel sqlite openssl clang cmake ninja pkg-config gtk3 unzip
RUN xdg-user-dirs-update
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
RUN source $HOME/.cargo/env && rustup toolchain install nightly && rustup default nightly
RUN source $HOME/.cargo/env && rustup toolchain install stable && rustup default stable
RUN git clone https://github.com/flutter/flutter.git $HOME/.local/flutter
RUN flutter channel stable
RUN flutter config --enable-linux-desktop

View File

@ -6,7 +6,7 @@
[tasks.env_check]
dependencies = ["echo_env"]
condition = { env_set = [ "BUILD_FLAG", "RUST_COMPILE_TARGET", "CRATE_TYPE", "TARGET_OS"], channels = ["nightly"] }
condition = { env_set = [ "BUILD_FLAG", "RUST_COMPILE_TARGET", "CRATE_TYPE", "TARGET_OS"], channels = ["stable"] }
[tasks.flowy-sdk-dev]
mac_alias = "flowy-sdk-dev-macos"

View File

@ -1,3 +0,0 @@
[toolchain]
#rustup override set nightly-2021-04-24
channel = "nightly-2021-04-24"

View File

@ -0,0 +1,2 @@
[toolchain]
channel = "stable-2022-01-20"