소스 검색

switch to stable channel

nathan 3 년 전
부모
커밋
dccbd45a00

+ 2 - 2
.github/workflows/ci.yaml

@@ -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:

+ 4 - 4
.github/workflows/frontend_rust.yml

@@ -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

+ 0 - 2
backend/rust-toolchain

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

+ 2 - 0
backend/rust-toolchain.toml

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

+ 2 - 2
doc/BUILD_ON_LINUX.md

@@ -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

+ 1 - 1
doc/BUILD_ON_WINDOWS.md

@@ -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

+ 1 - 1
frontend/Makefile

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

+ 1 - 1
frontend/app_flowy/.gitignore

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

+ 0 - 3
frontend/rust-lib/rust-toolchain

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

+ 2 - 0
frontend/rust-lib/rust-toolchain.toml

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

+ 1 - 1
frontend/scripts/build_sdk.sh

@@ -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

+ 1 - 1
frontend/scripts/docker-buildfiles/Dockerfile

@@ -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 

+ 1 - 1
frontend/scripts/makefile/desktop.toml

@@ -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"

+ 0 - 3
shared-lib/rust-toolchain

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

+ 2 - 0
shared-lib/rust-toolchain.toml

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