-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4654f5
commit bfa540c
Showing
2 changed files
with
96 additions
and
0 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,76 @@ | ||
name: Examples | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
pull_request: | ||
branches: | ||
- main | ||
- develop | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
build_and_test: | ||
if: contains(toJson(github.event.commits), '***NO_CI***') == false && contains(toJson(github.event.commits), '[ci skip]') == false && contains(toJson(github.event.commits), '[skip ci]') == false | ||
name: Testing library examples, running on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false # show all errors for each platform (vs. cancel jobs on error) | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
name: "STL" | ||
backend: "-DRTNEURAL_STL=ON" | ||
- os: ubuntu-latest | ||
name: "xsimd" | ||
backend: "-DRTNEURAL_XSIMD=ON" | ||
- os: ubuntu-latest | ||
name: "Eigen" | ||
backend: "-DRTNEURAL_EIGEN=ON" | ||
- os: windows-latest | ||
name: "STL" | ||
backend: "-DRTNEURAL_STL=ON" | ||
- os: windows-latest | ||
name: "xsimd" | ||
backend: "-DRTNEURAL_XSIMD=ON" | ||
- os: windows-latest | ||
name: "Eigen" | ||
backend: "-DRTNEURAL_EIGEN=ON" | ||
- os: macos-latest | ||
name: "STL" | ||
backend: "-DRTNEURAL_STL=ON" | ||
- os: macos-latest | ||
name: "xsimd" | ||
backend: "-DRTNEURAL_XSIMD=ON" | ||
- os: macos-latest | ||
name: "Eigen" | ||
backend: "-DRTNEURAL_EIGEN=ON" | ||
|
||
steps: | ||
- name: Get latest CMake | ||
uses: lukka/get-cmake@latest | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Configure | ||
env: | ||
BACKEND_ARG: ${{ matrix.backend }} | ||
shell: bash | ||
run: cmake -Bbuild -DBUILD_EXAMPLES=ON $BACKEND_ARG | ||
|
||
- name: Build | ||
shell: bash | ||
run: cmake --build build --config Release --parallel | ||
|
||
- name: "Run Examples" | ||
working-directory: ${{env.WORK_DIR}}/build/examples_out | ||
shell: bash | ||
run: | | ||
for exe in *; do | ||
echo "RUNNING Example: $exe" | ||
./$exe; | ||
done |
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,20 @@ | ||
# RTNeural-Experimental | ||
|
||
[![Examples](https://github.com/jatinchowdhury18/RTNeural-Experimental/actions/workflows/examples.yml/badge.svg)](https://github.com/jatinchowdhury18/RTNeural-Experimental/actions/workflows/examples.yml) | ||
[![License](https://img.shields.io/badge/License-BSD-blue.svg)](https://opensource.org/licenses/BSD-3-Clause) | ||
|
||
This repository is meant as an accompaniment to [RTNeural](https://github.com/jatinchowdhury18/RTNeural). | ||
Any code that would otherwise belong in RTNeural, but is | ||
currently deemed to experimental or otherwise not yet ready | ||
to be a part of the main library goes here! | ||
|
||
Feel free to use this code as you wish, but be aware that | ||
it may change at any time, and may at some point be moved | ||
to the main repository, or removed entirely. | ||
|
||
## License | ||
|
||
RTNeural is open source, and is licensed under the | ||
BSD 3-clause license. | ||
|
||
Enjoy! |