Skip to content

Commit f15ecfb

Browse files
Added CI for embedding-python-example (#1)
* added_CI and updated typo in readme * minor bug fix * Update README.md * Update ci.yml --------- Co-authored-by: Vicente Eduardo Ferrer Garcia <7854099+viferga@users.noreply.github.com>
1 parent 904b55c commit f15ecfb

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI Linux Build and Test
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build-and-test:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout Code
13+
uses: actions/checkout@v4
14+
15+
- name: Install System Dependencies
16+
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends python3 python3-dev cmake g++ make
17+
18+
- name: Build with CMake
19+
run: |
20+
mkdir -p build
21+
cd build
22+
cmake ..
23+
sudo cmake --build . --target install
24+
25+
- name: Run Application
26+
run: |
27+
export LOADER_LIBRARY_PATH="/usr/local/lib"
28+
export LOADER_SCRIPT_PATH="`pwd`"
29+
./build/embedding-python-example
30+
31+
- name: Test Docker Build
32+
run: |
33+
docker build --build-arg DISABLE_CACHE=`date +%s` -t metacall/embedding-python-example .
34+
docker run --rm metacall/embedding-python-example

0 commit comments

Comments
 (0)