forked from aws/language-servers
-
Notifications
You must be signed in to change notification settings - Fork 0
101 lines (85 loc) · 3.62 KB
/
create-agent-standalone.yml
File metadata and controls
101 lines (85 loc) · 3.62 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Create agent-standalone bundles
on:
push:
branches: [main, feature/*, release/agentic/*]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
lfs: true
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm i
- name: Compile project
run: npm run compile
- name: Generate agent standalone
run: |
npm run ci:generate:agent-standalone -w app/aws-lsp-codewhisperer-runtimes
npm run ci:generate:agentic:attribution
# We "flatten" out each clients.zip-servers.zip pairing so that the
# downloadable artifacts are nicely organized, one per platform.
- name: Prepare and upload artifacts
run: |
platforms=("linux-arm64" "linux-x64" "mac-arm64" "mac-x64" "win-x64")
for platform in "${platforms[@]}"; do
echo "Preparing artifacts for $platform"
mkdir -p "_artifacts/$platform"
cp "app/aws-lsp-codewhisperer-runtimes/build/archives/shared/clients.zip" "_artifacts/$platform/"
cp "app/aws-lsp-codewhisperer-runtimes/build/archives/agent-standalone/$platform/servers.zip" "_artifacts/$platform/"
done
mkdir -p "_artifacts/clients"
unzip "app/aws-lsp-codewhisperer-runtimes/build/archives/shared/clients.zip" -d _artifacts/clients
# GitHub Actions zips the archive, so we upload the folder used to
# produce clients.zip. Otherwise we have a clients.zip artifact
# that contains our clients.zip file.
# app/aws-lsp-codewhisperer-runtimes/build/archives/shared/clients.zip
- name: Upload clients.zip
uses: actions/upload-artifact@v4
with:
name: clients
path: _artifacts/clients/
if-no-files-found: error
- name: Upload linux-arm64
uses: actions/upload-artifact@v4
with:
name: linux-arm64
path: _artifacts/linux-arm64/
if-no-files-found: error
- name: Upload linux-x64
uses: actions/upload-artifact@v4
with:
name: linux-x64
path: _artifacts/linux-x64/
if-no-files-found: error
- name: Upload mac-arm64
uses: actions/upload-artifact@v4
with:
name: mac-arm64
path: _artifacts/mac-arm64/
if-no-files-found: error
- name: Upload mac-x64
uses: actions/upload-artifact@v4
with:
name: mac-x64
path: _artifacts/mac-x64/
if-no-files-found: error
- name: Upload win-x64
uses: actions/upload-artifact@v4
with:
name: win-x64
path: _artifacts/win-x64/
if-no-files-found: error
- name: Upload THIRD_PARTY_LICENSES
uses: actions/upload-artifact@v4
with:
name: THIRD_PARTY_LICENSES
path: attribution/THIRD_PARTY_LICENSES
if-no-files-found: error