name: build

on:
  push:
    branches:
      - '*'
  pull_request:
    branches:
      - '*'
jobs:
  ubuntu_22_04:
    runs-on: ubuntu-22.04
    steps:
    - uses: actions/checkout@v2
      with:
        submodules: recursive
    - name: Build ladi-a2jmidi
      shell: bash
      run: |
        sudo apt-get install libdbus-1-dev libasound2-dev
        make

  ubuntu_20_04:
    runs-on: ubuntu-20.04
    steps:
    - uses: actions/checkout@v2
      with:
        submodules: recursive
    - name: Build ladi-a2jmidi
      shell: bash
      run: |
        sudo apt-get install libdbus-1-dev libasound2-dev
        make
