-
Notifications
You must be signed in to change notification settings - Fork 554
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add github actions * fix command * fix path * Fix pybind11 build * fix re matching * get rid of pybind in CI --------- Co-authored-by: Yuxin Wu <[email protected]>
- Loading branch information
Showing
24 changed files
with
78 additions
and
8,147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: UnitTest | ||
|
||
on: | ||
- push | ||
- pull_request | ||
- workflow_call | ||
|
||
jobs: | ||
test: | ||
name: Test on ${{ matrix.os }}, ${{ matrix.install_from }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] #, windows-latest, macos-latest] | ||
install_from: [make, cmake] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Cache files | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
example-data/ | ||
key: ${{ runner.os }}-20231096 | ||
|
||
- name: Install dependency | ||
if: matrix.os == 'ubuntu-latest' | ||
run: sudo apt-get install --yes libeigen3-dev libjpeg-dev | ||
# Didn't test pybind11. Seems to be old and incompatible with the python version. | ||
|
||
- name: Build with make | ||
if: matrix.install_from == 'make' | ||
run: | | ||
make -j -C src | ||
- name: Build with cmake | ||
if: matrix.install_from == 'cmake' | ||
run: | | ||
cmake -B build && make -j -C build | ||
cp build/src/image-stitching ./src/ | ||
- name: Run Unittests | ||
run: cd src && python run_test.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,6 @@ Debug | |
cmake_install.cmake | ||
src/cmake_install.cmake | ||
.vs/ | ||
|
||
example-data | ||
example-data.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.