Initial files for MakeCode project
This commit is contained in:
parent
7778211460
commit
726a7fc973
26 changed files with 59021 additions and 0 deletions
37
.github/workflows/cfg-check.yml
vendored
Normal file
37
.github/workflows/cfg-check.yml
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
name: Check pxt.json
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'master'
|
||||
- 'main'
|
||||
|
||||
jobs:
|
||||
check-cfg:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [14.x]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- name: npm install
|
||||
run: |
|
||||
npm install -g pxt
|
||||
pxt target arcade
|
||||
- name: Checkout current state
|
||||
run: |
|
||||
git checkout -- .
|
||||
git clean -fd
|
||||
- name: Fix files listed in config if necessary
|
||||
run: pxt checkpkgcfg
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v3
|
||||
continue-on-error: true
|
||||
with:
|
||||
title: 'Removing missing files from pxt.json'
|
||||
commit-message: 'Removing missing files from pxt.json'
|
||||
delete-branch: true
|
||||
63
.github/workflows/makecode-release.yml
vendored
Normal file
63
.github/workflows/makecode-release.yml
vendored
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
name: MakeCode Arcade Release
|
||||
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- created
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [8.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: install node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- name: install makecode
|
||||
run: |
|
||||
npm install -g pxt
|
||||
pxt target arcade
|
||||
- name: build js
|
||||
run: |
|
||||
pxt clean
|
||||
pxt install
|
||||
pxt build --cloud
|
||||
- name: build D51
|
||||
continue-on-error: true
|
||||
run: |
|
||||
pxt clean
|
||||
pxt install --hw samd51
|
||||
pxt build --hw samd51 --cloud
|
||||
cp ./built/binary.uf2 binary-d51.uf2
|
||||
- name: build F4
|
||||
continue-on-error: true
|
||||
run: |
|
||||
pxt clean
|
||||
pxt install --hw stm32f401
|
||||
pxt build --hw stm32f401 --cloud
|
||||
cp ./built/binary.uf2 binary-f4.uf2
|
||||
- name: build P0
|
||||
continue-on-error: true
|
||||
run: |
|
||||
pxt clean
|
||||
pxt install --hw rpi
|
||||
pxt build --hw rpi --cloud
|
||||
cp ./built/binary.uf2 binary-p0.uf2
|
||||
- name: bundle all
|
||||
run: |
|
||||
cat binary-*.uf2 > built/arcade.uf2
|
||||
- name: upload bundled
|
||||
uses: actions/upload-release-asset@v1.0.1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ github.event.release.upload_url }}
|
||||
asset_path: ./built/arcade.uf2
|
||||
asset_name: arcade.uf2
|
||||
asset_content_type: application/octet-stream
|
||||
29
.github/workflows/makecode.yml
vendored
Normal file
29
.github/workflows/makecode.yml
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
name: MakeCode
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [14.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- name: npm install
|
||||
run: |
|
||||
npm install -g pxt
|
||||
pxt target arcade
|
||||
- name: build
|
||||
run: |
|
||||
pxt install
|
||||
pxt build --cloud
|
||||
env:
|
||||
CI: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue