Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Rogger authored Aug 18, 2024
1 parent 8c30ac9 commit c4615d1
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Build and test app in NCS docker container

name: Build debug and release
on:
push:

Expand All @@ -13,24 +12,23 @@ jobs:
# It is a workaround for GitHub Actions limitation https://github.com/actions/runner/issues/1964
shell: bash
steps:
- name: Checkout repository with example application
- name: Checkout
uses: actions/checkout@v4
with:
path: sensor

- name: ls
working-directory: sensor
run: |
pwd
ls

- name: Prepare west project
run: |
west init -l sensor
west update -o=--depth=1 -n
- name: Build firmware
- name: Build debug release
working-directory: sensor
run: |
west build --build-dir $(pwd)/build $(pwd) --pristine --board adafruit_feather_nrf52840 -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=$(pwd) -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -DCACHED_CONF_FILE=$(pwd)/prj_debug.conf -DDTC_OVERLAY_FILE=$(pwd)/boards/adafruit_feather_nrf52840.overlay
- name: Store debug release
uses: actions/upload-artifact@v4
with:
name: built-applications
path: sensor/**/zephyr/merged.hex

0 comments on commit c4615d1

Please sign in to comment.