Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…nchmarks into windows-build
  • Loading branch information
dhadka committed Nov 30, 2023
2 parents a706653 + 94bef6a commit d4c23e1
Show file tree
Hide file tree
Showing 32 changed files with 57 additions and 316 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build Windows

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:

jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Run Make
run: make -C native
- uses: actions/upload-artifact@v3
if: always()
with:
name: native-windows
path: native/
2 changes: 1 addition & 1 deletion global.properties → moeaframework.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ org.moeaframework.analysis.diagnostics.problems = GAA, HBV, \

## The Radar Waveform Design problem requires Matlab. By default, the command
## 'matlab' is used, but a custom path can be specified below if required.
#matlab.path = /usr/global/matlab/R2013a/bin/matlab
#matlab.path = /usr/global/matlab/R2013a/bin/matlab
12 changes: 10 additions & 2 deletions native/HBV/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,16 @@ SRC_DIR = src
CC_SERIAL = g++

#If profiling, add the -pg flag in the last line of these as well
C_FLAGS = -O3 -DLINUX -DOUT_TO_SCREEN -DHBVMOD -DRANGER_MEMORY_TRICK -DSERIAL -lm
C_FLAGS_DEBUG = -g -O0 -DLINUX -DOUT_TO_SCREEN -DHBVMOD -DRANGER_MEMORY_TRICK -DSERIAL -lm
C_FLAGS = -O3 -DOUT_TO_SCREEN -DHBVMOD -DRANGER_MEMORY_TRICK -DSERIAL -lm
C_FLAGS_DEBUG = -g -O0 -DOUT_TO_SCREEN -DHBVMOD -DRANGER_MEMORY_TRICK -DSERIAL -lm

ifeq ($(OS),Windows_NT)
C_FLAGS += -static
C_FLAGS_DEBUG += -static
else
C_FLAGS += -DLINUX
C_FLAGS_DEBUG += -DLINUX
endif

HBV_SOURCE = $(SRC_DIR)/HBVMain.cpp \
$(SRC_DIR)/HBV.cpp \
Expand Down
Binary file modified native/HBV/bin/hbv.exe
Binary file not shown.
9 changes: 8 additions & 1 deletion native/LRGV/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ CC=g++
TARGET=lrgv
SRC_DIR = src
SHARED_DIR = ../shared
C_FLAGS=-O3 -I$(SRC_DIR) -I$(SHARED_DIR) -DLINUX
C_FLAGS=-O3 -I$(SRC_DIR) -I$(SHARED_DIR)

ifeq ($(OS),Windows_NT)
C_FLAGS += -static
else
C_FLAGS += -DLINUX
endif

SOURCE = $(SRC_DIR)/lrgv_main.cpp \
$(SHARED_DIR)/moeaframework.c \
$(SRC_DIR)/lrgv_functions.cpp \
Expand Down
Binary file added native/LRGV/bin/lrgv.exe
Binary file not shown.
6 changes: 5 additions & 1 deletion native/LakeProblem/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ CC = g++
SRC_DIR = src
SHARED_DIR = ../shared
TARGET = lake
C_FLAGS = -O3 -Wno-unused-local-typedefs -I$(SRC_DIR) -I$(SHARED_DIR) -I$(SRC_DIR)/boost_1_56_0
C_FLAGS = -O3 -Wno-unused-local-typedefs -I$(SRC_DIR) -I$(SHARED_DIR) -I$(SRC_DIR)/boost_1_56_0
SOURCE = $(SRC_DIR)/main-lake.cpp $(SHARED_DIR)/moeaframework.c

ifeq ($(OS),Windows_NT)
C_FLAGS += -static
endif

all:
mkdir -p bin
$(CC) $(C_FLAGS) -o bin/$(TARGET) $(SOURCE)
Expand Down
Binary file added native/LakeProblem/bin/lake.exe
Binary file not shown.
12 changes: 8 additions & 4 deletions native/Radar/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ CC = gcc
SHARED_DIR = ../shared
C_FLAGS = -Wall -O3 -fPIC

ifeq ($(OS),Windows_NT)
EXT = dll
else
EXT = so
endif

all:
$(CC) $(C_FLAGS) -o bin/moeaframework.o -c $(SHARED_DIR)/moeaframework.c
ld -G bin/moeaframework.o -o bin/libmoeaframework.so
rm bin/moeaframework.o

$(CC) $(C_FLAGS) -shared -o bin/moeaframework.$(EXT) -c $(SHARED_DIR)/moeaframework.c

Binary file added native/Radar/bin/moeaframework.dll
Binary file not shown.
4 changes: 4 additions & 0 deletions native/WDS/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ SHARED_DIR = ../shared
SOURCE = $(SRC_DIR)/main.c $(SRC_DIR)/models.c $(SHARED_DIR)/moeaframework.c
C_FLAGS = -I$(SRC_DIR)/epanet2 -I$(SHARED_DIR) -Lbin -lm -lepanet2 -Wl,-R,\.

