Skip to content

Commit

Permalink
build: Enable C unit tests for workflow (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
anshuldata authored Nov 20, 2024
1 parent 51fcaba commit 728fbcd
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/c_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: C Unit tests

on: [push, pull_request,repository_dispatch]

defaults:
run:
shell: bash

jobs:
unitTests:
name: C unit tests
runs-on: macos-latest
env:
GEN: ninja

steps:
- name: Install Ninja
run: brew install ninja

- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true

- name: Build Substrait with C unit test
run: make release_c_unit_test

- name: Run C unit tests
run: ./build/release/extension/substrait/test/c/test_substrait_exe
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ release_js: release
debug_r: debug
release_r: release

release_c_unit_test:
EXT_RELEASE_FLAGS=-DSUBSTRAIT_EXTENSION_TEST_EXE=ON $(MAKE) release

%_python: export BUILD_PYTHON=1
%_python: export BUILD_FTS=1
%_python: export BUILD_VISUALIZER=1
Expand Down

0 comments on commit 728fbcd

Please sign in to comment.