From 594e4a297d23b1d36fd06762f8f1382e47f72e4b Mon Sep 17 00:00:00 2001 From: SoftFever Date: Thu, 19 Mar 2026 21:42:57 +0800 Subject: [PATCH] use clang and lld --- .github/workflows/build_all.yml | 5 +++++ .github/workflows/build_deps.yml | 30 +++++++++++++++--------------- .github/workflows/build_orca.yml | 14 +++++++------- scripts/linux.d/debian | 2 ++ 4 files changed, 29 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build_all.yml b/.github/workflows/build_all.yml index 00df244bc4..66ee9af643 100644 --- a/.github/workflows/build_all.yml +++ b/.github/workflows/build_all.yml @@ -134,6 +134,11 @@ jobs: uses: EnricoMi/publish-unit-test-result-action@v2 with: files: "ctest_results.xml" + - name: Delete Test Artifact + if: success() + uses: geekyeggo/delete-artifact@v5 + with: + name: ${{ github.sha }}-tests flatpak: name: "Flatpak" container: diff --git a/.github/workflows/build_deps.yml b/.github/workflows/build_deps.yml index 17127878e3..e025ad6ad8 100644 --- a/.github/workflows/build_deps.yml +++ b/.github/workflows/build_deps.yml @@ -98,7 +98,7 @@ jobs: working-directory: ${{ github.workspace }} run: | mkdir -p ${{ github.workspace }}/deps/build/destdir - ./build_linux.sh -dr + ./build_linux.sh -drlL cd deps/build tar -czvf OrcaSlicer_dep_ubuntu_$(date +"%Y%m%d").tar.gz destdir @@ -111,21 +111,21 @@ jobs: # name: OrcaSlicer_dep_mac_${{ env.date }} # path: ${{ github.workspace }}/deps/build/OrcaSlicer_dep*.tar.gz - - name: Upload Windows artifacts - if: runner.os == 'Windows' - uses: actions/upload-artifact@v6 - with: - name: OrcaSlicer_dep_win64_${{ env.date }} - path: ${{ github.workspace }}/deps/build/OrcaSlicer_dep*.zip + # - name: Upload Windows artifacts + # if: runner.os == 'Windows' + # uses: actions/upload-artifact@v6 + # with: + # name: OrcaSlicer_dep_win64_${{ env.date }} + # path: ${{ github.workspace }}/deps/build/OrcaSlicer_dep*.zip - - name: Upload Ubuntu artifacts - if: runner.os == 'Linux' && !env.ACT - env: - ubuntu-ver: '2404' - uses: actions/upload-artifact@v6 - with: - name: OrcaSlicer_dep_ubuntu_${{ env.ubuntu-ver }}_${{ env.date }} - path: ${{ github.workspace }}/deps/build/OrcaSlicer_dep_ubuntu_*.tar.gz + # - name: Upload Ubuntu artifacts + # if: runner.os == 'Linux' && !env.ACT + # env: + # ubuntu-ver: '2404' + # uses: actions/upload-artifact@v6 + # with: + # name: OrcaSlicer_dep_ubuntu_${{ env.ubuntu-ver }}_${{ env.date }} + # path: ${{ github.workspace }}/deps/build/OrcaSlicer_dep_ubuntu_*.tar.gz build_orca: name: Build OrcaSlicer diff --git a/.github/workflows/build_orca.yml b/.github/workflows/build_orca.yml index 1e35bccedf..99957f4043 100644 --- a/.github/workflows/build_orca.yml +++ b/.github/workflows/build_orca.yml @@ -250,7 +250,7 @@ jobs: path: ${{ github.workspace }}/OrcaSlicer_Mac_universal_${{ env.ver }}.dmg - name: Upload OrcaSlicer_profile_validator DMG mac - if: runner.os == 'macOS' && inputs.macos-combine-only + if: runner.os == 'macOS' && inputs.macos-combine-only && !vars.SELF_HOSTED uses: actions/upload-artifact@v6 with: name: OrcaSlicer_profile_validator_Mac_universal_DMG_${{ env.ver }} @@ -311,7 +311,7 @@ jobs: run: '"C:/Program Files/7-Zip/7z.exe" a -tzip OrcaSlicer_Windows_${{ env.ver }}_portable.zip ${{ github.workspace }}/build/OrcaSlicer' - name: Pack PDB - if: runner.os == 'Windows' + if: runner.os == 'Windows' && !vars.SELF_HOSTED working-directory: ${{ github.workspace }}/build/src/Release shell: cmd run: '"C:/Program Files/7-Zip/7z.exe" a -m0=lzma2 -mx9 Debug_PDB_${{ env.ver }}_for_developers_only.7z *.pdb' @@ -331,14 +331,14 @@ jobs: path: ${{ github.workspace }}/build/OrcaSlicer*.exe - name: Upload artifacts Win PDB - if: runner.os == 'Windows' + if: runner.os == 'Windows' && !vars.SELF_HOSTED uses: actions/upload-artifact@v6 with: name: PDB path: ${{ github.workspace }}/build/src/Release/Debug_PDB_${{ env.ver }}_for_developers_only.7z - name: Upload OrcaSlicer_profile_validator Win - if: runner.os == 'Windows' + if: runner.os == 'Windows' && !vars.SELF_HOSTED uses: actions/upload-artifact@v6 with: name: OrcaSlicer_profile_validator_Windows_${{ env.ver }} @@ -388,7 +388,7 @@ jobs: if: runner.os == 'Linux' shell: bash run: | - ./build_linux.sh -istr + ./build_linux.sh -istrlL mv -n ./build/OrcaSlicer_Linux_V${{ env.ver_pure }}.AppImage ./build/OrcaSlicer_Linux_AppImage${{ env.ubuntu-ver-str }}_${{ env.ver }}.AppImage chmod +x ./build/OrcaSlicer_Linux_AppImage${{ env.ubuntu-ver-str }}_${{ env.ver }}.AppImage tar -cvpf build_tests.tar build/tests @@ -406,7 +406,7 @@ jobs: if-no-files-found: error - name: Build orca_custom_preset_tests - if: github.ref == 'refs/heads/main' && runner.os == 'Linux' + if: github.ref == 'refs/heads/main' && runner.os == 'Linux' && !vars.SELF_HOSTED working-directory: ${{ github.workspace }}/build/src/Release shell: bash run: | @@ -422,7 +422,7 @@ jobs: path: './build/OrcaSlicer_Linux_AppImage${{ env.ubuntu-ver-str }}_${{ env.ver }}.AppImage' - name: Upload OrcaSlicer_profile_validator Ubuntu - if: ${{ ! env.ACT && runner.os == 'Linux' }} + if: ${{ ! env.ACT && runner.os == 'Linux' && !vars.SELF_HOSTED }} uses: actions/upload-artifact@v6 with: name: OrcaSlicer_profile_validator_Linux_ubuntu_${{ env.ubuntu-ver }}_${{ env.ver }} diff --git a/scripts/linux.d/debian b/scripts/linux.d/debian index 53e4ee5fa5..b3169718c8 100644 --- a/scripts/linux.d/debian +++ b/scripts/linux.d/debian @@ -21,6 +21,8 @@ REQUIRED_DEV_PACKAGES=( libssl-dev libtool libudev-dev + clang + lld ninja-build texinfo wget