From 050bd2f459f7d287c4bfbf745d9743e021507bd0 Mon Sep 17 00:00:00 2001 From: Alesandro Dragnev Date: Wed, 16 Sep 2026 14:29:37 +0300 Subject: [PATCH 1/3] Add github caching --- .github/actions/build-macos/action.yml | 13 +++++++++++++ .github/actions/build-ubuntu/action.yml | 9 +++++++++ .github/actions/build-windows/action.yml | 16 ++++++++++++++++ 3 files changed, 38 insertions(+) diff --git a/.github/actions/build-macos/action.yml b/.github/actions/build-macos/action.yml index cda7ec13..b21aad3c 100644 --- a/.github/actions/build-macos/action.yml +++ b/.github/actions/build-macos/action.yml @@ -3,7 +3,17 @@ description: 'Build ths packages for MACOS package' runs: using: "composite" steps: + - name: Xerces-C - cache + id: cache-xerces + uses: actions/cache@v4 + with: + path: | + xerces-c/_build_mac_arm + xerces-c/_build_mac_x64 + key: xerces-c-${{ runner.os }}-${{ hashFiles('libMvrGdtf/.github/actions/build-macos/action.yml') }} + - name: Xerces-C - prepare + if: steps.cache-xerces.outputs.cache-hit != 'true' shell: bash run: | mkdir xerces-c @@ -12,6 +22,7 @@ runs: tar -xf xerces-c.zip --strip-components=1 - name: Xerces-C - build arm64 + if: steps.cache-xerces.outputs.cache-hit != 'true' shell: bash working-directory: xerces-c run: | @@ -20,6 +31,7 @@ runs: make install - name: Xerces-C - build x64 + if: steps.cache-xerces.outputs.cache-hit != 'true' shell: bash working-directory: xerces-c run: | @@ -28,6 +40,7 @@ runs: make install - name: Xerces-C - lipo arm/x64 + if: steps.cache-xerces.outputs.cache-hit != 'true' shell: bash working-directory: xerces-c run: lipo _build_mac_arm/lib/libxerces-c.a _build_mac_x64/lib/libxerces-c.a -create -output _build_mac_x64/lib/libxerces-c-all.a diff --git a/.github/actions/build-ubuntu/action.yml b/.github/actions/build-ubuntu/action.yml index 183da6d5..ebb67bab 100644 --- a/.github/actions/build-ubuntu/action.yml +++ b/.github/actions/build-ubuntu/action.yml @@ -19,7 +19,15 @@ runs: sudo apt-get install -y cmake sudo apt-get install -y uuid-dev + - name: Xerces-C - cache + id: cache-xerces + uses: actions/cache@v4 + with: + path: xerces-c/_build + key: xerces-c-${{ runner.os }}-${{ hashFiles('libMvrGdtf/.github/actions/build-ubuntu/action.yml') }} + - name: Xerces-C - prepare + if: steps.cache-xerces.outputs.cache-hit != 'true' shell: bash run: | mkdir xerces-c @@ -29,6 +37,7 @@ runs: # libMVRGdtf expects XMLChar be uint16_t - name: Xerces-C - build + if: steps.cache-xerces.outputs.cache-hit != 'true' shell: bash working-directory: xerces-c run: | diff --git a/.github/actions/build-windows/action.yml b/.github/actions/build-windows/action.yml index a3f23e8e..b9907fae 100644 --- a/.github/actions/build-windows/action.yml +++ b/.github/actions/build-windows/action.yml @@ -11,7 +11,17 @@ runs: # -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- # Xerces-C - setup + - name: Xerces-C - cache + id: cache-xerces + uses: actions/cache@v4 + with: + path: | + xerces-c/build/libs + xerces-c/build_mt/libs + key: xerces-c-${{ runner.os }}-${{ hashFiles('libMvrGdtf/.github/actions/build-windows/action.yml') }} + - name: Xerces-C - prepare + if: steps.cache-xerces.outputs.cache-hit != 'true' shell: cmd run: | mkdir xerces-c @@ -21,6 +31,7 @@ runs: # Xerces-C - build MD - name: Xerces-C - configure + if: steps.cache-xerces.outputs.cache-hit != 'true' working-directory: xerces-c shell: cmd run: | @@ -29,6 +40,7 @@ runs: cmake .. -G "Visual Studio 17 2022" -A x64 -T v142,version=14.29 -DCMAKE_INSTALL_PREFIX:PATH=libs -DCMAKE_CXX_FLAGS="/DWIN32 /D_WINDOWS -O2 -Ob2 -DNDEBUG" -DCMAKE_C_FLAGS="/DWIN32 /D_WINDOWS /W3" -DBUILD_SHARED_LIBS:BOOL=FALSE -Dxmlch-type=wchar_t - name: Xerces-C - build MinSizeRel + if: steps.cache-xerces.outputs.cache-hit != 'true' working-directory: xerces-c/build shell: cmd run: | @@ -36,6 +48,7 @@ runs: msbuild /m INSTALL.vcxproj /p:Configuration=MinSizeRel - name: Xerces-C - build Debug + if: steps.cache-xerces.outputs.cache-hit != 'true' working-directory: xerces-c/build shell: cmd run: | @@ -44,6 +57,7 @@ runs: # Xerces-C - build MT - name: Xerces-C - configure [MT] + if: steps.cache-xerces.outputs.cache-hit != 'true' working-directory: xerces-c shell: cmd run: | @@ -52,6 +66,7 @@ runs: cmake .. -G "Visual Studio 17 2022" -A x64 -T v142,version=14.29 -DCMAKE_INSTALL_PREFIX:PATH=libs -DCMAKE_CXX_FLAGS_DEBUG="/MTd /Zi /Ob0 /Od /RTC1" -DCMAKE_CXX_FLAGS_MINSIZEREL="/MT /O1 /Ob1 /DNDEBUG" -DCMAKE_C_FLAGS_DEBUG="/MTd /Zi /Ob0 /Od /RTC1" -DCMAKE_C_FLAGS_MINSIZEREL="/MT /O1 /Ob1 /DNDEBUG" -DCMAKE_C_FLAGS="/DWIN32 /D_WINDOWS /W3" -DBUILD_SHARED_LIBS:BOOL=FALSE -Dxmlch-type=wchar_t - name: Xerces-C - build MinSizeRel [MT] + if: steps.cache-xerces.outputs.cache-hit != 'true' working-directory: xerces-c/build_mt shell: cmd run: | @@ -59,6 +74,7 @@ runs: msbuild /m INSTALL.vcxproj /p:Configuration=MinSizeRel - name: Xerces-C - build Debug [MT] + if: steps.cache-xerces.outputs.cache-hit != 'true' working-directory: xerces-c/build_mt shell: cmd run: | From b3d549bb42e7d9a66bb972041b4207cb6b5ac276 Mon Sep 17 00:00:00 2001 From: Alesandro Dragnev Date: Wed, 16 Sep 2026 14:54:27 +0300 Subject: [PATCH 2/3] Adding boost cache --- .github/actions/build-macos/action.yml | 8 ++++++++ .github/actions/build-windows/action.yml | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/.github/actions/build-macos/action.yml b/.github/actions/build-macos/action.yml index b21aad3c..e256e671 100644 --- a/.github/actions/build-macos/action.yml +++ b/.github/actions/build-macos/action.yml @@ -45,7 +45,15 @@ runs: working-directory: xerces-c run: lipo _build_mac_arm/lib/libxerces-c.a _build_mac_x64/lib/libxerces-c.a -create -output _build_mac_x64/lib/libxerces-c-all.a + - name: Boost - cache + id: cache-boost + uses: actions/cache@v4 + with: + path: boost + key: boost-${{ runner.os }}-${{ hashFiles('libMvrGdtf/.github/actions/build-macos/action.yml') }} + - name: Boost - prepare + if: steps.cache-boost.outputs.cache-hit != 'true' shell: bash run: | mkdir boost diff --git a/.github/actions/build-windows/action.yml b/.github/actions/build-windows/action.yml index b9907fae..8766c925 100644 --- a/.github/actions/build-windows/action.yml +++ b/.github/actions/build-windows/action.yml @@ -83,7 +83,15 @@ runs: # -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- # Boost - setup and build + - name: Boost - cache + id: cache-boost + uses: actions/cache@v4 + with: + path: boost + key: boost-${{ runner.os }}-${{ hashFiles('libMvrGdtf/.github/actions/build-windows/action.yml') }} + - name: Boost - prepare + if: steps.cache-boost.outputs.cache-hit != 'true' shell: cmd run: | mkdir boost From 49241dc8565e15ac7b3ce1ecf3011e745ae88ec9 Mon Sep 17 00:00:00 2001 From: Alesandro Dragnev Date: Thu, 17 Sep 2026 17:31:54 +0300 Subject: [PATCH 3/3] Removing it from ubuntu build --- .github/actions/build-ubuntu/action.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.github/actions/build-ubuntu/action.yml b/.github/actions/build-ubuntu/action.yml index ebb67bab..183da6d5 100644 --- a/.github/actions/build-ubuntu/action.yml +++ b/.github/actions/build-ubuntu/action.yml @@ -19,15 +19,7 @@ runs: sudo apt-get install -y cmake sudo apt-get install -y uuid-dev - - name: Xerces-C - cache - id: cache-xerces - uses: actions/cache@v4 - with: - path: xerces-c/_build - key: xerces-c-${{ runner.os }}-${{ hashFiles('libMvrGdtf/.github/actions/build-ubuntu/action.yml') }} - - name: Xerces-C - prepare - if: steps.cache-xerces.outputs.cache-hit != 'true' shell: bash run: | mkdir xerces-c @@ -37,7 +29,6 @@ runs: # libMVRGdtf expects XMLChar be uint16_t - name: Xerces-C - build - if: steps.cache-xerces.outputs.cache-hit != 'true' shell: bash working-directory: xerces-c run: |