Skip to content

Commit 7f3d242

Browse files
authored
Create copilot-setup-steps.yml
1 parent a4a5826 commit 7f3d242

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: "Copilot Setup Steps"
2+
3+
# Automatically run the setup steps when they are changed to allow for easy validation, and
4+
# allow manual testing through the repository's "Actions" tab
5+
on:
6+
workflow_dispatch:
7+
push:
8+
branches:
9+
- main
10+
paths:
11+
- .github/workflows/copilot-setup-steps.yml
12+
pull_request:
13+
paths:
14+
- .github/workflows/copilot-setup-steps.yml
15+
16+
jobs:
17+
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
18+
copilot-setup-steps:
19+
runs-on: ubuntu-latest
20+
21+
# Set the permissions to the lowest permissions possible needed for your steps.
22+
# Copilot will be given its own token for its operations.
23+
permissions:
24+
# If you want to clone the repository as part of your setup steps, for example to install dependencies, you'll need the `contents: read` permission. If you don't clone the repository in your setup steps, Copilot will do this for you automatically after the steps complete.
25+
contents: read
26+
27+
# You can define any steps you want, and they will run before the agent starts.
28+
# If you do not check out your code, Copilot will do this for you.
29+
steps:
30+
- name: Checkout code
31+
uses: actions/checkout@v5
32+
33+
- name: Setup NodeJS v18 LTS
34+
uses: actions/setup-node@v3
35+
with:
36+
node-version: 20
37+
cache: npm
38+
39+
- name: prepare native
40+
run: sudo apt-get install -y libatlas-base-dev
41+
42+
- name: Setup Java 21
43+
uses: actions/setup-java@v4
44+
with:
45+
distribution: 'temurin'
46+
java-version: '21'
47+
48+
- name: Verify Java version
49+
run: java --version
50+
51+
# This should resolve a JVM, download dependancies and leave mill ready for use.
52+
- name: setup mill
53+
run: ./mill vecxt.__.compiledClassesAndSemanticDbFiles

0 commit comments

Comments
 (0)