Skip to content

testing

testing #7

Workflow file for this run

name: Generate and Release
on:
push:
branches:
- main
jobs:
generate-dbc:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9' # Specify the Python version
- name: Install cantools
run: python -m pip install cantools # Install cantools library
- name: Convert SYM to DBC
run: |
cantools convert ${{ github.workspace }}/PCAN_project/hytech.sym hytech.dbc
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: dbcfile
path: hytech.dbc
generate-and-release:
needs: generate-dbc
runs-on: ubuntu-latest
container:
image: ghcr.io/rcmast3r/ccoderdbc:main
steps:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: dbcfile
path: /dbc
- name: generate code
run: |
mkdir -p /out
cd /app
./build/coderdbc -rw -dbc /dbc/hytech.dbc -out /out -drvname hytech
# # - name: Create Release
# # id: create_release
# # uses: actions/create-release@v1
# # env:
# # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# # with:
# # tag_name: ${{ github.run_number }}
# # release_name: Release ${{ github.run_number }}
# # draft: false
# # prerelease: false
# # - name: Upload release asset
# # uses: actions/upload-release-asset@v1
# # env:
# # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# # with:
# # upload_url: ${{ steps.create_release.outputs.upload_url }}
# # asset_path: /out
# # asset_name: can_lib.zip
# # asset_content_type: application/zip