Skip to content

Fix unit tests build #39

Fix unit tests build

Fix unit tests build #39

Workflow file for this run

name: Build OCS Firmware Library
on:
pull_request:
jobs:
build-esp:
runs-on: ubuntu-latest
env:
PROJECT_PATH: project
IDF_PATH: esp-idf
IDF_VERSION: v5.3.1
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
path: ${{ env.PROJECT_PATH }}
- name: Setup Prerequisites
uses: ./project/.github/actions/env_for_all
- name: Setup ESP-IDF
uses: ./project/.github/actions/env_esp32
with:
IDF_PATH: ${{ env.IDF_PATH }}
IDF_VERSION: ${{ env.IDF_VERSION }}
PROJECT_PATH: ${{ env.PROJECT_PATH }}
- name: Perform All Checks
uses: ./project/.github/actions/checks_for_all
with:
PROJECT_PATH: ${{ env.PROJECT_PATH }}
- name: Build Unit Tests
run: |
ccache --show-stats
. $IDF_PATH/export.sh
cd $PROJECT_PATH/tests
IDF_CCACHE_ENABLE=1 idf.py build
ccache --show-stats
shell: bash
- name: Build DS18B20 Verifier
run: |
ccache --show-stats
. $IDF_PATH/export.sh
cd $PROJECT_PATH/tools/ds18b20-verifier
IDF_CCACHE_ENABLE=1 idf.py build
ccache --show-stats
shell: bash
- name: Build DS Rom Code Scanner
run: |
ccache --show-stats
. $IDF_PATH/export.sh
cd $PROJECT_PATH/tools/ds-rom-code-scanner
IDF_CCACHE_ENABLE=1 idf.py build
ccache --show-stats
shell: bash
- name: Upload Unit Tests Artifacts
uses: actions/upload-artifact@v4
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: Upload DS18B20 Verifier Artifacts
uses: actions/upload-artifact@v4
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: Upload DS Rom Code Scanner Artifacts
uses: actions/upload-artifact@v4
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