From 21e6925809f6963e23033d26ec69099276ba22fc Mon Sep 17 00:00:00 2001 From: Raj Nakarja Date: Tue, 31 Jan 2023 18:42:56 +0100 Subject: [PATCH] Updated workflow to only build on main --- .github/workflows/main.yml | 36 +++++------------------------------- 1 file changed, 5 insertions(+), 31 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 53f58ec4..50ad8774 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,9 +2,9 @@ name: build_on_push on: push: - branches: [ "main", "develop_branch" ] + branches: [ "main" ] pull_request: - branches: [ "main", "develop_branch" ] + branches: [ "main" ] workflow_dispatch: jobs: @@ -17,38 +17,12 @@ jobs: - name: Install dependencies run: | sudo apt install gcc-arm-none-eabi libnewlib-arm-none-eabi - pip install --user nrfutil intelhex - curl -o nrf-command-line-tools.deb https://nsscprodmedia.blob.core.windows.net/prod/software-and-other-downloads/desktop-software/nrf-command-line-tools/sw/versions-10-x-x/10-19-0/nrf-command-line-tools_10.19.0_amd64.deb - sudo dpkg -i nrf-command-line-tools.deb - name: Bootstrap the dependencies run: | - git submodule init nrfx - git submodule init micropython - git submodule update --recursive - make -C micropython/ports/nrf/ submodules + git submodule update --init + git -C micropython submodule update --init lib/micropython-lib - name: Build the firmware run: | - make release - - - name: Upload release.hex - uses: actions/upload-artifact@v3 - with: - name: firmware.hex - path: build/application.hex - retention-days: 5 - - - name: Upload application.elf - uses: actions/upload-artifact@v3 - with: - name: application.elf - path: build/application.elf - retention-days: 5 - - - name: Upload application.map - uses: actions/upload-artifact@v3 - with: - name: application.map - path: build/application.map - retention-days: 5 + make \ No newline at end of file