Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
9b9d011
Minimal Fix for #5711 - Linux CI: cache /mnt dirs directly instead of…
jmarrec Nov 25, 2026
8298a2e
Linux CI: key ccache on commit SHA / PR branch and save even on failure
jmarrec Nov 25, 2026
4ab0164
Linux CI: save Conan cache right after install instead of at job end
jmarrec Nov 25, 2026
718c287
Disable Clang PCH timestamp so ccache can hit PCH-using TUs
jmarrec Nov 25, 2026
8ff55fe
Windows CI: replace sccache with ccache
jmarrec Nov 25, 2026
ff2ab9c
macOS/Windows CI: check out at workspace root like Linux
jmarrec Nov 25, 2026
d4ba401
macOS/Windows: save conan cache right after install instead of at job…
jmarrec Nov 25, 2026
7045cb7
macOS CI: stop installing BasicTeX
jmarrec Nov 25, 2026
a09e40f
Linux CI: drop the Install CA Certificates step
jmarrec Nov 25, 2026
818aeb1
macOS/Windows CI: drop unused aqtinstall and bundler-cache
jmarrec Nov 25, 2026
3e4fc93
Linux CI: drop the /mnt volume
jmarrec Nov 25, 2026
19c4b86
CI: remove redundant ccache launcher flags, ccache -M, duplicate safe…
jmarrec Nov 25, 2026
eb763e4
CI: drop external-deps and embedded-files caches
jmarrec Nov 25, 2026
9ab036a
CI: show failed tests in the "Fail job on test failures" step (that's…
jmarrec Nov 25, 2026
f86c8e9
Pin clang format to 24.04 so we keep clang format 18: ubuntu-latest m…
jmarrec Nov 25, 2026
50b8da4
[chore] Commit clang-format autocorrects
jmarrec Nov 25, 2026
896aabc
Add clang-format autocorrects to git-blame-ignore-revs
jmarrec Nov 25, 2026
43f23ea
CI: show/zero ccache stats in dedicated steps around the build on all…
jmarrec Nov 25, 2026
5637825
CI: drop "Wait for network stability" steps + reorder
jmarrec Nov 25, 2026
0552060
CI: fail on test failures as the last step on Linux and Windows, like…
jmarrec Nov 25, 2026
12d9f38
macOS CI: use upstream actions/setup-python instead of my fork
jmarrec Nov 25, 2026
28a9813
Linux CI: stop building the pip package on Ubuntu x64
jmarrec Nov 25, 2026
a06d194
macOS CI: drop os.version and readline option from conan install
jmarrec Nov 25, 2026
82e8143
CI: add a setup-conan composite action and use it in Full Build; same…
jmarrec Nov 25, 2026
52346f3
CI: drop "Cleanup intermediate files" steps
jmarrec Nov 25, 2026
0b082c4
CI: let the conanfile.py presets pick the CPack generators
jmarrec Nov 25, 2026
6be4b72
CI: configure all platforms with just the conanfile.py preset
jmarrec Nov 25, 2026
3602d89
CI: only sign and publish on NatLabRockies/OpenStudio
jmarrec Nov 25, 2026
f23fa71
setup-conan: edit the default profile from its own folder
jmarrec Nov 25, 2026
fcdb973
CI: install ccache before restoring its cache on macOS/Windows
jmarrec Nov 25, 2026
1b61363
CI: include .ninja_log in the build-diag artifacts, show C: and D: us…
jmarrec Nov 26, 2026
4bfc70f
Move the build SHA out of OpenStudio.hxx so a new commit doesn't inva…
jmarrec Nov 26, 2026
4636082
CI: skip the CTest steps when the commit message contains [skip tests]
jmarrec Nov 26, 2026
d3f5c3e
CI: set NINJA_STATUS once for all platforms (and add percentage), fix…
jmarrec Nov 26, 2026
79b5915
Add embedded_files targets, to generate just the embedded files (all …
jmarrec Nov 26, 2026
7cc4c82
Generate the embedded files with one command (parallel threads) per e…
jmarrec Nov 26, 2026
b6d6ec3
Speed up cmake configure by 3x: embed_files(): iterate with ZIP_LISTS…
jmarrec Nov 26, 2026
ce6039a
embed_files(): drop the file index from the list, CreateEmbeddedSourc…
jmarrec Nov 26, 2026
a033033
Tests that copy external files: use a directory unique to each test, …
jmarrec Nov 26, 2026
b80e841
gbXML tests: write each test's output to its own file, so they can ru…
jmarrec Nov 26, 2026
28ac9be
CI: replace ctest -T test with --output-junit (Testing/Results.xml, a…
jmarrec Nov 26, 2026
c769640
MeasureFixture: don't wipe the shared scratch dir in SetUpTestSuite, …
jmarrec Nov 26, 2026
caf827d
CI: add a "Flaky tests" warning annotation when tests fail the first …
jmarrec Nov 26, 2026
452aeb3
CI: don't load the Conan build environment in the CTest steps, it onl…
jmarrec Nov 26, 2026
9783ddd
CI: write the steps shared by the Linux, macOS and Windows jobs once …
jmarrec Nov 26, 2026
37e403c
CI: write the CTest step once (YAML anchor in the Linux job) and reus…
jmarrec Nov 26, 2026
4113d43
CI: share the Copy Testing tree, Generate test summary and Fail job o…
jmarrec Nov 26, 2026
f908f4a
CI: name the macOS installer artifacts OS-Installers-<platform>-<type…
jmarrec Nov 26, 2026
3b27717
CI: publish jobs: share the S3 upload script (YAML anchor); Windows d…
jmarrec Nov 26, 2026
67f30c8
Put 3 build jobs first, then 3 publish jobs
jmarrec Nov 26, 2026
5972220
CI: Linux and macOS share one build step, "cmake --build --preset con…
jmarrec Nov 26, 2026
eaa2138
CI: Windows: configure and build with the conan-release presets (cmak…
jmarrec Nov 26, 2026
3a30fb6
CI: build and test with as many jobs as the runner has cores instead …
jmarrec Nov 26, 2026
0390427
CI: drop the max_jobs option: builds use the preset's jobs (no fallba…
jmarrec Nov 26, 2026
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
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,6 @@ ae602de89105983bf762cf1e6afd33d63d81b4a6
# [chore] Org and copyright year updates for OS 311 [David Goldwasser, 2026-01-05]
7a409fb41f6b0602ef2a6a018c9b3d33934571af
3c5a13b05d17ad83bca6ee84ca130b5c1c7f1dda

# [chore] Commit clang-format autocorrects [Julien Marrec, 2026-11-25]
50b8da4eadd3588e3c9bb8a0fdc25f79f0721699
124 changes: 124 additions & 0 deletions .github/actions/setup-conan/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
name: Setup Conan
description: >
Restore the Conan cache, configure the remotes, run conan install, and save the cache right away when the lockfile changed
(so a later build or test failure doesn't lose it). Installs Conan with pip, so Python must already be set up.

inputs:
cache-key-prefix:
description: "Cache key prefix, eg conan-<os>-<platform>. The hash of conan.lock is appended"
required: true
build-folder:
description: "Output folder for conan install"
default: build
build-type:
description: "CMake build type"
default: Release
build-policy:
description: "Value passed to conan install --build to specify what to build from source"
default: missing
config-install:
description: "Optional path passed to 'conan config install' (eg extra profiles)"
default: ""
extra-args:
description: "Extra arguments passed to conan install"
default: ""

outputs:
cache-hit:
description: "Whether the Conan cache was restored from an exact key match"
value: ${{ steps.restore.outputs.cache-hit }}

runs:
using: composite
steps:
- name: Restore Conan cache
id: restore
uses: actions/cache/restore@v6
with:
path: ${{ env.CONAN_HOME || '~/.conan2' }}
key: ${{ inputs.cache-key-prefix }}-${{ hashFiles('conan.lock') }}
restore-keys: |
${{ inputs.cache-key-prefix }}-

- name: Install Conan
shell: bash
run: |
begin_group() { echo -e "::group::\033[93m$1\033[0m"; }

begin_group "Install Conan"
python -m pip install "conan>=2"
conan --version
echo "::endgroup::"

- name: Configure Conan
shell: bash
run: |
begin_group() { echo -e "::group::\033[93m$1\033[0m"; }

begin_group "Conan home"
conan config home
echo "::endgroup::"

begin_group "Default profile"
# Same default profile as jmarrec/conan-recipes upload_deps.yml, so the package IDs match what's on nrel-v2.
# It's used for both the host and build contexts.
conan profile detect --force --name default
CONAN_PROFILES_DIR=$(dirname "$(conan profile path default)")
# On Windows, sed -i creates its temp file in the current directory (D: workspace) and fails to move it to the
# Conan home (C:): "Invalid cross-device link". So run the edits from the profiles directory, in a subshell.
(
cd "$CONAN_PROFILES_DIR"
# Mac has the BSD flavor of sed and MUST take a backup suffix
sed -i.bak 's/cppstd=.*$/cppstd=20/g' default
sed -i.bak 's/build_type=.*$/build_type=${{ inputs.build-type }}/g' default
# Windows only
sed -i.bak 's/compiler.runtime_type=.*$/compiler.runtime_type=${{ inputs.build-type }}/g' default
rm -f default.bak
)
conan profile show
echo "::endgroup::"

begin_group "Global.conf"
# Overwrite (not append): global.conf comes back with the restored cache
CONAN_GLOBAL_CONF="$(conan config home)/global.conf"
echo "core:non_interactive = True" > "$CONAN_GLOBAL_CONF"
echo "core.download:parallel = {{os.cpu_count() - 2}}" >> "$CONAN_GLOBAL_CONF"
cat "$CONAN_GLOBAL_CONF"
echo "::endgroup::"

begin_group "Remotes"
# nrel-v2 first: that's where our prebuilt binaries are
conan remote add --index 0 --force nrel-v2 https://conan.openstudio.net/artifactory/api/conan/conan-v2
conan remote list
echo "::endgroup::"

if [ -n "${{ inputs.config-install }}" ]; then
begin_group "Config install"
conan config install "${{ inputs.config-install }}"
echo "::endgroup::"
fi

- name: Conan install
shell: bash
run: |
begin_group() { echo -e "::group::\033[93m$1\033[0m"; }

begin_group "Conan install"
conan install . \
--output-folder="${{ inputs.build-folder }}" \
--build="${{ inputs.build-policy }}" \
-c tools.cmake.cmaketoolchain:generator=Ninja \
${{ inputs.extra-args }}
echo "::endgroup::"

- name: Clean Conan cache before saving
if: steps.restore.outputs.cache-hit != 'true'
shell: bash
run: conan cache clean "*" --source --build --download --temp

- name: Save Conan cache
if: steps.restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v6
with:
path: ${{ env.CONAN_HOME || '~/.conan2' }}
key: ${{ steps.restore.outputs.cache-primary-key }}
2 changes: 1 addition & 1 deletion .github/workflows/clangformat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
contents: write # Needed to push a commit

Expand Down
Loading
Loading