-
Notifications
You must be signed in to change notification settings - Fork 18
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 #25 from WyliodrinEmbeddedIoT/kernel_version
Fixed tock version and workflow
- Loading branch information
Showing
15 changed files
with
352 additions
and
67 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,67 @@ | ||
name: CLUE nRF52840 Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Release version' | ||
required: true | ||
|
||
jobs: | ||
release: | ||
runs-on: "ubuntu-latest" | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 # pulls version from rust-toolchain file | ||
- name: Install elf2uf2 | ||
run: cargo install uf2conv | ||
- name: Build bootloader | ||
run: | | ||
cd boards/clue_nrf52840-bootloader | ||
export BOOTLOADER_VERSION="${{ github.event.inputs.version }}" | ||
export BOOTLOADER_HASH="$(git rev-parse HEAD)" | ||
export BOOTLOADER_KERNEL_HASH="$(cat Cargo.lock | grep https://github.com/tock/tock?rev=405417 | uniq | cut -d '#' -f 2 | cut -d '"' -f 1)" | ||
make | ||
- name: Build uf2 | ||
run: uf2conv target/thumbv7em-none-eabi/release/clue_nrf52840-bootloader.bin -f 0xADA52840 --base 0x26000 --output target/thumbv7em-none-eabi/release/clue_nrf52840-bootloader.uf2 | ||
- name: Version | ||
run: | | ||
echo "Version: ${{ github.event.inputs.version }}" > tock-bootloader.clue_nrf52840.version | ||
echo "Toolchain: $(rustc --version)" >> tock-bootloader.clue_nrf52840.version | ||
echo "Tock Bootloader Hash: $(git rev-parse HEAD)" >> tock-bootloader.clue_nrf52840.version | ||
echo Tock Hash: $(cat boards/clue_nrf52840-bootloader/Cargo.lock | grep https://github.com/tock/tock?rev=405417 | uniq | cut -d '#' -f 2 | cut -d '"' -f 1) >> tock-bootloader.clue_nrf52840.version | ||
echo "Bootloader SHA256: $(sha256sum target/thumbv7em-none-eabi/release/clue_nrf52840-bootloader.bin | cut -d ' ' -f 1)" >> tock-bootloader.clue_nrf52840.version | ||
echo "Build Date: $(date)" >> tock-bootloader.clue_nrf52840.version | ||
- name: Upload bootloader release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
release_name: CLUE nRF52840 Express ${{ github.event.inputs.version }} | ||
prerelease: true | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: target/thumbv7em-none-eabi/release/clue_nrf52840-bootloader.bin | ||
asset_name: tock-bootloader.clue_nrf52840.${{ github.event.inputs.version }}.bin | ||
tag: clue_nrf52840-${{ github.event.inputs.version }} | ||
overwrite: true | ||
body: "Bootloader for CLUE nRF52840 Express ${{ github.event.inputs.version }}" | ||
- name: Upload bootloader uf2 | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
release_name: CLUE nRF52840 Express ${{ github.event.inputs.version }} | ||
prerelease: true | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: target/thumbv7em-none-eabi/release/clue_nrf52840-bootloader.uf2 | ||
asset_name: tock-bootloader.clue_nrf52840.${{ github.event.inputs.version }}.uf2 | ||
tag: clue_nrf52840-${{ github.event.inputs.version }} | ||
overwrite: true | ||
body: "Bootloader for CLUE nRF52840 Express ${{ github.event.inputs.version }}" | ||
- name: Upload bootloader version | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
release_name: CLUE nRF52840 Express ${{ github.event.inputs.version }} | ||
prerelease: true | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: tock-bootloader.clue_nrf52840.version | ||
asset_name: tock-bootloader.clue_nrf52840.${{ github.event.inputs.version }}.version | ||
tag: clue_nrf52840-${{ github.event.inputs.version }} |
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
build | ||
target | ||
local_cargo | ||
Cargo.lock | ||
|
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ version = "0.1.0" | |
authors = ["Tock Project Developers <[email protected]>"] | ||
|
||
[dependencies] | ||
kernel = { git = "https://github.com/tock/tock", branch = "master" } | ||
kernel = { git = "https://github.com/tock/tock", rev = "405417" } | ||
#kernel = { path = "../../../tock/kernel" } | ||
|
||
bootloader = { path = "../../bootloader" } |
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
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.