Skip to content

Commit

Permalink
[CI] github workspace for rust
Browse files Browse the repository at this point in the history
  • Loading branch information
fanvanzh committed May 21, 2024
1 parent e8b4b58 commit 058bfec
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 57 deletions.
17 changes: 17 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 使用官方 Rust 镜像作为基础镜像
FROM rust:latest

# (可选)安装额外工具
RUN apt-get update && apt-get install -y \
git \
pkg-config \
libc6-dev \
m4 \
gcc \
&& rm -rf /var/lib/apt/lists/*

# 设置工作目录
WORKDIR /workspace

# (可选)设置环境变量,如果需要的话
ENV PATH="/root/.cargo/bin:${PATH}"
13 changes: 13 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "Rust Environment",
"context": "..",
"build": {
"dockerfile": "Dockerfile"
},
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
"extensions": [
"rust-lang.rust"
]
}
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

36 changes: 0 additions & 36 deletions appveyor.yml.old

This file was deleted.

0 comments on commit 058bfec

Please sign in to comment.