mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
switch to stable channel
This commit is contained in:
parent
fa91654f68
commit
dccbd45a00
4
.github/workflows/ci.yaml
vendored
4
.github/workflows/ci.yaml
vendored
@ -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:
|
||||
|
8
.github/workflows/frontend_rust.yml
vendored
8
.github/workflows/frontend_rust.yml
vendored
@ -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
|
||||
|
@ -1,2 +0,0 @@
|
||||
[toolchain]
|
||||
channel = "nightly-2021-04-24"
|
2
backend/rust-toolchain.toml
Normal file
2
backend/rust-toolchain.toml
Normal file
@ -0,0 +1,2 @@
|
||||
[toolchain]
|
||||
channel = "stable-2022-01-20"
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -9,4 +9,4 @@ install_cargo_make:
|
||||
|
||||
install_rust:
|
||||
brew bundle
|
||||
rustup-init -y --default-toolchain=nightly
|
||||
rustup-init -y --default-toolchain=stable
|
||||
|
2
frontend/app_flowy/.gitignore
vendored
2
frontend/app_flowy/.gitignore
vendored
@ -59,4 +59,4 @@ windows/flutter/dart_ffi/
|
||||
**/**/*.lib
|
||||
**/**/*.dll
|
||||
**/**/*.so
|
||||
**/Brewfile.lock.json
|
||||
**/**/Brewfile.lock.json
|
@ -1,3 +0,0 @@
|
||||
[toolchain]
|
||||
#rustup override set nightly-2021-04-24
|
||||
channel = "nightly-2021-04-24"
|
2
frontend/rust-lib/rust-toolchain.toml
Normal file
2
frontend/rust-lib/rust-toolchain.toml
Normal file
@ -0,0 +1,2 @@
|
||||
[toolchain]
|
||||
channel = "stable-2022-01-20"
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -1,3 +0,0 @@
|
||||
[toolchain]
|
||||
#rustup override set nightly-2021-04-24
|
||||
channel = "nightly-2021-04-24"
|
2
shared-lib/rust-toolchain.toml
Normal file
2
shared-lib/rust-toolchain.toml
Normal file
@ -0,0 +1,2 @@
|
||||
[toolchain]
|
||||
channel = "stable-2022-01-20"
|
Loading…
Reference in New Issue
Block a user