ifeq ($(OS),Windows_NT)
C_FLAGS += -static
endif

all:
$(MAKE) -C $(SRC_DIR)/epanet2
$(CC) -o bin/TRN -DTRN $(SOURCE) $(C_FLAGS)
Expand Down
Binary file modified native/WDS/bin/BAK.exe
Binary file not shown.
Binary file modified native/WDS/bin/BIN.exe
Binary file not shown.
Binary file modified native/WDS/bin/BLA.exe
Binary file not shown.
Binary file modified native/WDS/bin/EXN.exe
Binary file not shown.
Binary file modified native/WDS/bin/FOS.exe
Binary file not shown.
Binary file modified native/WDS/bin/GOY.exe
Binary file not shown.
Binary file modified native/WDS/bin/HAN.exe
Binary file not shown.
Binary file modified native/WDS/bin/MOD.exe
Binary file not shown.
Binary file modified native/WDS/bin/NYT.exe
Binary file not shown.
Binary file modified native/WDS/bin/PES.exe
Binary file not shown.
Binary file modified native/WDS/bin/TLN.exe
Binary file not shown.
Binary file modified native/WDS/bin/TRN.exe
Binary file not shown.
Binary file added native/WDS/bin/epanet2.lib
Binary file not shown.
4 changes: 0 additions & 4 deletions src/main/java/org/moeaframework/benchmarks/CarSideImpact.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<<<<<<< Updated upstream:src/main/java/org/moeaframework/benchmarks/CarSideImpact/CarSideImpact.java
/* Copyright 2009-2023 David Hadka and other contributors
*
* This file is part of the MOEA Framework.
Expand All @@ -16,10 +15,7 @@
* You should have received a copy of the GNU Lesser General Public License
* along with the MOEA Framework. If not, see <http://www.gnu.org/licenses/>.
*/
package org.moeaframework.benchmarks.CarSideImpact;
=======
package org.moeaframework.benchmarks;
>>>>>>> Stashed changes:src/main/java/org/moeaframework/benchmarks/CarSideImpact.java

import org.moeaframework.core.Solution;
import org.moeaframework.core.variable.EncodingUtils;
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/org/moeaframework/benchmarks/ElectricMotor.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<<<<<<< Updated upstream:src/main/java/org/moeaframework/benchmarks/ElectricMotor/ElectricMotor.java
/* Copyright 2009-2023 David Hadka and other contributors
*
* This file is part of the MOEA Framework.
Expand All @@ -16,10 +15,7 @@
* You should have received a copy of the GNU Lesser General Public License
* along with the MOEA Framework. If not, see <http://www.gnu.org/licenses/>.
*/
package org.moeaframework.benchmarks.ElectricMotor;
=======
package org.moeaframework.benchmarks;
>>>>>>> Stashed changes:src/main/java/org/moeaframework/benchmarks/ElectricMotor.java

import org.moeaframework.core.Solution;
import org.moeaframework.core.variable.EncodingUtils;
Expand Down

This file was deleted.

4 changes: 0 additions & 4 deletions src/main/java/org/moeaframework/benchmarks/LRGV.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<<<<<<< Updated upstream:src/main/java/org/moeaframework/benchmarks/LRGV/LRGV.java
/* Copyright 2009-2023 David Hadka and other contributors
*
* This file is part of the MOEA Framework.
Expand All @@ -16,10 +15,7 @@
* You should have received a copy of the GNU Lesser General Public License
* along with the MOEA Framework. If not, see <http://www.gnu.org/licenses/>.
*/
package org.moeaframework.benchmarks.LRGV;
=======
package org.moeaframework.benchmarks;
>>>>>>> Stashed changes:src/main/java/org/moeaframework/benchmarks/LRGV.java

import java.io.File;

Expand Down
4 changes: 0 additions & 4 deletions src/main/java/org/moeaframework/benchmarks/LakeProblem.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<<<<<<< Updated upstream:src/main/java/org/moeaframework/benchmarks/LakeProblem/LakeProblem.java
/* Copyright 2009-2023 David Hadka and other contributors
*
* This file is part of the MOEA Framework.
Expand All @@ -16,10 +15,7 @@
* You should have received a copy of the GNU Lesser General Public License
* along with the MOEA Framework. If not, see <http://www.gnu.org/licenses/>.
*/
package org.moeaframework.benchmarks.LakeProblem;
=======
package org.moeaframework.benchmarks;
>>>>>>> Stashed changes:src/main/java/org/moeaframework/benchmarks/LakeProblem.java

import java.io.File;

Expand Down
82 changes: 0 additions & 82 deletions src/main/java/org/moeaframework/benchmarks/WDS/WDS.java

This file was deleted.

62 changes: 0 additions & 62 deletions src/main/java/org/moeaframework/benchmarks/WDS/WDSConverter.java

This file was deleted.

Loading

0 comments on commit d4c23e1

Please sign in to comment.