-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3cc433d
commit 3ecfaf5
Showing
6 changed files
with
79 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: build | ||
on: | ||
release: | ||
types: [created] | ||
push: | ||
branches: | ||
- "**" | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "20.x" | ||
registry-url: "https://npm.pkg.github.com" | ||
cache: npm | ||
- uses: microbit-foundation/npm-package-versioner-action@v1 | ||
- run: npm ci | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- run: npm run ci | ||
- run: npm publish | ||
if: false && github.ref == 'refs/heads/main' || github.event_name == 'release' && github.event.action == 'created' | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,4 @@ | ||
- Figure out the interface for flash | ||
- Remove the sim? It's unrelated really. | ||
- Add a JS partial flashing implementation, perhaps based on the prototype app | ||
- Consider a full flash implementation later... for now we'll need to indicate lack of support somehow with a structured error code? |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { BoardId } from "./board-id"; | ||
import { FlashDataSource } from "./device"; | ||
import { | ||
isUniversalHex, | ||
separateUniversalHex, | ||
} from "@microbit/microbit-universal-hex"; | ||
|
||
class HexFlashDataSource implements FlashDataSource { | ||
constructor(private hex: string) { | ||
if (isUniversalHex(hex)) { | ||
const parts = separateUniversalHex(hex); | ||
// Ho hum, what do we do with this? | ||
parts[0].hex; | ||
} | ||
} | ||
|
||
partialFlashData(boardId: BoardId): Promise<Uint8Array> { | ||
throw new Error("Method not implemented."); | ||
} | ||
fullFlashData(boardId: BoardId): Promise<Uint8Array> { | ||
throw new Error("Method not implemented."); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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