diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..5fd1564 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,26 @@ +name: Build +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + build_type: [Debug, Release] + steps: + - uses: actions/checkout@v4 + with: + submodules: true + - name: Install dependencies + run: sudo apt-get install libprotobuf-dev protobuf-compiler + - name: Create build directory + run: mkdir build + - name: Run CMake + run: cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} .. + working-directory: build + - name: Build onnx2c and tests + run: make + working-directory: build + - name: Run tests + run: make test + working-directory: build