Skip to content

Wip

Wip #143

Workflow file for this run

name: CI
on: [push]
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
container: ${{ matrix.config.container }}
strategy:
matrix:
config:
- {
name: linux,
os: ubuntu-20.04,
container: 'ubuntu:18.04',
cmake_options: '-DCMAKE_CXX_COMPILER=/usr/bin/g++-4.8 -DCMAKE_C_COMPILER=/usr/bin/gcc-4.8',
artifact_name: libmath.so,
artifact_path: linux_64
}
steps:
- name: Install pre-requisites
if: matrix.config.name == 'linux'
run: |
apt update
apt-get install -y g++-4.8 gcc-4.8 liblapack-dev libblas-dev snapd
- name: Install cmake
run: |
systemctl enable snapd
systemctl start snapd
snap install cmake --classic
- name: Checkout sources
uses: actions/checkout@v3
- name: Configure CMake
shell: bash
run: |
echo $GITHUB_WORKSPACE
echo ${{ github.workspace }}
ls $GITHUB_WORKSPACE
cmake -DCMAKE_BUILD_TYPE=Release ${{ matrix.config.cmake_options }} -H . -B $GITHUB_WORKSPACE/build-${{ matrix.config.name }}
- name: Build
shell: bash
run: |
echo $GITHUB_WORKSPACE
cmake --build $GITHUB_WORKSPACE/build-${{ matrix.config.name }} --parallel --config Release
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: ${{ matrix.config.artifact_name }}
path: ${{ runner.workspace }}/powsybl-math-native/target/classes/natives/${{ matrix.config.artifact_path }}/${{ matrix.config.artifact_name }}