Skip to content

Setup CI

Setup CI #1

Workflow file for this run

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