-
Notifications
You must be signed in to change notification settings - Fork 6
CI: Migrate project from TravisCI to GitHub Actions #30
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
base: master
Are you sure you want to change the base?
Changes from 1 commit
a2de26e
c1d1c9a
9113b30
254d505
4e5b7be
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: BNN CI Workflow | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
czgdp1807 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
jobs: | ||
test: | ||
runs-on: ${{matrix.os}} | ||
timeout-minutes: 10 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
run: | | ||
cd ../ | ||
wget https://cmake.org/files/v3.10/cmake-3.10.2-Linux-x86_64.tar.gz | ||
tar -zxvf cmake-3.10.2-Linux-x86_64.tar.gz | ||
wget https://github.com/google/googletest/archive/release-1.10.0.tar.gz | ||
tar -zxvf release-1.10.0.tar.gz | ||
ls -a | ||
mkdir googletest-build | ||
cd googletest-build | ||
sudo ../cmake-3.10.2-Linux-x86_64/bin/cmake ../googletest-release-1.10.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not sure if There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From GitHub Docs:
|
||
sudo make -j5 | ||
czgdp1807 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
sudo make install | ||
cd ../ | ||
mkdir build-BNN | ||
cd build-BNN | ||
sudo ../cmake-3.10.2-Linux-x86_64/bin/cmake -DBUILD_TESTS=ON -DINSTALL_GOOGLETEST=OFF -DCMAKE_PREFIX_PATH=/usr/local/include ../BNN | ||
sudo make -j5 | ||
wget https://raw.githubusercontent.com/codezonediitj/test_data/master/t10k-images-idx3-ubyte.gz | ||
gzip -d t10k-images-idx3-ubyte.gz | ||
wget https://raw.githubusercontent.com/codezonediitj/test_data/master/t10k-labels-idx1-ubyte.gz | ||
gzip -d t10k-labels-idx1-ubyte.gz | ||
|
||
- name: Run tests | ||
run: | | ||
./bin/test_core --CI=ON | ||
./bin/test_operations --CI=ON | ||
./bin/test_io --CI=ON | ||
./bin/test_autodiff --CI=ON |
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.