Skip to content

2.5.15

2.5.15 #179

name: Build+Release
on:
push:
tags:
- v**
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cache npm and makecode
uses: actions/cache@v2
with:
path: |
~/.npm
~/.pxt/mkc-cache
key: ${{ runner.os }}-${{ hashFiles('pxt.json') }}-${{ hashFiles('mkc*json') }}
restore-keys: |
${{ runner.os }}-
- name: npm install [email protected]
run: |
npm install -g [email protected]
- name: build js
run: |
makecode --java-script -u
- name: build hardware N3
run: |
makecode --hw N3
- name: build robot
run: |
cd robot
makecode
makecode -c mkc-elecfreakscutebot.json
cp ./built/binary.hex ../assets/microcode-robot-elecfreaks-cutebot.hex
makecode -c mkc-elecfreakscutebotpro.json
cp ./built/binary.hex ../assets/microcode-robot-elecfreaks-cutebotpro.hex
makecode -c mkc-yahboomtinybit.json
cp ./built/binary.hex ../assets/microcode-robot-yahboom-tinybit.hex
makecode -c mkc-keystudiominismartrobot.json
cp ./built/binary.hex ../assets/microcode-robot-keystudio-minismartrobot.hex
makecode -c mkc-dfrobotmaqueen.json
cp ./built/binary.hex ../assets/microcode-robot-dfrobot-maqueen.hex
makecode -c mkc-dfrobotmaqueenplusv2.json
cp ./built/binary.hex ../assets/microcode-robot-dfrobot-maqueen-plus-v2.hex
makecode -c mkc-kittenbotminilfr.json
cp ./built/binary.hex ../assets/microcode-robot-kittenbot-minilfr.hex
makecode -c mkc-kittenbotnanobit.json
cp ./built/binary.hex ../assets/microcode-robot-kittenbot-nanobit.hex
makecode -c mkc-kittenbotrobotbit.json
cp ./built/binary.hex ../assets/microcode-robot-kittenbot-robotbit.hex
- name: copy files
run: |
cp ./built/binary.js ./assets/js/binary.js
cp ./built/n3/binary.hex ./assets/firmware.hex
- name: build localized hex files
run: |
yarn install --frozen-lockfile
node ./scripts/lochex.mjs
- name: upload modified assets
uses: stefanzweifel/git-auto-commit-action@v4
with:
file_pattern: "assets/* _includes/*"
branch: main