Skip to content

Commit 0f71dd3

Browse files
authored
feat: produce agentic chat bundle from repo (aws#1827)
* chore: configure .gitattributes to store files under app/aws-lsp-codewhisperer-runtimes/_bundle-assets with LFS * chore: add ripgrep assets to repo for bundling * chore: add qserver assets to repo for bundling * feat: produce agentic chat bundle
1 parent 3b6c3be commit 0f71dd3

17 files changed

+478
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
app/aws-lsp-codewhisperer-runtimes/_bundle-assets/**/*.zip filter=lfs diff=lfs merge=lfs -text
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
name: Create agent-standalone bundles
2+
3+
on:
4+
push:
5+
branches: [main, feature/*]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
with:
15+
lfs: true
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '20'
21+
cache: 'npm'
22+
23+
- name: Install dependencies
24+
run: npm i
25+
26+
- name: Compile project
27+
run: npm run compile
28+
29+
- name: Generate agent standalone
30+
run: npm run ci:generate:agent-standalone -w app/aws-lsp-codewhisperer-runtimes
31+
32+
# We "flatten" out each clients.zip-servers.zip pairing so that the
33+
# downloadable artifacts are nicely organized, one per platform.
34+
- name: Prepare and upload artifacts
35+
run: |
36+
platforms=("linux-arm64" "linux-x64" "mac-arm64" "mac-x64" "win-x64")
37+
for platform in "${platforms[@]}"; do
38+
echo "Preparing artifacts for $platform"
39+
mkdir -p "artifacts/$platform"
40+
cp "app/aws-lsp-codewhisperer-runtimes/build/archives/shared/clients.zip" "artifacts/$platform/"
41+
cp "app/aws-lsp-codewhisperer-runtimes/build/archives/agent-standalone/$platform/servers.zip" "artifacts/$platform/"
42+
done
43+
44+
# GitHub Actions zips the archive, so we upload the folder used to
45+
# produce clients.zip. Otherwise we have a clients.zip artifact
46+
# that contains our clients.zip file.
47+
# app/aws-lsp-codewhisperer-runtimes/build/archives/shared/clients.zip
48+
- name: Upload clients.zip
49+
uses: actions/upload-artifact@v4
50+
with:
51+
name: clients
52+
path: app/aws-lsp-codewhisperer-runtimes/build/private/bundle/client
53+
if-no-files-found: error
54+
55+
- name: Upload linux-arm64
56+
uses: actions/upload-artifact@v4
57+
with:
58+
name: linux-arm64
59+
path: artifacts/linux-arm64/
60+
if-no-files-found: error
61+
62+
- name: Upload linux-x64
63+
uses: actions/upload-artifact@v4
64+
with:
65+
name: linux-x64
66+
path: artifacts/linux-x64/
67+
if-no-files-found: error
68+
69+
- name: Upload mac-arm64
70+
uses: actions/upload-artifact@v4
71+
with:
72+
name: mac-arm64
73+
path: artifacts/mac-arm64/
74+
if-no-files-found: error
75+
76+
- name: Upload mac-x64
77+
uses: actions/upload-artifact@v4
78+
with:
79+
name: mac-x64
80+
path: artifacts/mac-x64/
81+
if-no-files-found: error
82+
83+
- name: Upload win-x64
84+
uses: actions/upload-artifact@v4
85+
with:
86+
name: win-x64
87+
path: artifacts/win-x64/
88+
if-no-files-found: error
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:386250396d983862aa768d3d949794d31531860b3ab517d4473d53d2ed6a00df
3+
size 96646052
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:9eb86679beadeb741ccd5beb2a9508fd24de7519857670c45119177a477a573a
3+
size 98326593
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:66dff59da2faba2a9c0541d7d7ae1071870f9cb21f05d1cfca0d116834c0540f
3+
size 102588469
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:f5283c8cb051e06e2d1e1f62f7826b7127f4f3d5953a12a39b211fbe9c3f2593
3+
size 114550830
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:de67b9976450e7e754613975adb2e53f1bb6a27ccdf4b8d6c9f17a16758fa4e2
3+
size 113888746
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:29ed930601e40f565e0b9a0aa6a108e74d3582c117c7c4c494f709c9b4df5400
3+
size 1797214
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:5af3be09ec028ed8b1c39ea27016f535eca97f7824fb946c8d82ced4c21e007a
3+
size 2093945
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:57e99369471681728a193bc8c47b375891978056997ad033d2accc20b5c7f0a8
3+
size 2051466

0 commit comments

Comments
 (0)