Skip to content

Commit

Permalink
Add README and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Aug 17, 2023
1 parent a4654f5 commit bfa540c
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 0 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/examples.yml
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
20 changes: 20 additions & 0 deletions README.md
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!

0 comments on commit bfa540c

Please sign in to comment.