Skip to content

Fixes to Radar

Fixes to Radar #61

Workflow file for this run

name: CI
on:
push:
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ 'ubuntu-latest', 'windows-latest' ]
java: [ '16', '17', '18', '19', '20' ]
steps:
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: zulu
- name: Add MSYS64 to PATH (Windows)
if: runner.os == 'Windows'
run: echo "C:\msys64\usr\bin" >> $GITHUB_PATH
- uses: matlab-actions/setup-matlab@v1
- name: Setup Radar Waveform code
run: |
cd native/Radar/bin
wget https://perspectival-classi.000webhostapp.com/code/radar_many.zip \
|| wget https://github.com/MOEAFramework/Archive/raw/main/radar_many.zip
unzip radar_many.zip
cp web_code/testpris.p testpris.p
- name: Build native programs
run: make -C native
- name: Build and test with Maven
run: mvn package
- name: Test with latest MOEA Framework JAR (Linux only)
if: runner.os == 'Linux'
run: |
VERSION=$(curl https://github.com/repos/MOEAFramework/MOEAFramework/releases/latest | jq '.tag_name' | grep -oEi '[0-9]+\.[0-9]+(\.[0-9]+)?')
wget https://github.com/MOEAFramework/MOEAFramework/releases/download/v${VERSION}/MOEAFramework-${VERSION}.tar.gz
tar -xzf MOEAFramework-${VERSION}.tar.gz
MOEAFRAMEWORK_ROOT=$(realpath -s MOEAFramework-${VERSION})
ln -s $(realpath -s native/) ${MOEAFRAMEWORK_ROOT}/native
cp target/real-world-benchmarks-[0-9].[0-9].[0-9].jar ${MOEAFRAMEWORK_ROOT}/lib
cd ${MOEAFRAMEWORK_ROOT}
java -cp "lib/*" org.moeaframework.analysis.tools.Solve -a NSGAII -b GAA -n 10000 -f GAA.result