Skip to content

Commit 8c1ebd3

Browse files
author
Brian Mirletz
authored
Merge pull request #166 from NREL/develop
Develop to main for 2023.12.17
2 parents 465fe8d + a757117 commit 8c1ebd3

16 files changed

Lines changed: 1360 additions & 333 deletions

File tree

.github/workflows/ci.yml

Lines changed: 20 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@ on:
55
pull_request:
66

77
jobs:
8-
build-on-ubuntu1804:
9-
runs-on: ubuntu-18.04
10-
env:
11-
RUNS_ON: ubuntu1804
12-
GH_WORKSPACE: /home/runner/work/wex/wex #= $GITHUB_WORKSPACE
8+
build-on-ubuntu:
9+
runs-on: ubuntu-latest
1310
steps:
1411
- name: Setup cmake
1512
uses: jwlawson/actions-setup-cmake@v1.12
@@ -19,7 +16,7 @@ jobs:
1916
run: cmake --version
2017
- name: Install OS dependencies
2118
run: |
22-
sudo apt-get update
19+
sudo apt-get update --fix-missing
2320
sudo apt-get install -y \
2421
build-essential \
2522
freeglut3-dev \
@@ -64,92 +61,32 @@ jobs:
6461
cd $GITHUB_WORKSPACE/lk
6562
cmake -Bbuild_linux -DCMAKE_BUILD_TYPE=Debug
6663
cmake --build build_linux -- -j
67-
- name: Set LKDIR and LKD_LIB envs
64+
- name: Set LKDIR
6865
run: |
6966
echo "LKDIR=$GITHUB_WORKSPACE/lk" >>$GITHUB_ENV
70-
echo "LKD_LIB=$GITHUB_WORKSPACE/lk/build_linux" >>$GITHUB_ENV # iff CMAKE_BUILD_TYPE=Debug
71-
72-
- name: Checkout
73-
uses: actions/checkout@v2
74-
with:
75-
path: wex
76-
- name: Build WEX
67+
- name: Set LKD_LIB
7768
run: |
78-
cd $GITHUB_WORKSPACE/wex
79-
cmake -Bbuild_linux -DCMAKE_BUILD_TYPE=Debug
80-
cmake --build build_linux
81-
- name: Save static lib, Dview & wexsandbox
82-
uses: actions/upload-artifact@v2
83-
with:
84-
name: WEX-${{ env.RUNS_ON }}-x86_64
85-
path: |
86-
${{ env.GH_WORKSPACE }}/wex/build_linux/tools/DView*
87-
${{ env.GH_WORKSPACE }}/wex/build_linux/tools/wexsandbox*
88-
${{ env.GH_WORKSPACE }}/wex/build_linux/wex*.a
89-
90-
build-on-ubuntu2004:
91-
runs-on: ubuntu-20.04
92-
env:
93-
RUNS_ON: ubuntu2004
94-
GH_WORKSPACE: /home/runner/work/wex/wex #= $GITHUB_WORKSPACE
95-
steps:
96-
- name: Setup cmake
97-
uses: jwlawson/actions-setup-cmake@v1.12
98-
with:
99-
cmake-version: '3.24.x'
100-
- name: Test cmake version
101-
run: cmake --version
102-
- name: Install OS dependencies
69+
echo "LKD_LIB=$GITHUB_WORKSPACE/lk/build_linux" >>$GITHUB_ENV
70+
- name: Set RAPIDJSONDIR
10371
run: |
104-
sudo apt-get update
105-
sudo apt-get install -y \
106-
build-essential \
107-
freeglut3-dev \
108-
g++ \
109-
libcurl4-openssl-dev \
110-
libfontconfig-dev \
111-
libgl1-mesa-dev \
112-
libgtk2.0-dev \
113-
mesa-common-dev \
114-
unzip
115-
- name: Get GCC version
116-
run: gcc --version
117-
- name: Get libc version
118-
run: ldd --version
119-
120-
- name: Install wxWidgets
72+
echo "RAPIDJSONDIR=$GITHUB_WORKSPACE/ssc" >>$GITHUB_ENV
73+
- name: Get git ref of sibling dependency SSC
12174
run: |
122-
sudo apt-get install -y libwxgtk*-dev
123-
sudo ln -s $(which wx-config) /usr/local/bin/wx-config-3
124-
wx-config-3 --cflags | grep I
125-
126-
- name: Get git ref of sibling dependency LK
127-
run: |
128-
ref=$(git ls-remote --exit-code git://github.com/NREL/lk.git refs/heads/develop | awk '{print $1}')
129-
echo "ref_of_lk=$ref" | tee --append $GITHUB_ENV
130-
- name: Get cached build data of sibling dependency LK
75+
ref=$(git ls-remote --exit-code git://github.com/NREL/ssc.git refs/heads/develop | awk '{print $1}')
76+
echo "ref_of_ssc=$ref" | tee --append $GITHUB_ENV
77+
- name: Get cached build data of sibling dependency SSC
13178
uses: actions/cache@v2
132-
id: cachedlk
79+
id: cachedssc
13380
with:
134-
path: ${{ env.GH_WORKSPACE }}/lk
135-
key: ${{ env.RUNS_ON }}-${{ env.ref_of_lk }}-LK
136-
- name: Clone sibling dependency LK
137-
if: steps.cachedlk.outputs.cache-hit != 'true'
81+
path: ${{ env.GH_WORKSPACE }}/ssc
82+
key: ${{ env.RUNS_ON }}-${{ env.ref_of_ssc }}-SSC
83+
- name: Clone sibling dependency SSC
84+
if: steps.cachedssc.outputs.cache-hit != 'true'
13885
uses: actions/checkout@v2
13986
with:
140-
ref: ${{ env.ref_of_lk }}
141-
path: lk
142-
repository: NREL/lk
143-
- name: Build LK
144-
if: steps.cachedlk.outputs.cache-hit != 'true'
145-
run: |
146-
cd $GITHUB_WORKSPACE/lk
147-
cmake -Bbuild_linux -DCMAKE_BUILD_TYPE=Debug
148-
cmake --build build_linux -- -j
149-
- name: Set LKDIR and LKD_LIB envs
150-
run: |
151-
echo "LKDIR=$GITHUB_WORKSPACE/lk" >>$GITHUB_ENV
152-
echo "LKD_LIB=$GITHUB_WORKSPACE/lk/build_linux" >>$GITHUB_ENV # iff CMAKE_BUILD_TYPE=Debug
87+
ref: ${{ env.ref_of_ssc }}
88+
path: ssc
89+
repository: NREL/ssc
15390

15491
- name: Checkout
15592
uses: actions/checkout@v2

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ endif ()
9797
#
9898
#####################################################################################################################
9999
100+
# for rapidjson folder
101+
include_directories($ENV{RAPIDJSONDIR})
102+
100103
add_subdirectory(src)
101104
if (NOT SAM_SKIP_TOOLS)
102105
add_subdirectory(tools)

include/wex/dview/dvselectionlist.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ class wxDVSelectionListCtrl : public wxScrolledWindow, public wxDVAutoColourAssi
6969

7070
int Append(const wxString &name, const wxString &group = wxEmptyString); // returns row index
7171
int AppendNoUpdate(const wxString &name, const wxString &group);
72+
int AppendNoUpdate(const wxString& name, const wxString& group, const wxString& hybrid_bin);
7273

7374
void
7475
Append(const wxArrayString &names, const wxString &group = wxEmptyString); // add a whole list with the same group
@@ -138,6 +139,7 @@ class wxDVSelectionListCtrl : public wxScrolledWindow, public wxDVAutoColourAssi
138139
wxColour color;
139140
wxString label;
140141
wxString group;
142+
wxString hybrid_bin = "";
141143
bool value[NMAXCOLS];
142144
bool enable[NMAXCOLS];
143145
wxRect geom[NMAXCOLS]; // filled in by renderer

include/wex/easycurl.h

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class wxEasyCurl : public wxObject {
105105

106106
static void Shutdown();
107107

108-
static void SetApiKeys(const wxString &google_key, const wxString &bing_key, const wxString &developer);
108+
//static void SetApiKeys(const wxString &google_key, const wxString &bing_key, const wxString &developer);
109109

110110
static void SetUrlEscape(const wxString &key, const wxString &value);
111111

@@ -115,21 +115,6 @@ class wxEasyCurl : public wxObject {
115115

116116
static wxArrayString GetProxyAutodetectMessages();
117117

118-
// geocoding function using google APIs.
119-
// call is synchronous. Optionally determine time
120-
// zone from lat/lon using second service call
121-
static bool GeoCodeGoogle(const wxString &address,
122-
double *lat, double *lon, double *tz = 0, bool showprogress = true);
123-
124-
static bool GeoCodeDeveloper(const wxString &address,
125-
double *lat, double *lon, double *tz = 0, bool showprogress = true);
126-
127-
enum MapProvider {
128-
GOOGLE_MAPS, BING_MAPS
129-
};
130-
131-
static wxBitmap StaticMap(double lat, double lon, int zoom, MapProvider service = BING_MAPS);
132-
133118
wxEasyCurl(wxEvtHandler *handler = 0, int id = wxID_ANY);
134119

135120
virtual ~wxEasyCurl();

0 commit comments

Comments
 (0)