diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index b5ff9aa39..a4609128b 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -38,6 +38,9 @@ on: tests: type: boolean default: false + xml-dump-type-sizes: + type: boolean + default: false gcc-ver: type: string default: "10" @@ -52,7 +55,7 @@ jobs: sudo apt-get update sudo apt-get install ninja-build - name: Install binary build dependencies - if: inputs.platform-files + if: inputs.platform-files || inputs.xml-dump-type-sizes run: | sudo apt-get install \ ccache \ @@ -116,6 +119,7 @@ jobs: -DBUILD_SKELETON:BOOL=${{ inputs.extras }} \ -DBUILD_DOCS:BOOL=${{ inputs.docs }} \ -DBUILD_TESTS:BOOL=${{ inputs.tests }} \ + -DBUILD_XMLDUMP:BOOL=${{ inputs.xml-dump-type-sizes }} \ -DINSTALL_DATA_FILES:BOOL=${{ inputs.common-files }} \ -DINSTALL_SCRIPTS:BOOL=${{ inputs.common-files }} - name: Build DFHack diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 4e385802e..987dfc562 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -20,6 +20,9 @@ on: cache-readonly: type: boolean default: false + platform-files: + type: boolean + default: true common-files: type: boolean default: true @@ -32,6 +35,9 @@ on: tests: type: boolean default: false + xml-dump-type-sizes: + type: boolean + default: false launchdf: type: boolean default: false @@ -75,6 +81,7 @@ jobs: ssh-key: ${{ secrets.DFHACK_3RDPARTY_TOKEN }} path: depends/steam - name: Fetch ccache + if: inputs.platform-files uses: actions/cache/restore@v3 with: path: build/win64-cross/ccache @@ -84,7 +91,7 @@ jobs: win-msvc - name: Cross-compile env: - CMAKE_EXTRA_ARGS: '-DBUILD_STONESENSE:BOOL=${{ inputs.stonesense }} -DBUILD_DOCS:BOOL=${{ inputs.docs }} -DINSTALL_DATA_FILES:BOOL=${{ inputs.common-files }} -DINSTALL_SCRIPTS:BOOL=${{ inputs.common-files }} -DBUILD_DFLAUNCH:BOOL=${{ inputs.launchdf }} -DBUILD_TESTS:BOOL=${{ inputs.tests }}' + CMAKE_EXTRA_ARGS: '-DBUILD_LIBRARY=${{ inputs.platform-files }} -DBUILD_STONESENSE:BOOL=${{ inputs.stonesense }} -DBUILD_DOCS:BOOL=${{ inputs.docs }} -DINSTALL_DATA_FILES:BOOL=${{ inputs.common-files }} -DINSTALL_SCRIPTS:BOOL=${{ inputs.common-files }} -DBUILD_DFLAUNCH:BOOL=${{ inputs.launchdf }} -DBUILD_TESTS:BOOL=${{ inputs.tests }} -DBUILD_XMLDUMP:BOOL=${{ inputs.xml-dump-type-sizes }}' run: | cd build bash -x build-win64-from-linux.sh @@ -95,7 +102,7 @@ jobs: ccache -d win64-cross/ccache --cleanup ccache -d win64-cross/ccache --show-stats --verbose - name: Save ccache - if: '!inputs.cache-readonly' + if: inputs.platform-files && !inputs.cache-readonly uses: actions/cache/save@v3 with: path: build/win64-cross/ccache