Skip to content

Commit d5f6edf

Browse files
committed
Merge main.
2 parents 5755f62 + eb79054 commit d5f6edf

File tree

317 files changed

+49435
-561176
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

317 files changed

+49435
-561176
lines changed

.github/actions/build-cse/action.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/actions/build-docs/action.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/actions/download-cse-artifact/action.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/workflows/build-and-test.yml

Lines changed: 12 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -53,31 +53,23 @@ jobs:
5353
- name: Get number of CPU cores # Can replace when CMake is upgraded to 3.29
5454
uses: SimenB/github-actions-cpu-cores@v2
5555
id: cpu-cores
56-
- name: Install uv
56+
# - name: Setup Mesa3D
57+
# uses: bigladder/github-actions/setup-mesa3d@main
58+
# with:
59+
# install-directory: msvc
60+
- name: Install uv and set the python version
5761
uses: astral-sh/setup-uv@v5
5862
with:
5963
python-version: "3.13"
6064
- name: Build CSE
61-
uses: ./.github/actions/build-cse
62-
with:
63-
arch: ${{ matrix.arch }}
64-
config: ${{ matrix.config }}
65-
compiler: ${{ matrix.compiler }}
66-
- name: Build cse_tests.exe (unit tests)
67-
run: cmake -DBUILD_ARCHITECTURE=${{ matrix.arch }} -DCONFIGURATION=${{ matrix.config }} -DTARGET_NAME=cse_tests -DBUILD_DIRECTORY=build -P cmake/build.cmake
65+
run: cmake -DBUILD_ARCHITECTURE=${{ matrix.arch }} -DCOMPILER_ID=${{ matrix.compiler }} -DCONFIGURATION=${{ matrix.config }} -DBUILD_DIRECTORY=build -DBUILD_DOCS_WITH_ALL=ON -P cmake/configure-and-build.cmake
6866
- name: Upload executable artifact
6967
uses: actions/upload-artifact@v4
7068
with:
71-
name: CSE_${{ matrix.os }}-${{ matrix.os_ver }}-${{ matrix.arch }}bit_${{ matrix.config }}
69+
name: CSE-${{ matrix.os }}-${{ matrix.os_ver }}-${{ matrix.arch }}bit-${{ matrix.config }}
7270
path: |
7371
build/CSE*
7472
build/cse*
75-
- name: Build wcmp executable
76-
run: cmake -DBUILD_ARCHITECTURE=${{ matrix.arch }} -DCONFIGURATION=${{ matrix.config }} -DTARGET_NAME=wcmp -DBUILD_DIRECTORY=build -P cmake/build.cmake
77-
# - name: Setup Mesa3D
78-
# uses: bigladder/github-actions/setup-mesa3d@main
79-
# with:
80-
# install-directory: msvc
8173
- name: Test
8274
id: test
8375
run: ctest -C ${{ matrix.config }} -j ${{ steps.cpu-cores.outputs.count }} --output-on-failure -E shadetest # CI can't do GPU calcs at this time (the steps above get us close, but throws an exception on destruction)
@@ -91,39 +83,12 @@ jobs:
9183
path: |
9284
test/*.rep
9385
test/*.REP
94-
- name: Check test failure
95-
if: steps.test.outcome == 'failure'
96-
run: exit 1
97-
build-doc:
98-
strategy:
99-
fail-fast: false
100-
name: Build CSE documentation
101-
needs: build-cse
102-
if: ${{ always() }}
103-
runs-on: windows-2022
104-
steps:
105-
- name: Checkout
106-
uses: actions/checkout@v4
107-
- name: Install uv
108-
uses: astral-sh/setup-uv@v5
109-
with:
110-
enable-cache: false
111-
python-version: "3.13"
112-
- name: Configure CMake
113-
run: cmake -P cmake/configure.cmake
114-
- name: Download CSE artifact
115-
uses: ./.github/actions/download-cse-artifact
116-
- name: Build docs
117-
uses: ./.github/actions/build-docs
118-
- name: Run coverage check
119-
run: rake coverage
120-
working-directory: doc
121-
env:
122-
CSE_EXE_PATH: ..\\build\\CSE.exe
12386
- name: Upload documentation
12487
uses: actions/upload-artifact@v4
12588
with:
126-
name: Documentation
89+
name: Documentation-${{ matrix.os }}-${{ matrix.os_ver }}-${{ matrix.arch }}
12790
path: |
128-
doc/output
129-
!doc/output/.git
91+
doc/build
92+
- name: Check test failure
93+
if: steps.test.outcome == 'failure'
94+
run: exit 1

.github/workflows/release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,21 @@ jobs:
1818
with:
1919
fetch-depth: 0
2020
submodules: recursive
21+
- name: Install uv and set the python version
22+
uses: astral-sh/setup-uv@v5
23+
with:
24+
python-version: "3.13"
2125
- name: Build CSE
22-
uses: ./.github/actions/build-cse
26+
run: cmake -DBUILD_ARCHITECTURE=32 -DCOMPILER_ID=msvc -DCONFIGURATION=Release -DBUILD_DIRECTORY=build -DBUILD_DOCS_WITH_ALL=ON -P cmake/configure-and-build.cmake
2327
- name: Upload executable to release assets
2428
uses: softprops/action-gh-release@v2
2529
with:
2630
files: build/CSE.exe
27-
- name: Build docs
28-
uses: ./.github/actions/build-docs
2931
- name: Update gh-pages
3032
uses: peaceiris/actions-gh-pages@v3
3133
with:
3234
github_token: ${{ secrets.GITHUB_TOKEN }}
33-
publish_dir: doc/output
35+
publish_dir: doc/build
3436
user_name: 'cse-ci'
3537
user_email: '[email protected]'
3638
full_commit_message: "Update docs for ${{ github.event.release.tag_name }}."

.pre-commit-config.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
repos:
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
# Ruff version.
4+
rev: v0.9.9
5+
hooks:
6+
# Run the formatter (automatically fixes in-place)
7+
- id: ruff-format
8+
# Run the linter
9+
- id: ruff
10+
args: [ --fix ]
11+
- repo: local
12+
hooks:
13+
- id: mypy
14+
name: mypy
15+
entry: uv run mypy
16+
require_serial: true
17+
language: system
18+
types: [python]

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.13

CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,16 @@ set_directory_properties(PROPERTIES VS_STARTUP_PROJECT CSE)
9292
enable_testing()
9393

9494
add_subdirectory(test)
95+
96+
# Documentation
97+
set(cse_documentation_build_options "DoNotBuild;BuildWithAll;BuildSeparately")
98+
set(CSE_BUILD_DOCUMENTATION "BuildSeparately" CACHE STRING "Choose when/if to build documentation (${cse_documentation_build_options}).")
99+
set_property(CACHE CSE_BUILD_DOCUMENTATION PROPERTY STRINGS ${cse_documentation_build_options})
100+
101+
if(NOT CSE_BUILD_DOCUMENTATION IN_LIST cse_documentation_build_options)
102+
message(FATAL_ERROR "CSE_BUILD_DOCUMENTATION must be one of ${cse_documentation_build_options}")
103+
endif()
104+
105+
if(NOT CSE_BUILD_DOCUMENTATION STREQUAL "DoNotBuild")
106+
add_subdirectory(doc)
107+
endif()

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ CSE is a general purpose building simulation model developed primarily to perfor
88

99
The CSE User Manual can be found on the [CSE Documentation Web Site](https://cse-sim.github.io/cse):
1010

11-
- [HTML Format](https://cse-sim.github.io/cse/cse-user-manual.html) (single page)
12-
- [HTML Format](https://cse-sim.github.io/cse/cse-user-manual/index.html) (multi page)
11+
- [HTML Format](https://cse-sim.github.io/cse/single_page/) (single page)
12+
- [HTML Format](https://cse-sim.github.io/cse/introduction/) (multi page)
1313

1414
### Issues and Issue Reporting
1515

cmake/CSEVersion.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ if (GIT_TAG MATCHES "^v[0-9]+\\.[0-9]+\\.[0-9]+(\\-[0-9A-Za-z-]+)?$")
4545
string(REGEX REPLACE "^v[0-9]+\\.[0-9]+\\.([0-9]+)(\\-[0-9A-Za-z-]+)?$" "\\1" CSEVRSN_PATCH "${GIT_TAG}")
4646
if (GIT_TAG MATCHES "^v[0-9]+\\.[0-9]+\\.[0-9]+(\\-[0-9A-Za-z-]+)$")
4747
string(REGEX REPLACE "^v[0-9]+\\.[0-9]+\\.[0-9]+(\\-[0-9A-Za-z-]+)$" "\\1" CSEVRSN_PRERELEASE "${GIT_TAG}")
48-
message(STATUS "CSEVRSN_PRERELEASE is ${CSEVRSN_PRERELEASE}")
4948
endif()
5049
elseif(GIT_TAG MATCHES "^cse\\.[0-9]+$")
5150
# old version scheme

0 commit comments

Comments
 (0)