forked from espruino/Espruino
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from amperka/iskrajs_2V22_uf2
Iskrajs 2v22 uf2
- Loading branch information
Showing
1,961 changed files
with
839,755 additions
and
759,181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=lf | ||
|
||
# Custom for Visual Studio | ||
*.cs diff=csharp | ||
|
||
# Standard to msysgit | ||
*.doc diff=astextplain | ||
*.DOC diff=astextplain | ||
*.docx diff=astextplain | ||
*.DOCX diff=astextplain | ||
*.dot diff=astextplain | ||
*.DOT diff=astextplain | ||
*.pdf diff=astextplain | ||
*.PDF diff=astextplain | ||
*.rtf diff=astextplain | ||
*.RTF diff=astextplain | ||
# Auto detect text files and perform LF normalization | ||
* text=auto eol=lf | ||
|
||
# Custom for Visual Studio | ||
*.cs diff=csharp | ||
|
||
# Standard to msysgit | ||
*.doc diff=astextplain | ||
*.DOC diff=astextplain | ||
*.docx diff=astextplain | ||
*.DOCX diff=astextplain | ||
*.dot diff=astextplain | ||
*.DOT diff=astextplain | ||
*.pdf diff=astextplain | ||
*.PDF diff=astextplain | ||
*.rtf diff=astextplain | ||
*.RTF diff=astextplain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,39 @@ name: Firmware build | |
|
||
on: | ||
push: | ||
branches: [ master ] | ||
branches: [ '*' ] | ||
pull_request: | ||
branches: [ master ] | ||
branches: [ '*' ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
inputs: | ||
enable_main: | ||
description: Build default boards (linux, ESP, Microbit) | ||
type: boolean | ||
default: true | ||
enable_dfu: | ||
description: Build boards with DFU (puckjs, pixljs, banglejs) | ||
type: boolean | ||
default: true | ||
enable_padded: | ||
description: Build boards with bootloader padding (espruinoboard, -wifi, pico) | ||
type: boolean | ||
default: true | ||
enable_emulator: | ||
description: Build emulator for banglejs | ||
type: boolean | ||
default: true | ||
|
||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
|
||
# normal builds | ||
build_main: | ||
if: ${{ github.event_name != 'workflow_dispatch' || inputs.enable_main }} | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
# devices to build for | ||
|
@@ -18,7 +43,7 @@ jobs: | |
# try and build for all devices even if one fails | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: make ${{ matrix.board }} | ||
|
@@ -31,18 +56,29 @@ jobs: | |
source ./scripts/provision.sh ${{ matrix.board }} | ||
make | ||
./scripts/ci_upload.sh | ||
- name: Upload ${{ matrix.board }} build artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: ${{ matrix.board }} | ||
path: | | ||
bin/*.bin | ||
bin/*.hex | ||
bin/*.tgz | ||
bin/*.zip | ||
|
||
# Builds with DFU_UPDATE_BUILD=1 | ||
build_dfu: | ||
if: ${{ github.event_name != 'workflow_dispatch' || inputs.enable_dfu }} | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
# devices to build for | ||
matrix: | ||
board: [PUCKJS, PIXLJS, MDBT42Q, BANGLEJS, BANGLEJS2] | ||
board: [PUCKJS, PIXLJS, MDBT42Q, BANGLEJS, BANGLEJS2, PUCKJS_MINIMAL] | ||
# try and build for all devices even if one fails | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: make ${{ matrix.board }} | ||
|
@@ -56,9 +92,19 @@ jobs: | |
source ./scripts/provision.sh ${{ matrix.board }} | ||
make | ||
./scripts/ci_upload.sh | ||
- name: Upload ${{ matrix.board }} build artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: ${{ matrix.board }} | ||
path: | | ||
bin/*.bin | ||
bin/*.hex | ||
bin/*.tgz | ||
bin/*.zip | ||
# Builds with PAD_FOR_BOOTLOADER=1 | ||
build_padded: | ||
if: ${{ github.event_name != 'workflow_dispatch' || inputs.enable_padded }} | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
# devices to build for | ||
|
@@ -67,7 +113,7 @@ jobs: | |
# try and build for all devices even if one fails | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: make ${{ matrix.board }} | ||
|
@@ -81,7 +127,46 @@ jobs: | |
source ./scripts/provision.sh ${{ matrix.board }} | ||
make | ||
./scripts/ci_upload.sh | ||
- name: Upload ${{ matrix.board }} build artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: ${{ matrix.board }} | ||
path: | | ||
bin/*.bin | ||
bin/*.hex | ||
bin/*.tgz | ||
bin/*.zip | ||
# emulator builds | ||
build_emulator: | ||
if: ${{ github.event_name != 'workflow_dispatch' || inputs.enable_emulator }} | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
# devices to build for | ||
matrix: # banglejs, banglejs2 | ||
board: [EMSCRIPTEN, EMSCRIPTEN2] | ||
# try and build for all devices even if one fails | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: make ${{ matrix.board }} | ||
env: | ||
TRAVIS: 1 | ||
RELEASE: 1 | ||
BOARD: ${{ matrix.board }} | ||
UPLOADTOKEN: ${{ secrets.UPLOADTOKEN }} | ||
run: | | ||
source ./scripts/provision.sh ${{ matrix.board }} | ||
make | ||
./scripts/ci_upload.sh | ||
- name: Upload ${{ matrix.board }} build artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: ${{ matrix.board }} | ||
path: | | ||
bin/*.js | ||
# Disable doc building for now | ||
# docs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: Test Factory Apps | ||
|
||
on: | ||
push: | ||
branches: [ '*' ] | ||
pull_request: | ||
branches: [ '*' ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
inputs: | ||
git-ref: | ||
description: Git Ref (Optional) | ||
required: false | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
# This workflow contains a single job called "build" | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Espruino | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
path: 'Espruino' | ||
ref: ${{ github.event.inputs.git-ref }} | ||
|
||
- name: Checkout EspruinoWebIDE | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: espruino/EspruinoWebIDE | ||
submodules: recursive | ||
path: 'EspruinoWebIDE' | ||
|
||
- name: Setup emsdk | ||
uses: mymindstorm/setup-emsdk@v11 | ||
with: | ||
# Make sure to set a version number! | ||
version: 3.1.12 | ||
# This is the name of the cache folder. | ||
# The cache folder will be placed in the build directory, | ||
# so make sure it doesn't conflict with anything! | ||
actions-cache-folder: 'emsdk' | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
|
||
- name: Create Emulator | ||
run: | | ||
cd $GITHUB_WORKSPACE/Espruino | ||
make clean | ||
BOARD=EMSCRIPTEN make || exit 1 | ||
make clean | ||
BOARD=EMSCRIPTEN2 make || exit 1 | ||
cp $GITHUB_WORKSPACE/Espruino/bin/emulator_banglejs*.js $GITHUB_WORKSPACE/EspruinoWebIDE/emu/ -v | ||
|
||
- name: Run Tests Bangle.js | ||
run: node $GITHUB_WORKSPACE/Espruino/scripts/factoryTests.js BANGLEJS | ||
id: TestBangle1 | ||
continue-on-error: true | ||
|
||
- name: Run Tests Bangle.js2 | ||
run: node $GITHUB_WORKSPACE/Espruino/scripts/factoryTests.js BANGLEJS2 | ||
id: TestBangle2 | ||
continue-on-error: true | ||
|
||
- name: Fail test | ||
if: (steps.TestBangle1.outcome != 'skipped' && steps.TestBangle1.outcome != 'success') || (steps.TestBangle2.outcome != 'skipped' && steps.TestBangle2.outcome != 'success') | ||
run: exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.