Skip to content

Commit

Permalink
Rework workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dshil committed Oct 28, 2024
1 parent 0f010b4 commit 5ee23f1
Showing 1 changed file with 48 additions and 8 deletions.
56 changes: 48 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,57 @@ jobs:
IDF_PATH: ${{ env.IDF_PATH }}
PROJECT_PATH: ${{ env.PROJECT_PATH }}

- name: Build All Firmware
- name: Verify Paths
run: |
echo "IDF Path: $IDF_PATH"
echo "Project Path: $PROJECT_PATH"
ls $IDF_PATH
ls $PROJECT_PATH
- name: Build Unit tests
run: |
cd $PROJECT_PATH/tests
. $IDF_PATH/export.sh
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: |
cd $PROJECT_PATH/tools/ds18b20-verifier
. $IDF_PATH/export.sh
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: |
cd $PROJECT_PATH
cd $PROJECT_PATH/tools/ds-rom-code-scanner
. $IDF_PATH/export.sh
tools/scripts/build_all.sh
IDF_CCACHE_ENABLE=1 idf.py build
shell: bash

- name: Upload Build Artifacts
- name: Upload DS Rom Code Scanner Artifacts
uses: actions/upload-artifact@v3
with:
name: build-artifacts
name: ds-rom-code-scanner-artifacts
path: |
"${{ env.PROJECT_PATH }}/**/build/*.bin"
"${{ env.PROJECT_PATH }}/**/build/*.elf"
"${{ env.PROJECT_PATH }}/**/build/flash_project_args"
"${{ 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"

0 comments on commit 5ee23f1

Please sign in to comment.