Fixed virtual sensor interface #691
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: Build OSW Emulator (Ubuntu) | |
on: | |
push: | |
paths_ignore: '["**/*.md", "**/scripts/screen_capture/**"]' | |
pull_request: | |
branches: [ master, develop ] | |
jobs: | |
check_skip: | |
runs-on: ubuntu-latest | |
outputs: | |
should_skip: ${{ steps.skip_check.outputs.should_skip }} | |
steps: | |
- id: skip_check | |
uses: fkirc/[email protected] | |
with: | |
concurrent_skipping: 'same_content_newer' | |
skip_after_successful_duplicate: 'true' | |
build-EMULATOR: | |
runs-on: ubuntu-22.04 | |
needs: check_skip | |
if: ${{ needs.check_skip.outputs.should_skip != 'true' }} | |
strategy: | |
matrix: | |
build-configuration: [Debug, Release] | |
steps: | |
- name: Checkout repository and submodules | |
# uses: actions/checkout@v3 # incompatible with git lfs cache bandwidth calcs (https://github.com/actions/checkout/issues/165) | |
uses: nschloe/[email protected] | |
with: | |
submodules: recursive | |
lfs: 'true' | |
- name: Update packages | |
run: sudo apt-get update | |
- name: Install packages | |
run: sudo apt-get -y install gcc g++ cmake libsdl2-dev libsdl2-image-dev python3 python3-pip | |
- name: Install python packages | |
run: pip3 install --user -r scripts/requirements.txt | |
- name: Create build directory | |
run: mkdir build | |
- name: CMake ${{ matrix.build-configuration }} | |
run: cd build && cmake -DCMAKE_BUILD_TYPE=${{ matrix.build-configuration }} .. | |
- name: Make | |
run: cd build && make -j $(nproc) | |
- name: Test | |
run: cd build && make test |