-
Notifications
You must be signed in to change notification settings - Fork 26
57 lines (54 loc) · 1.93 KB
/
makecode.yml
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
name: MakeCode
on:
push:
branches:
- main
- master
tags:
- "v[0-9]*.*.*"
pull_request:
branches:
- master
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
actions: read
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: npm install
run: |
npm install -g [email protected]
- run: makecode -u -j --mono-repo -c mkc.json
- run: makecode -u -j --mono-repo -c mkc-maker.json
- run: makecode -u -j --mono-repo -c mkc-arcade.json
- run: makecode -u -j --mono-repo -c mkc-calliope.json
- run: makecode -c mkc.json
- run: makecode -c mkc-maker.json --hw nucleo-f411re
- run: makecode -c mkc-arcade.json --hw F4,D5,N4,N3
- run: cd tools/multitool && makecode --hw F4,D5,N4,N3
- run: cd tools/uploader && makecode
- run: cd tools/hid-servers && makecode
- run: cd tools/hid-servers && makecode -c mkc-rp2040.json
- run: cd tools/hid-joystick && makecode
- run: cd tools/hid-joystick && makecode -c mkc-rp2040.json
- run: cd tools/microbit-oob && makecode
- run: cd tools/microbit-jukebox && makecode
- run: cd tools/farm-beats && makecode
- run: ./test-others.sh
- run: ./copy-release-files.sh
- name: Upload release files
uses: actions/upload-artifact@v1
with:
name: release-files
path: dist/
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist/*