From 8680dd76fccc2988554e32dbbc38c297d4f4a09d Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Fri, 29 Apr 2022 22:04:25 -0700 Subject: [PATCH] 0.0.12 --- .github/workflows/makecode-release.yml | 63 + assets/index.html | 1 + assets/js/binary.js | 39817 ++++++++++++----------- assets/js/custom.js | 11 + assets/js/loader.js | 29 +- assets/version.txt | 2 +- index.html | 1 + pxt.json | 2 +- 8 files changed, 21147 insertions(+), 18779 deletions(-) create mode 100644 .github/workflows/makecode-release.yml create mode 100644 assets/js/custom.js diff --git a/.github/workflows/makecode-release.yml b/.github/workflows/makecode-release.yml new file mode 100644 index 0000000..63802b9 --- /dev/null +++ b/.github/workflows/makecode-release.yml @@ -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 \ No newline at end of file diff --git a/assets/index.html b/assets/index.html index e6edab5..41e85c8 100644 --- a/assets/index.html +++ b/assets/index.html @@ -3,6 +3,7 @@ +