Skip to content

Commit c2f6056

Browse files
committed
Merge main.
2 parents 2b15a2a + 6713227 commit c2f6056

File tree

304 files changed

+46014
-438920
lines changed

Some content is hidden

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

304 files changed

+46014
-438920
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: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,19 @@ jobs:
7878
# uses: bigladder/github-actions/setup-mesa3d@main
7979
# with:
8080
# install-directory: msvc
81+
- name: Install uv and set the python version
82+
uses: astral-sh/setup-uv@v5
83+
with:
84+
python-version: "3.13"
85+
- name: Build CSE
86+
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
87+
- name: Upload executable artifact
88+
uses: actions/upload-artifact@v4
89+
with:
90+
name: CSE-${{ matrix.os }}-${{ matrix.os_ver }}-${{ matrix.arch }}bit-${{ matrix.config }}
91+
path: |
92+
build/CSE*
93+
build/cse*
8194
- name: Test
8295
id: test
8396
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,34 +104,12 @@ jobs:
91104
path: |
92105
test/*.rep
93106
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: Configure CMake
108-
run: cmake -P cmake/configure.cmake
109-
- name: Download CSE artifact
110-
uses: ./.github/actions/download-cse-artifact
111-
- name: Build docs
112-
uses: ./.github/actions/build-docs
113-
- name: Run coverage check
114-
run: rake coverage
115-
working-directory: doc
116-
env:
117-
CSE_EXE_PATH: ..\\build\\CSE.exe
118107
- name: Upload documentation
119108
uses: actions/upload-artifact@v4
120109
with:
121-
name: Documentation
110+
name: Documentation-${{ matrix.os }}-${{ matrix.os_ver }}-${{ matrix.arch }}
122111
path: |
123-
doc/output
124-
!doc/output/.git
112+
doc/build
113+
- name: Check test failure
114+
if: steps.test.outcome == 'failure'
115+
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)