Skip to content

Commit

Permalink
madnlp fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jgillis committed Jul 31, 2024
1 parent 9e0a77c commit 8de0cce
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion madnlp/include/madnlp_c.h
Original file line number Diff line number Diff line change
Expand Up @@ -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*);
Expand All @@ -137,4 +140,4 @@ MADNLP_SYMBOL_EXPORT void madnlp_c_destroy(struct MadnlpCSolver*);
}
#endif

#endif // _MADNLP_C_H
#endif // _MADNLP_C_H
3 changes: 3 additions & 0 deletions madnlp/src/madnlp.cpp
Original file line number Diff line number Diff line change
@@ -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; }
Expand Down

0 comments on commit 8de0cce

Please sign in to comment.