Skip to content

Commit 78b3e39

Browse files
committed
[puter] add CI workflow for building frontend
1 parent 6b4d217 commit 78b3e39

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/main.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,52 @@ jobs:
7272
dist/*.js
7373
dist/*.js.map
7474
dist/*.wasm
75+
frontend:
76+
name: Build Frontend
77+
runs-on: ubuntu-latest
78+
needs: build
79+
steps:
80+
- name: Checkout code
81+
uses: actions/checkout@v4
82+
83+
- name: Setup pnpm
84+
uses: pnpm/action-setup@v4
85+
with:
86+
version: latest
87+
88+
- name: Setup Node.js
89+
uses: actions/setup-node@v4
90+
with:
91+
node-version: "22"
92+
cache: "pnpm"
93+
94+
- name: Install dependencies
95+
run: pnpm install
96+
97+
- name: Get artifacts
98+
uses: actions/download-artifact@v4
99+
with:
100+
name: scramjet
101+
102+
- name: Build Dreamland
103+
run: |
104+
cd dreamland
105+
pnpm build
106+
107+
- name: Build Chobitsu
108+
run: |
109+
cd chobitsu
110+
pnpm webpack build --mode development
111+
112+
- name: Build chobitsu_inject
113+
run: |
114+
cd chobitsu_inject
115+
npx rollup -c
116+
117+
- name: Build Frontend
118+
run: |
119+
cd frontend
120+
pnpm build
75121
tests:
76122
name: Run Scramjet Tests
77123
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)