From c4615d11da8afe95f3dbd4dd8998ce78369daf6d Mon Sep 17 00:00:00 2001 From: Michael Rogger Date: Sun, 18 Aug 2024 12:25:58 +0200 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4517b1c..c24cf87 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,5 +1,4 @@ -name: Build and test app in NCS docker container - +name: Build debug and release on: push: @@ -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