Skip to content

fix(gitpod): workaround the rustup concurrent issue #162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,29 @@
# and commit this file to your remote git repository to share the goodness with others.

tasks:
- name: Install Rust
before: |
# 這個做法有點 hacky⋯⋯讓 rustup 根據
# rust-toolchain.toml 下載需要的版本。
cargo -V
gp sync-done rust-installation

- name: Binding /bin/bash
before: |
# 將 /bin/sh 綁定為 /bin/bash (workaround 無法 scripts/check.sh 的問題)
sudo ln -fs /bin/bash /bin/sh

- name: Install cargo utilities
init: |
gp sync-await rust-installation

# 安裝 cargo-workspace 和 cargo-udeps
cargo install cargo-workspace cargo-udeps

- name: Prebuild server-rust
init: |
gp sync-await rust-installation

# 組建檢查檔案,以及 development 和 release 的編譯檔案
cargo check
cargo build
Expand Down