-
Notifications
You must be signed in to change notification settings - Fork 142
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 #76 from rbaron/nrf-connect
Migrate code to the nRF Connect SDK
- Loading branch information
Showing
100 changed files
with
6,234 additions
and
13,820 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,13 @@ | ||
{ | ||
"name": "nrf-connect:v2.1", | ||
"image": "nordicplayground/nrfconnect-sdk:v2.1-branch", | ||
"features": { | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"nordic-semiconductor.nrf-connect" | ||
] | ||
} | ||
} | ||
} |
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,27 @@ | ||
name: 'Build' | ||
description: 'Builds b-parasite firmware' | ||
description: 'Builds a nrf-connect sample for b-parasite' | ||
inputs: | ||
sample-dir: | ||
description: 'Sample directory to build' | ||
required: true | ||
board: | ||
description: 'Board definition to use' | ||
default: bparasite_nrf52840 | ||
revision: | ||
description: 'Board revision use' | ||
default: '1.2.0' | ||
cmake-extra: | ||
description: 'Extra CMake arguments' | ||
default: '' | ||
output-bin: | ||
description: 'Name of the .hex output' | ||
required: true | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
args: | ||
- ${{ inputs.sample-dir }} | ||
- ${{ inputs.board }} | ||
- ${{ inputs.revision }} | ||
- ${{ inputs.cmake-extra }} | ||
- ${{ inputs.output-bin }} |
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,10 +1,14 @@ | ||
#!/bin/bash | ||
set -eux -o pipefail | ||
|
||
export SDK_ROOT=/opt/nRF5_SDK | ||
export GNU_INSTALL_ROOT=/usr/bin/ | ||
SAMPLE_DIR=$1 | ||
BOARD=$2 | ||
REVISION=$3 | ||
CMAKE_EXTRA=$4 | ||
OUTPUT_BIN=$5 | ||
|
||
cd "$GITHUB_WORKSPACE/code/b-parasite" | ||
make clean | ||
make lint | ||
make | ||
cd "${GITHUB_WORKSPACE}/${SAMPLE_DIR}" | ||
|
||
west build --build-dir ./build --pristine --board "${BOARD}@${REVISION}" -- $CMAKE_EXTRA | ||
|
||
mv build/zephyr/zephyr.hex build/zephyr/"${OUTPUT_BIN}" |
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,33 @@ | ||
name: 'Build and upload artifact' | ||
description: 'Builds a nrf-connect sample for b-parasite' | ||
inputs: | ||
sample-dir: | ||
description: 'Sample directory to build' | ||
required: true | ||
board: | ||
description: 'Board definition to use' | ||
required: true | ||
revision: | ||
description: 'Board revision use' | ||
default: '1.2.0' | ||
cmake-extra: | ||
description: 'Extra CMake arguments' | ||
default: '' | ||
output-bin: | ||
description: 'Name of the .hex output' | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: ./.github/actions/build | ||
with: | ||
sample-dir: ${{ inputs.sample-dir }} | ||
board: ${{ inputs.board }} | ||
revision: ${{ inputs.revision }} | ||
cmake-extra: ${{ inputs.cmake-extra }} | ||
output-bin: ${{ inputs.output-bin }} | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: sample-binaries | ||
path: code/nrf-connect/samples/ble/build/zephyr/${{ inputs.output-bin }} |
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
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 @@ | ||
--- | ||
|
||
BasedOnStyle: Google | ||
ColumnLimit: 0 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.