Skip to content

Commit

Permalink
feat(chore): Adding cantools generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Pippo98 committed Jun 1, 2023
1 parent c02897e commit 38912a9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ jobs:
mkdir -p /tmp/workspace
cp -R networks ids lib proto csv /tmp/workspace
- name: Run cantools generator
run: |
pip install git+https://github.com/eagletrt/cantools.git
cantools generate_c_source --infolder networks -o .
mkdir -p /tmp/workspace-evo
cp -R networks lib proto /tmp/workspace-evo
- uses: actions/checkout@v2
with:
ref: build
Expand All @@ -50,6 +57,22 @@ jobs:
git add .
if [[ $(git status --porcelain) ]]; then git commit -am "chore: automatically generated files" && git push; fi
echo "::set-output name=HASH::$(git rev-parse HEAD)"
- uses: actions/checkout@v2
with:
ref: build-evo

- name: Push generated includes
id: commit
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git rm -r --ignore-unmatch */*
rm -rf *
cp -r /tmp/workspace-evo/* .
git add .
if [[ $(git status --porcelain) ]]; then git commit -am "chore: automatically generated files" && git push; fi
echo "::set-output name=HASH::$(git rev-parse HEAD)"
- name: Send telegram message
uses: appleboy/telegram-action@master
Expand Down

0 comments on commit 38912a9

Please sign in to comment.