name: Build on: push: pull_request: jobs: build: name: Build runs-on: ubuntu-latest env: RUNNER_TOOL_CACHE: /toolcache # https://about.gitea.com/resources/tutorials/enable-gitea-actions-cache-to-accelerate-cicd AGENT_TOOLSDIRECTORY: /toolcache # https://github.com/actions/setup-python/issues/824 steps: - name: Checkout uses: actions/checkout@v4 - name: De-initialize West run: | rm -r ./.west - name: Setup Zephyr project uses: zephyrproject-rtos/action-zephyr-setup@v1 with: app-path: firmware toolchains: arm-zephyr-eabi - name: Build run: | west build -b nrf52dk/nrf52832 firmware/app - name: upload uses: actions/upload-artifact@v3 with: path: build/