Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Enable C unit tests for workflow #128

Merged
merged 2 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/c_tests.yml
anshuldata marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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
Loading