Skip to content

Commit

Permalink
Add simple github actions CI for gcc and clang (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
vissarion authored May 22, 2020
1 parent 423811f commit 9edced6
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/cmake-clang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
##############################################################################
# GitHub Actions Workflow for volesti to build tests with GCC
#
# Copyright (c) 2020 Vissarion Fisikopoulos
#
# Licensed under GNU LGPL.3, see LICENCE file
##############################################################################
name: clang-test

on: [push, pull_request]

jobs:
build:
name: ${{ matrix.compilers }}
strategy:
fail-fast: false
matrix:
compilers: [clang++-6.0, clang++-7, clang++-8, clang++-9]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: sudo apt-get update || true;
sudo apt-get install clang-6.0 clang-7 clang-8 clang-9 lp-solve;
rm -rf build;
mkdir build;
cd build;
cmake -D CMAKE_CXX_COMPILER=${{ matrix.compilers }} ../test;
make;
28 changes: 28 additions & 0 deletions .github/workflows/cmake-gcc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
##############################################################################
# GitHub Actions Workflow for volesti to build tests with GCC
#
# Copyright (c) 2020 Vissarion Fisikopoulos
#
# Licensed under GNU LGPL.3, see LICENCE file
##############################################################################
name: gcc-test

on: [push, pull_request]

jobs:
build:
name: ${{ matrix.compilers }}
strategy:
fail-fast: false
matrix:
compilers: [g++-4.8, g++-5, g++-6, g++-7, g++-8, g++-9]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: sudo apt-get update || true;
sudo apt-get install ${{ matrix.compilers }} lp-solve;
rm -rf build;
mkdir build;
cd build;
cmake -D CMAKE_CXX_COMPILER=${{ matrix.compilers }} ../test;
make;
25 changes: 25 additions & 0 deletions .github/workflows/cmake-windows.disactivated
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
##############################################################################
# GitHub Actions Workflow for volesti to build tests with GCC
#
# Copyright (c) 2020 Vissarion Fisikopoulos
#
# Licensed under GNU LGPL.3, see LICENCE file
##############################################################################
name: windows-test

on: [push, pull_request]

jobs:
build:
name: windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- run: mkdir build;
cd build;
$url = "https://sourceforge.net/projects/lpsolve/files/lpsolve/5.5.2.5/lp_solve_5.5.2.5_dev_win64.zip/download";
$output = "$lp_solve.zip";
Invoke-WebRequest -Uri $url -OutFile $output -UserAgent ([Microsoft.PowerShell.Commands.PSUserAgent]::InternetExplorer);
unzip lp_solve.zip;
cmake ../test;
make;

0 comments on commit 9edced6

Please sign in to comment.