name: check-build

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]
  workflow_dispatch:
    branches: [ main ]

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, ubuntu-22.04]

    steps:
    - uses: actions/checkout@v2
    - name: Install libnuma-dev
      run: sudo apt-get -y install libnuma-dev
    - name: make clean
      run: make clean
    - name: make
      run: make
