Multientrydev #92
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C/C++ CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
# | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
- name: Check submodules | |
run: pwd | |
- name: ls submodules | |
shell: bash | |
run: | | |
ls external/ethercat/bootstrap | |
- name: Bootstrap ethercat | |
shell: bash | |
run: | | |
cd external/ethercat/ && ./bootstrap && cd ../.. | |
- name: configure ethercat | |
shell: bash | |
run: | | |
cd external/ethercat/ && ./configure --sysconfdir=/etc --enable-8139too=no --enable-kernel=no && cd ../.. | |
- name: make ethercat | |
run: make -C external/ethercat/ | |
- name: make install ethercat | |
run: sudo make install -C external/ethercat/ | |
- name: Configure CMake | |
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. | |
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build | |
# Build your program with the given configuration | |
run: cmake --build ${{github.workspace}}/build | |
#can't test without configured /dev/EtherCAT0 from here on | |
#- name: test | |
# testrun | |
# run: ./build/bin/ecat_test --filename conf/master_config.xml -v -c | |
# run: ./build/bin/ethercat_src_test conf/ethercatcfg.txt |