Skip to content

Commit a6aab2f

Browse files
committed
添加 Copilot 设置步骤工作流文件
Signed-off-by: HernandoR <lzhen.dev@outlook.com>
1 parent 8d04d96 commit a6aab2f

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This file was generated based on the recommendations from https://docs.github.com/en/enterprise-cloud@latest/copilot/customizing-copilot/customizing-the-development-environment-for-copilot-coding-agent#preinstalling-tools-or-dependencies-in-copilots-environment
2+
3+
name: "Copilot Setup Steps"
4+
5+
# Automatically run the setup steps when they are changed to allow for easy validation, and
6+
# allow manual testing through the repository's "Actions" tab
7+
on:
8+
workflow_dispatch:
9+
push:
10+
paths:
11+
- .github/workflows/copilot-setup-steps.yml
12+
pull_request:
13+
paths:
14+
- .github/workflows/copilot-setup-steps.yml
15+
16+
env:
17+
EXAMPLES_FOLDER: examples
18+
19+
jobs:
20+
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
21+
copilot-setup-steps:
22+
runs-on: ubuntu-latest
23+
defaults:
24+
run:
25+
shell: bash -l {0}
26+
steps:
27+
- name: Checkout code with submodule
28+
uses: actions/checkout@v4
29+
with:
30+
submodules: recursive
31+
fetch-depth: 0
32+
33+
- name: cargo test
34+
uses: dtolnay/rust-toolchain@stable
35+
with:
36+
toolchain: stable

0 commit comments

Comments
 (0)