Skip to content

Commit

Permalink
adjust structure for yocto
Browse files Browse the repository at this point in the history
  • Loading branch information
kianwasabi committed Jan 5, 2024
1 parent e341a1a commit 173e139
Show file tree
Hide file tree
Showing 30 changed files with 9 additions and 13 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/codegenerator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ on:
# branches: [ "car_control" ]
branches: [ "main" ]
paths:
- 'car_control/fidl/**.fidl'
- 'car_control/fidl/**.fdepl'
- 'fidl/**.fidl'
- 'fidl/**.fdepl'
workflow_dispatch:

jobs:
Expand All @@ -25,9 +25,9 @@ jobs:

- name: 1) Delete old generated code, if exists. And create new folders.
run: |
rm -rf ${{ github.workspace }}/car_control/src-gen
mkdir -p ${{ github.workspace }}/car_control/src-gen/core
mkdir -p ${{ github.workspace }}/car_control/src-gen/someip
rm -rf ${{ github.workspace }}/src-gen
mkdir -p ${{ github.workspace }}/src-gen/core
mkdir -p ${{ github.workspace }}/src-gen/someip
- name: 2) Download CommonAPI Core Generator.
run: |
Expand All @@ -42,18 +42,18 @@ jobs:
- name: 4) Generate CommonAPI Code from Core Generator.
run: |
echo $(find ${{ github.workspace }} -type f -name '*.fidl')
core-generator/commonapi-core-generator-linux-x86_64 -sk $(find ${{ github.workspace }} -type f -name '*.fidl') -d ${{ github.workspace }}/car_control/src-gen/core
core-generator/commonapi-core-generator-linux-x86_64 -sk $(find ${{ github.workspace }} -type f -name '*.fidl') -d ${{ github.workspace }}/src-gen/core
- name: 5) Generate CommonAPI Code with the vSOME/IP Generator.
run: |
echo $(find ${{ github.workspace }} -type f -name '*.fdepl')
someip-generator/commonapi-someip-generator-linux-x86_64 $(find ${{ github.workspace }} -type f -name '*.fdepl') -d ${{ github.workspace }}/car_control/src-gen/someip
someip-generator/commonapi-someip-generator-linux-x86_64 $(find ${{ github.workspace }} -type f -name '*.fdepl') -d ${{ github.workspace }}/src-gen/someip
- name: 6) Save generated code in src-gen (Commit and Push)
if: github.event_name == 'push'
run: |
git config user.name "$(git log -n 1 --pretty=format:%an)"
git config user.email "$(git log -n 1 --pretty=format:%ae)"
git add car_control/src-gen
git add src-gen
git commit -m "Auto Generated fidl" || true
git push
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,10 @@
sample
.DS_Store

# QT temporary files
# temporary files
build*/
*.o
*.stash
.qtc_clangd/
qrc*.cpp
app/dashboard/dashboard
dashboard.app/
Makefile
*.pro.user

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 173e139

Please sign in to comment.