Simplify actions -- no artifacts
This commit is contained in:
parent
141071a414
commit
d5ed701c45
3 changed files with 2 additions and 42 deletions
7
.github/actions/build/action.yml
vendored
7
.github/actions/build/action.yml
vendored
|
|
@ -13,9 +13,6 @@ inputs:
|
|||
cmake-extra:
|
||||
description: "Extra CMake arguments"
|
||||
default: ""
|
||||
output-bin:
|
||||
description: "Name of the .hex output"
|
||||
required: true
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
|
|
@ -28,7 +25,3 @@ runs:
|
|||
--board ${{ inputs.board }}@${{ inputs.revision }} \
|
||||
/repo/${{ inputs.sample-dir }} -- ${{ inputs.cmake-extra }}
|
||||
shell: bash
|
||||
- run: |
|
||||
cp "${GITHUB_WORKSPACE}"/${{ inputs.sample-dir }}/build/zephyr/zephyr.hex \
|
||||
"${GITHUB_WORKSPACE}"/${{ inputs.sample-dir }}/build/zephyr/${{ inputs.output-bin }}
|
||||
shell: bash
|
||||
|
|
|
|||
33
.github/actions/build_and_upload/action.yml
vendored
33
.github/actions/build_and_upload/action.yml
vendored
|
|
@ -1,33 +0,0 @@
|
|||
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: "2.0.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: ${{ inputs.sample-dir }}/build/zephyr/${{ inputs.output-bin }}
|
||||
4
.github/workflows/b-parasite.yml
vendored
4
.github/workflows/b-parasite.yml
vendored
|
|
@ -81,7 +81,7 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Build
|
||||
uses: ./.github/actions/build_and_upload
|
||||
uses: ./.github/actions/build
|
||||
with:
|
||||
sample-dir: code/nrf-connect/samples/ble
|
||||
board: bparasite_${{ matrix.soc }}
|
||||
|
|
@ -102,7 +102,7 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Build
|
||||
uses: ./.github/actions/build_and_upload
|
||||
uses: ./.github/actions/build
|
||||
with:
|
||||
sample-dir: code/nrf-connect/samples/zigbee
|
||||
board: bparasite_${{ matrix.soc }}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue