Skip to content

Commit f947b3a

Browse files
authored
fix(gitpod): workaround the rustup concurrent issue (#162) [skip ci]
* fix(gitpod): install rust before all cargo opts * fix(gitpod): [typo] gh -> gp
1 parent b8b3d1d commit f947b3a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.gitpod.yml

+11
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,29 @@
33
# and commit this file to your remote git repository to share the goodness with others.
44

55
tasks:
6+
- name: Install Rust
7+
before: |
8+
# 這個做法有點 hacky⋯⋯讓 rustup 根據
9+
# rust-toolchain.toml 下載需要的版本。
10+
cargo -V
11+
gp sync-done rust-installation
12+
613
- name: Binding /bin/bash
714
before: |
815
# 將 /bin/sh 綁定為 /bin/bash (workaround 無法 scripts/check.sh 的問題)
916
sudo ln -fs /bin/bash /bin/sh
1017
1118
- name: Install cargo utilities
1219
init: |
20+
gp sync-await rust-installation
21+
1322
# 安裝 cargo-workspace 和 cargo-udeps
1423
cargo install cargo-workspace cargo-udeps
1524
1625
- name: Prebuild server-rust
1726
init: |
27+
gp sync-await rust-installation
28+
1829
# 組建檢查檔案,以及 development 和 release 的編譯檔案
1930
cargo check
2031
cargo build

0 commit comments

Comments
 (0)