From 8de0cce5907a83aac2a9d06c3e99a9d2e59a18f4 Mon Sep 17 00:00:00 2001 From: Joris Gillis Date: Wed, 31 Jul 2024 17:41:55 +0200 Subject: [PATCH] madnlp fix windows --- action.yml | 2 +- madnlp/include/madnlp_c.h | 5 ++++- madnlp/src/madnlp.cpp | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 4c59052..dd31370 100644 --- a/action.yml +++ b/action.yml @@ -9,7 +9,7 @@ runs: using: "composite" steps: - run: | - curl -OL https://github.com/casadi/mockups/releases/download/v84/mockups_${{ inputs.tag }}_Release.zip + curl -OL https://github.com/casadi/mockups/releases/download/v85/mockups_${{ inputs.tag }}_Release.zip unzip mockups_${{ inputs.tag }}_Release.zip -d mockups ls mockups ls mockups/cmake diff --git a/madnlp/include/madnlp_c.h b/madnlp/include/madnlp_c.h index b6ab02d..034f85a 100644 --- a/madnlp/include/madnlp_c.h +++ b/madnlp/include/madnlp_c.h @@ -115,6 +115,9 @@ struct MadnlpCStats { double primal_feas; }; +MADNLP_SYMBOL_EXPORT int init_julia(int, char**); +MADNLP_SYMBOL_EXPORT void shutdown_julia(int); + MADNLP_SYMBOL_EXPORT struct MadnlpCSolver* madnlp_c_create(struct MadnlpCInterface* nlp_interface); MADNLP_SYMBOL_EXPORT const struct MadnlpCNumericIn* madnlp_c_input(struct MadnlpCSolver*); @@ -137,4 +140,4 @@ MADNLP_SYMBOL_EXPORT void madnlp_c_destroy(struct MadnlpCSolver*); } #endif -#endif // _MADNLP_C_H \ No newline at end of file +#endif // _MADNLP_C_H diff --git a/madnlp/src/madnlp.cpp b/madnlp/src/madnlp.cpp index e5bc827..586bb84 100644 --- a/madnlp/src/madnlp.cpp +++ b/madnlp/src/madnlp.cpp @@ -1,5 +1,8 @@ #include "madnlp_c.h" +MADNLP_SYMBOL_EXPORT int init_julia(int, char**) { return 0; } +MADNLP_SYMBOL_EXPORT void shutdown_julia(int) {} + MADNLP_SYMBOL_EXPORT struct MadnlpCSolver* madnlp_c_create(struct MadnlpCInterface* nlp_interface) { return 0; } MADNLP_SYMBOL_EXPORT void madnlp_c_init(struct MadnlpCSolver* s) { } MADNLP_SYMBOL_EXPORT int madnlp_c_solve(struct MadnlpCSolver* s) { return 0; }