Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.
C++ 3d3d-sculptingcppdear-imguidigital-sculptingfbxgame-developmentgaussian-splattinggltfimage-to-3dmcpopenglopenusdsculptingtext-to-3dunreal-engine
Flatpak in Packages: compile through the SDK's ccache (SF_FLATPAK_CCACHE=1 in packaging/flatpak/build.sh), cache restored and saved like the other jobs (never from a tag)
islandmeddbb6b2a5c961
diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.ymlindex 66d33595..62eb6aa3 100644--- a/.github/workflows/packages.yml+++ b/.github/workflows/packages.yml@@ -124,8 +124,18 @@ jobs:with: { ref: '${{ env.REF }}' }- name: flatpak and flatpak-builderrun: sudo apt-get update && sudo apt-get install -y flatpak flatpak-builder xvfb- - name: Build the bundle (packaging/flatpak/org.sculptforge.SculptForge.yml)- run: packaging/flatpak/build.sh dist+ - uses: actions/cache/restore@v5+ with:+ path: build-flatpak/state/ccache+ key: ccache-pkg-flatpak-${{ matrix.arch }}.${{ github.sha }}+ restore-keys: ccache-pkg-flatpak-${{ matrix.arch }}.+ - name: Build the bundle (packaging/flatpak/org.sculptforge.SculptForge.yml; the SDK's ccache)+ run: SF_FLATPAK_CCACHE=1 packaging/flatpak/build.sh dist+ - if: env.SAVE_CACHE == 'true'+ uses: actions/cache/save@v5+ with:+ path: build-flatpak/state/ccache+ key: ccache-pkg-flatpak-${{ matrix.arch }}.${{ github.sha }}- name: Install it and run UI tests inside the sandbox (Xvfb, Mesa from the runtime)run: |flatpak install --user -y --noninteractive dist/*.flatpakdiff --git a/packaging/flatpak/build.sh b/packaging/flatpak/build.shindex 42ef4e7f..311ff873 100755--- a/packaging/flatpak/build.sh+++ b/packaging/flatpak/build.sh@@ -19,7 +19,10 @@ work=$root/build-flatpakflatpak --user remote-add --if-not-exists flathub "$flathub"# --disable-rofiles-fuse: CI runners and containers often have no FUSE.-flatpak-builder --user --install-deps-from=flathub --force-clean --disable-rofiles-fuse --default-branch=stable \+# SF_FLATPAK_CCACHE=1: compile through the SDK's ccache, kept in $work/state/ccache (CI restores and saves that folder).+ccache=+[ "${SF_FLATPAK_CCACHE:-}" = 1 ] && ccache=--ccache+flatpak-builder --user --install-deps-from=flathub --force-clean --disable-rofiles-fuse --default-branch=stable $ccache \--state-dir="$work/state" --repo="$work/repo" "$work/app" "$here/$id.yml"bundle="$out/SculptForge-$version-$arch.flatpak"flatpak build-bundle --runtime-repo="$flathub" "$work/repo" "$bundle" "$id" stable