Skip to content

Commit

Permalink
revert "adjust structure for yocto" This reverts commit 173e139
Browse files Browse the repository at this point in the history
  • Loading branch information
kianwasabi committed Jan 5, 2024
1 parent 173e139 commit 8a46b23
Show file tree
Hide file tree
Showing 30 changed files with 13 additions and 9 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:
- 'fidl/**.fidl'
- 'fidl/**.fdepl'
- 'car_control/fidl/**.fidl'
- 'car_control/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 }}/src-gen
mkdir -p ${{ github.workspace }}/src-gen/core
mkdir -p ${{ github.workspace }}/src-gen/someip
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
- 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 }}/src-gen/core
core-generator/commonapi-core-generator-linux-x86_64 -sk $(find ${{ github.workspace }} -type f -name '*.fidl') -d ${{ github.workspace }}/car_control/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 }}/src-gen/someip
someip-generator/commonapi-someip-generator-linux-x86_64 $(find ${{ github.workspace }} -type f -name '*.fdepl') -d ${{ github.workspace }}/car_control/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 src-gen
git add car_control/src-gen
git commit -m "Auto Generated fidl" || true
git push
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
sample
.DS_Store

# temporary files
# QT 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 8a46b23

Please sign in to comment.