Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
2f2aa01
Create main.yml
marques-bruno Nov 26, 2019
16ee78f
Update main.yml
marques-bruno Nov 26, 2019
91e336e
Update main.yml
marques-bruno Nov 26, 2019
30abbd8
Update main.yml
marques-bruno Nov 26, 2019
150aa15
Update main.yml
marques-bruno Nov 26, 2019
45d1518
Update main.yml
marques-bruno Nov 26, 2019
fbd63bb
Update main.yml
marques-bruno Nov 26, 2019
98a8801
Update main.yml
marques-bruno Nov 26, 2019
c7b4549
Update main.yml
marques-bruno Nov 26, 2019
203e321
Update main.yml
marques-bruno Nov 26, 2019
afd9806
Update main.yml
marques-bruno Nov 26, 2019
6b4317e
Update main.yml
marques-bruno Nov 26, 2019
0e4d990
Update main.yml
marques-bruno Nov 26, 2019
5f6eb9b
Update main.yml
marques-bruno Nov 26, 2019
8e020e0
Update main.yml
marques-bruno Nov 26, 2019
0ccc10d
Update main.yml
marques-bruno Nov 26, 2019
ceeb0a1
Update main.yml
marques-bruno Nov 26, 2019
ca70095
Update main.yml
marques-bruno Nov 27, 2019
342b43b
Update main.yml
marques-bruno Nov 27, 2019
60a1aab
Update main.yml
marques-bruno Nov 27, 2019
b1d0dbc
Update main.yml
marques-bruno Nov 27, 2019
057d951
Update main.yml
marques-bruno Nov 27, 2019
26277d2
Update main.yml
marques-bruno Nov 27, 2019
bc6e23e
change install prefix
marques-bruno Nov 27, 2019
e0136db
Update main.yml
marques-bruno Nov 27, 2019
e5afb51
Update main.yml
marques-bruno Nov 27, 2019
3b385f0
Update main.yml
marques-bruno Nov 27, 2019
db2c57e
Update main.yml
marques-bruno Nov 27, 2019
bfeed7b
Update main.yml
marques-bruno Nov 27, 2019
e86a548
testing second workflow
marques-bruno Nov 28, 2019
46405cb
Merge branch 'test_githubactions' of github.com:marques-bruno/sofa in…
marques-bruno Nov 28, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: CMake/C++ CI

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
# install-dependencies:
# runs-on: [self-hosted, linux]
# steps:
# - name: install dependencies
# run: |
# sudo apt-get -y update
# sudo apt install -y build-essential ninja-build clang
# sudo apt install -y cmake ccache
# sudo apt install -y qt5-default
# sudo apt install -y libboost-atomic-dev libboost-all-dev
# sudo apt install -y python2.7-dev python-numpy python-scipy
# sudo apt install -y libpng-dev libjpeg-dev libtiff-dev zlib1g-dev libglew-dev
build:
# needs: [install-dependencies]
# ideally I'd like this to run in custom docker image instead of running directly in the self-hosted vm:
runs-on: [self-hosted, linux] # [self-hosted docker://bmarques68/sofa-ubuntu:18.04]
steps:
# Chechout the project's repo:
- uses: actions/checkout@v1

# when running on a self-hosted vm with preinstalled deps this dependency step is not necessary of course...:
- name: configure SOFA
run: |
mkdir -p ../build
cd ../build
cmake ../sofa -G Ninja -DCMAKE_CXX_COMPILER="/usr/bin/clang++" -DSOFA_BUILD_METIS=ON -DPLUGIN_SOFASPARSESOLVER=ON -DPLUGIN_SOFAPYTHON=ON -DCMAKE_INSTALL_PREFIX="~/SOFA"

- name: build SOFA
run: |
cd ../build
ninja
ninja install

run-tests:
needs: [build]
runs-on: [self-hosted, linux]
steps:
- name: run-tests
run: |
cd ../build/bin
for f in *_test
do
./$f
done
17 changes: 17 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: test-workflow

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
plop:
runs-on: [self-hosted, linux]
needs: [build]
steps:
- name: plop
run: echo "pouet pouet"