Skip to content

Commit

Permalink
rename jobs and stages in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbusch committed Nov 3, 2023
1 parent f434b2f commit c8f844e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 26 deletions.
54 changes: 29 additions & 25 deletions .github/workflows/codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,29 @@ on: push

jobs:
reduce_asn1:
name: Reduce ASN.1 files
name: ASN1 Reduction
runs-on: ubuntu-latest

strategy:
matrix:
script:
- ./utils/codegen/reduceAsn1ToTypeDependencies.py -t CAM -o asn1/reduced/cam asn1/raw/cam_en302637_2/CAM-PDU-Descriptions.asn asn1/raw/cam_en302637_2/cdd/ITS-Container.asn
- ./utils/codegen/reduceAsn1ToTypeDependencies.py -t DENM -o asn1/reduced/denm asn1/raw/denm_en302637_3/DENM-PDU-Descriptions.asn asn1/raw/denm_en302637_3/cdd/ITS-Container.asn
include:
- message: cam
script: ./utils/codegen/reduceAsn1ToTypeDependencies.py -t CAM -o asn1/reduced/cam asn1/raw/cam_en302637_2/CAM-PDU-Descriptions.asn asn1/raw/cam_en302637_2/cdd/ITS-Container.asn
- message: denm
script: ./utils/codegen/reduceAsn1ToTypeDependencies.py -t DENM -o asn1/reduced/denm asn1/raw/denm_en302637_3/DENM-PDU-Descriptions.asn asn1/raw/denm_en302637_3/cdd/ITS-Container.asn

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: true
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install Python dependencies
run: pip install -r utils/requirements.txt
- name: ASN.1 reduction
- name: asn1_reduce_${{ matrix.message }}
run: |
${{ matrix.script }}
if [[ ! -z "$(git status --porcelain)" ]]; then
Expand All @@ -33,14 +35,16 @@ jobs:
fi
etsi_its_coding:
name: Use asn1c to generate C-Code
name: ASN1C
runs-on: ubuntu-latest

strategy:
matrix:
script:
- ./utils/codegen/asn1ToC.py asn1/reduced/cam/CAM-PDU-Descriptions.asn asn1/reduced/cam/ITS-Container.asn -o etsi_its_coding/etsi_its_cam_coding -td ${{ github.workspace }}/tmp
- ./utils/codegen/asn1ToC.py asn1/reduced/denm/DENM-PDU-Descriptions.asn asn1/reduced/denm/ITS-Container.asn -o etsi_its_coding/etsi_its_denm_coding -td ${{ github.workspace }}/tmp
include:
- message: cam
script: ./utils/codegen/asn1ToC.py asn1/reduced/cam/CAM-PDU-Descriptions.asn asn1/reduced/cam/ITS-Container.asn -o etsi_its_coding/etsi_its_cam_coding -td ${{ github.workspace }}/tmp
- message: denm
script: ./utils/codegen/asn1ToC.py asn1/reduced/denm/DENM-PDU-Descriptions.asn asn1/reduced/denm/ITS-Container.asn -o etsi_its_coding/etsi_its_denm_coding -td ${{ github.workspace }}/tmp

steps:
- name: Checkout code
Expand All @@ -58,7 +62,7 @@ jobs:
username: ${{ github.actor }}
password: ${{ github.token }}

- name: ASN1C - ETSI ITS Messages
- name: etsi_its_${{ matrix.message }}_coding
run: |
${{ matrix.script }}
rm -rf ${{ github.workspace }}/tmp
Expand All @@ -68,27 +72,27 @@ jobs:
fi
etsi_its_msgs:
name: Generate ETSI ITS ROS message files
name: ROS Messages
runs-on: ubuntu-latest

strategy:
matrix:
script:
- ./utils/codegen/asn1ToRosMsg.py asn1/reduced/cam/CAM-PDU-Descriptions.asn asn1/reduced/cam/ITS-Container.asn -o etsi_its_msgs/etsi_its_cam_msgs/msg
- ./utils/codegen/asn1ToRosMsg.py asn1/reduced/denm/DENM-PDU-Descriptions.asn asn1/reduced/denm/ITS-Container.asn -o etsi_its_msgs/etsi_its_denm_msgs/msg
include:
- message: cam
script: ./utils/codegen/asn1ToRosMsg.py asn1/reduced/cam/CAM-PDU-Descriptions.asn asn1/reduced/cam/ITS-Container.asn -o etsi_its_msgs/etsi_its_cam_msgs/msg
- message: denm
script: ./utils/codegen/asn1ToRosMsg.py asn1/reduced/denm/DENM-PDU-Descriptions.asn asn1/reduced/denm/ITS-Container.asn -o etsi_its_msgs/etsi_its_denm_msgs/msg

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install Python dependencies
run: pip install -r utils/requirements.txt
- name: ROS message generation
- name: etsi_its_${{ matrix.message }}_msgs
run: |
${{ matrix.script }}
if [[ ! -z "$(git status --porcelain)" ]]; then
Expand All @@ -97,28 +101,28 @@ jobs:
fi
etsi_its_conversion:
name: Generate ETSI ITS ROS conversion heder
name: Conversion Headers
runs-on: ubuntu-latest

strategy:
matrix:
script:
- ./utils/codegen/asn1ToConversionHeader.py asn1/reduced/cam/CAM-PDU-Descriptions.asn asn1/reduced/cam/ITS-Container.asn -t cam -o etsi_its_conversion/etsi_its_cam_conversion/include/etsi_its_cam_conversion
- ./utils/codegen/asn1ToConversionHeader.py asn1/reduced/denm/DENM-PDU-Descriptions.asn asn1/reduced/denm/ITS-Container.asn -t denm -o etsi_its_conversion/etsi_its_denm_conversion/include/etsi_its_denm_conversion
include:
- message: cam
script: ./utils/codegen/asn1ToConversionHeader.py asn1/reduced/cam/CAM-PDU-Descriptions.asn asn1/reduced/cam/ITS-Container.asn -t cam -o etsi_its_conversion/etsi_its_cam_conversion/include/etsi_its_cam_conversion
- message: denm
script: ./utils/codegen/asn1ToConversionHeader.py asn1/reduced/denm/DENM-PDU-Descriptions.asn asn1/reduced/denm/ITS-Container.asn -t denm -o etsi_its_conversion/etsi_its_denm_conversion/include/etsi_its_denm_conversion

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install Python dependencies
run: pip install -r utils/requirements.txt
working-directory: ${{ github.workspace }}
- name: Conversion header generation
- name: etsi_its_${{ matrix.message }}_conversion
run: |
${{ matrix.script }}
if [[ ! -z "$(git status --porcelain)" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-ros.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: docker-ros

on: push
on: pull_request

jobs:

Expand Down

0 comments on commit c8f844e

Please sign in to comment.