Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,17 @@ jobs:
source .bashrc
cmake --workflow --preset dev --fresh

# Test that all models build properly in a Trick environment (i.e not using
# the CMake build process or Trickification). Purge the sim build afterward
# to save on runner memory usage.
- name: Check Trick compatibility
run: |
export PATH=${TRICK_HOME}/bin:${PATH}
source .bashrc
cd utility/sims/SIM_test_trick_compatibility
trick-CP
make spotless

- name: Build verification sims
id: build_verif_sims
if: ${{ env.RUN_VERIF_SIMS == 'true' }}
Expand Down
4 changes: 4 additions & 0 deletions utility/sims/SIM_test_trick_compatibility/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
This simulation tests that all CML models will build in a Trick environment.
We're checking to see that:
- SWIG and ICG don't choke.
- Library dependencies are set up properly.
9 changes: 9 additions & 0 deletions utility/sims/SIM_test_trick_compatibility/S_define
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* This simulation tests that all CML models will build in a Trick environment.
* We're checking to see that:
* - SWIG and ICG don't choke.
* - Library dependencies are set up properly.
*/

#include "sim_objects/default_trick_sys.sm"

##include "../../../trickified/S_source.hh"
10 changes: 10 additions & 0 deletions utility/sims/SIM_test_trick_compatibility/S_overrides.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# We're intentionally using the public-facing CML makefile and not the internal unit
# sim makefile. This is so we can test building all of the CML models in a Trick
# environment.
CML_TRICK_BUILD=1
include ${CML_HOME}/mkspecs/cml.mk

# Still use internal JEOD makefile.
include ${CML_HOME}/mkspecs/internal/jeod.mk

export TRICK_CXXFLAGS += -I${JEOD_HOME}/.. -I${JEOD_HOME}/models -std=c++17
Loading