Skip to content

Fix badge

Fix badge #7

Workflow file for this run

name: Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
ECOS_VERSION: v2.0.10
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Cache ECOS shared library
id: cache-ecos
uses: actions/cache@v3
env:
cache-name: cache-ecos
with:
path: ./libecos.so
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.ECOS_VERSION }}
- if: ${{ steps.cache-ecos.outputs.cache-hit != 'true' }}
name: Download ECOS shared library
run: curl -L -O https://github.com/atraplet/ecos/releases/download/$ECOS_VERSION/libecos.so
- name: Build with Maven
env:
LD_LIBRARY_PATH: ./
run: mvn -B clean package --file pom.xml