Skip to content

Fix unit tests build #33

Fix unit tests build

Fix unit tests build #33

Workflow file for this run

name: Build Firmware
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
env:
PROJECT_PATH: project
IDF_PATH: esp-idf
IDF_VERSION: v5.3.1
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
path: ${{ env.PROJECT_PATH }}
- name: Set up and Build Environment
uses: ./project/.github/actions/esp32_build_env
with:
IDF_PATH: ${{ env.IDF_PATH }}
PROJECT_PATH: ${{ env.PROJECT_PATH }}
- name: Build Unit tests
run: |
. $IDF_PATH/export.sh
cd $PROJECT_PATH/tests
IDF_CCACHE_ENABLE=1 idf.py build
shell: bash
- name: Upload Unit tests Artifacts
uses: actions/upload-artifact@v3
with:
name: unit-tests-artifacts
path: |
${{ env.PROJECT_PATH }}/tests/**/build/*.bin
${{ env.PROJECT_PATH }}/tests/**/build/*.elf
${{ env.PROJECT_PATH }}/tests/**/build/flash_project_args
- name: Build DS18B20 verifier
run: |
. $IDF_PATH/export.sh
cd $PROJECT_PATH/tools/ds18b20-verifier
IDF_CCACHE_ENABLE=1 idf.py build
shell: bash
- name: Upload DS18B20 Verifier Artifacts
uses: actions/upload-artifact@v3
with:
name: ds18b20-verifier-artifacts
path: |
${{ env.PROJECT_PATH }}/tools/ds18b20-verifier/**/build/*.bin
${{ env.PROJECT_PATH }}/tools/ds18b20-verifier/**/build/*.elf
${{ env.PROJECT_PATH }}/tools/ds18b20-verifier/**/build/flash_project_args
- name: Build DS rom code scanner
run: |
. $IDF_PATH/export.sh
cd $PROJECT_PATH/tools/ds-rom-code-scanner
IDF_CCACHE_ENABLE=1 idf.py build
shell: bash
- name: Upload DS Rom Code Scanner Artifacts
uses: actions/upload-artifact@v3
with:
name: ds-rom-code-scanner-artifacts
path: |
${{ env.PROJECT_PATH }}/tools/ds-rom-code-scanner/**/build/*.bin
${{ env.PROJECT_PATH }}/tools/ds-rom-code-scanner/**/build/*.elf
${{ env.PROJECT_PATH }}/tools/ds-rom-code-scanner/**/build/flash_project_args