Skip to content

Commit 9357a75

Browse files
Add CI workflow to build the MakeCode project (cloud build).
1 parent d41f777 commit 9357a75

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build MakeCode Project
2+
3+
on:
4+
push:
5+
branches: '*'
6+
pull_request:
7+
branches: '*'
8+
9+
jobs:
10+
build-project:
11+
name: Build MakeCode Project
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: '20'
19+
- name: Install dependencies
20+
run: |
21+
npm install -g pxt
22+
pxt target microbit --no-save
23+
pxt install
24+
- name: Build project cloud compiler
25+
run: pxt build --cloud
26+
env:
27+
CI: true

0 commit comments

Comments
 (0)