-
Notifications
You must be signed in to change notification settings - Fork 28
/
.gitpod.yml
38 lines (32 loc) · 1.1 KB
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file)
# and commit this file to your remote git repository to share the goodness with others.
image: "pan93412/gitpod-fast-rust-image:main"
tasks:
- name: Install Rust
before: |
# 這個做法有點 hacky⋯⋯讓 rustup 根據
# rust-toolchain.toml 下載需要的版本。
cargo -V
curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
gp sync-done rust-installation
- name: Prebuild server-rust
init: |
gp sync-await rust-installation
# 組建檢查檔案,以及 development 和 release 的編譯檔案
cargo check
cargo build
cargo build --release
vscode:
extensions:
# Rust
- "rust-lang.rust-analyzer"
- "Zerotaskx.rust-extension-pack"
# Git
- "cschleiden.vscode-github-actions"
- "eamodio.gitlens"
- "donjayamanne.githistory"
- "mhutchie.git-graph"
# Pan's development tools
- "GitHub.copilot"
- "felipe.nasc-touchbar"