mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
Rebase on main
This commit is contained in:
22
.github/workflows/build_all.yml
vendored
22
.github/workflows/build_all.yml
vendored
@@ -48,13 +48,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-20.04
|
- os: ubuntu-20.04
|
||||||
arch: x86_64
|
|
||||||
- os: ubuntu-20.04
|
|
||||||
arch: aarch64
|
|
||||||
- os: ubuntu-24.04
|
- os: ubuntu-24.04
|
||||||
arch: x86_64
|
|
||||||
- os: ubuntu-24.04
|
|
||||||
arch: aarch64
|
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
- os: macos-14
|
- os: macos-14
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
@@ -68,15 +62,7 @@ jobs:
|
|||||||
secrets: inherit
|
secrets: inherit
|
||||||
flatpak:
|
flatpak:
|
||||||
name: "Flatpak"
|
name: "Flatpak"
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- os: ubuntu-latest
|
|
||||||
arch: x86_64
|
|
||||||
- os: ubuntu-latest
|
|
||||||
arch: aarch64
|
|
||||||
fail-fast: false
|
|
||||||
env:
|
env:
|
||||||
date:
|
date:
|
||||||
ver:
|
ver:
|
||||||
@@ -106,15 +92,15 @@ jobs:
|
|||||||
echo "ver_pure=$ver_pure" >> $GITHUB_ENV
|
echo "ver_pure=$ver_pure" >> $GITHUB_ENV
|
||||||
echo "date=$(date +'%Y%m%d')" >> $GITHUB_ENV
|
echo "date=$(date +'%Y%m%d')" >> $GITHUB_ENV
|
||||||
shell: bash
|
shell: bash
|
||||||
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
|
- uses: flatpak/flatpak-github-actions/flatpak-builder@master
|
||||||
with:
|
with:
|
||||||
bundle: OrcaSlicer-Linux-flatpak_${{ env.ver }}.flatpak
|
bundle: OrcaSlicer-Linux-flatpak_${{ env.ver }}.flatpak
|
||||||
manifest-path: flatpak/io.github.softfever.OrcaSlicer.yml
|
manifest-path: flatpak/io.github.softfever.OrcaSlicer.yml
|
||||||
cache: true
|
cache: true
|
||||||
arch: ${{ matrix.arch }}
|
upload-artifact: false
|
||||||
- name: Deploy Flatpak to nightly release
|
- name: Deploy Flatpak to nightly release
|
||||||
if: ${{github.ref == 'refs/heads/main'}}
|
if: ${{github.ref == 'refs/heads/main'}}
|
||||||
uses: WebFreak001/deploy-nightly@v3.1.0
|
uses: WebFreak001/deploy-nightly@v3.2.0
|
||||||
with:
|
with:
|
||||||
upload_url: https://uploads.github.com/repos/SoftFever/OrcaSlicer/releases/137995723/assets{?name,label}
|
upload_url: https://uploads.github.com/repos/SoftFever/OrcaSlicer/releases/137995723/assets{?name,label}
|
||||||
release_id: 137995723
|
release_id: 137995723
|
||||||
|
|||||||
2
.github/workflows/build_check_cache.yml
vendored
2
.github/workflows/build_check_cache.yml
vendored
@@ -31,7 +31,7 @@ jobs:
|
|||||||
id: set_outputs
|
id: set_outputs
|
||||||
env:
|
env:
|
||||||
underscore-arch: ${{ inputs.os == 'macos-14' && '_' || ''}}${{ inputs.os == 'macos-14' && inputs.arch || '' }} # if is macos, make a string that does "_{arch}", else output nothing
|
underscore-arch: ${{ inputs.os == 'macos-14' && '_' || ''}}${{ inputs.os == 'macos-14' && inputs.arch || '' }} # if is macos, make a string that does "_{arch}", else output nothing
|
||||||
dash-arch: ${{ inputs.os == 'macos-14' && '-' || '' }}${{ inputs.os == 'macos-14' && inputs.arch || '' }} # if is macos, make a string that does "-{arch}", else output nothing
|
dash-arch: ${{ inputs.os == 'macos-14' && '-' || ''}}${{ inputs.os == 'macos-14' && inputs.arch || '' }} # if is macos, make a string that does "-{arch}", else output nothing
|
||||||
dep-folder-name: ${{ (inputs.os == 'windows-latest' || inputs.os == 'macos-14') && 'OrcaSlicer_dep' || 'destdir' }}
|
dep-folder-name: ${{ (inputs.os == 'windows-latest' || inputs.os == 'macos-14') && 'OrcaSlicer_dep' || 'destdir' }}
|
||||||
output-cmd: ${{ inputs.os == 'windows-latest' && '$env:GITHUB_OUTPUT' || '"$GITHUB_OUTPUT"'}}
|
output-cmd: ${{ inputs.os == 'windows-latest' && '$env:GITHUB_OUTPUT' || '"$GITHUB_OUTPUT"'}}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
47
.github/workflows/build_deps.yml
vendored
47
.github/workflows/build_deps.yml
vendored
@@ -66,8 +66,6 @@ jobs:
|
|||||||
working-directory: ${{ github.workspace }}
|
working-directory: ${{ github.workspace }}
|
||||||
run: |
|
run: |
|
||||||
choco install strawberryperl
|
choco install strawberryperl
|
||||||
mkdir ${{ github.workspace }}/deps/build
|
|
||||||
mkdir ${{ github.workspace }}/deps/build/OrcaSlicer_dep
|
|
||||||
.\build_release_vs2022.bat deps
|
.\build_release_vs2022.bat deps
|
||||||
.\build_release_vs2022.bat pack
|
.\build_release_vs2022.bat pack
|
||||||
cd ${{ github.workspace }}/deps/build
|
cd ${{ github.workspace }}/deps/build
|
||||||
@@ -84,9 +82,9 @@ jobs:
|
|||||||
./build_release_macos.sh -dpx -a ${{ inputs.arch }} -t 10.15 -1
|
./build_release_macos.sh -dpx -a ${{ inputs.arch }} -t 10.15 -1
|
||||||
brew install zstd
|
brew install zstd
|
||||||
|
|
||||||
# Note for later: may need libtool and libpng++-dev dependencies for arm builds
|
|
||||||
- name: Install Ubuntu ${{ inputs.arch }} Build Dependencies
|
- name: Install Ubuntu Build Dependencies
|
||||||
if: inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04' && inputs.arch == 'x86_64'
|
if: inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04'
|
||||||
working-directory: ${{ github.workspace }}
|
working-directory: ${{ github.workspace }}
|
||||||
env:
|
env:
|
||||||
apt-cmd: ${{ (inputs.os == 'ubuntu-20.04' && 'apt-fast') || (inputs.os == 'ubuntu-24.04' && 'sudo apt-get') || '' }}
|
apt-cmd: ${{ (inputs.os == 'ubuntu-20.04' && 'apt-fast') || (inputs.os == 'ubuntu-24.04' && 'sudo apt-get') || '' }}
|
||||||
@@ -99,44 +97,17 @@ jobs:
|
|||||||
libgstreamer1.0-dev libgstreamer-plugins-good1.0-dev libgstreamer-plugins-base1.0-dev \
|
libgstreamer1.0-dev libgstreamer-plugins-good1.0-dev libgstreamer-plugins-base1.0-dev \
|
||||||
gstreamer1.0-plugins-bad libosmesa6-dev wget sudo autoconf curl libunwind-dev texinfo
|
gstreamer1.0-plugins-bad libosmesa6-dev wget sudo autoconf curl libunwind-dev texinfo
|
||||||
|
|
||||||
- name: Install Ubuntu ${{ inputs.arch }} Build Dependencies
|
- name: Build on Ubuntu
|
||||||
if: inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04' && inputs.arch == 'aarch64'
|
if: inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04'
|
||||||
working-directory: ${{ github.workspace }}
|
|
||||||
env:
|
|
||||||
apt-cmd: ${{ (inputs.os == 'ubuntu-20.04' && 'apt-fast') || (inputs.os == 'ubuntu-24.04' && 'sudo apt-get') || '' }}
|
|
||||||
webkit-ver: ${{ (inputs.os == 'ubuntu-20.04' && '4.0') || (inputs.os == 'ubuntu-24.04' && '4.1') || '' }}
|
|
||||||
run: |
|
|
||||||
${{ env.apt-cmd }} update
|
|
||||||
${{ env.apt-cmd }} install -y cmake git g++ build-essential libgl1-mesa-dev m4 \
|
|
||||||
libwayland-dev libxkbcommon-dev wayland-protocols extra-cmake-modules pkgconf \
|
|
||||||
libglu1-mesa-dev libcairo2-dev libgtk-3-dev libsoup2.4-dev libwebkit2gtk-${{ env.webkit-ver }}-dev \
|
|
||||||
libgstreamer1.0-dev libgstreamer-plugins-good1.0-dev libgstreamer-plugins-base1.0-dev \
|
|
||||||
gstreamer1.0-plugins-bad libosmesa6-dev wget sudo autoconf curl libunwind-dev texinfo
|
|
||||||
|
|
||||||
|
|
||||||
- name: Build on Ubuntu ${{ inputs.arch }}
|
|
||||||
if: inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04' && inputs.arch == 'x86_64'
|
|
||||||
working-directory: ${{ github.workspace }}
|
working-directory: ${{ github.workspace }}
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ${{ github.workspace }}/deps/build_${{ inputs.arch }}
|
mkdir -p ${{ github.workspace }}/deps/build
|
||||||
mkdir -p ${{ github.workspace }}/deps/build_${{ inputs.arch }}/destdir
|
mkdir -p ${{ github.workspace }}/deps/build/destdir
|
||||||
sudo ./BuildLinux.sh -ur
|
sudo ./BuildLinux.sh -ur
|
||||||
sudo chown $USER -R ./
|
sudo chown $USER -R ./
|
||||||
./BuildLinux.sh -dr
|
./BuildLinux.sh -dr
|
||||||
cd deps/build_${{ inputs.arch }}
|
cd deps/build
|
||||||
tar -czvf OrcaSlicer_dep_ubuntu_$(date +"%Y%m%d")_${{ inputs.arch }}.tar.gz destdir
|
tar -czvf OrcaSlicer_dep_ubuntu_$(date +"%Y%m%d").tar.gz destdir
|
||||||
|
|
||||||
- name: Build on Ubuntu ${{ inputs.arch }}
|
|
||||||
if: inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04' && inputs.arch == 'aarch64'
|
|
||||||
working-directory: ${{ github.workspace }}
|
|
||||||
run: |
|
|
||||||
mkdir -p ${{ github.workspace }}/deps/build_${{ inputs.arch }}
|
|
||||||
mkdir -p ${{ github.workspace }}/deps/build_${{ inputs.arch }}/destdir
|
|
||||||
sudo ./BuildLinux.sh -ur
|
|
||||||
sudo chown $USER -R ./
|
|
||||||
./BuildLinux.sh -dr
|
|
||||||
cd deps/build_${{ inputs.arch }}
|
|
||||||
tar -czvf OrcaSlicer_dep_ubuntu_$(date +"%Y%m%d")_${{ inputs.arch }}.tar.gz destdir
|
|
||||||
|
|
||||||
|
|
||||||
# Upload Artifacts
|
# Upload Artifacts
|
||||||
|
|||||||
38
.github/workflows/build_orca.yml
vendored
38
.github/workflows/build_orca.yml
vendored
@@ -143,7 +143,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy Mac release
|
- name: Deploy Mac release
|
||||||
if: github.ref == 'refs/heads/main' && inputs.os == 'macos-14'
|
if: github.ref == 'refs/heads/main' && inputs.os == 'macos-14'
|
||||||
uses: WebFreak001/deploy-nightly@v3.1.0
|
uses: WebFreak001/deploy-nightly@v3.2.0
|
||||||
with:
|
with:
|
||||||
upload_url: https://uploads.github.com/repos/SoftFever/OrcaSlicer/releases/137995723/assets{?name,label}
|
upload_url: https://uploads.github.com/repos/SoftFever/OrcaSlicer/releases/137995723/assets{?name,label}
|
||||||
release_id: 137995723
|
release_id: 137995723
|
||||||
@@ -194,7 +194,7 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: OrcaSlicer_Windows_${{ env.ver }}_portable
|
name: OrcaSlicer_Windows_${{ env.ver }}_portable
|
||||||
path: ${{ github.workspace }}/build/OrcaSlicer_Windows_${{ env.ver }}_portable.zip
|
path: ${{ github.workspace }}/build/OrcaSlicer
|
||||||
|
|
||||||
- name: Upload artifacts Win installer
|
- name: Upload artifacts Win installer
|
||||||
if: inputs.os == 'windows-latest'
|
if: inputs.os == 'windows-latest'
|
||||||
@@ -212,7 +212,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy Windows release portable
|
- name: Deploy Windows release portable
|
||||||
if: github.ref == 'refs/heads/main' && inputs.os == 'windows-latest'
|
if: github.ref == 'refs/heads/main' && inputs.os == 'windows-latest'
|
||||||
uses: WebFreak001/deploy-nightly@v3.1.0
|
uses: WebFreak001/deploy-nightly@v3.2.0
|
||||||
with:
|
with:
|
||||||
upload_url: https://uploads.github.com/repos/SoftFever/OrcaSlicer/releases/137995723/assets{?name,label}
|
upload_url: https://uploads.github.com/repos/SoftFever/OrcaSlicer/releases/137995723/assets{?name,label}
|
||||||
release_id: 137995723
|
release_id: 137995723
|
||||||
@@ -223,7 +223,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy Windows release installer
|
- name: Deploy Windows release installer
|
||||||
if: github.ref == 'refs/heads/main' && inputs.os == 'windows-latest'
|
if: github.ref == 'refs/heads/main' && inputs.os == 'windows-latest'
|
||||||
uses: WebFreak001/deploy-nightly@v3.1.0
|
uses: WebFreak001/deploy-nightly@v3.2.0
|
||||||
with:
|
with:
|
||||||
upload_url: https://uploads.github.com/repos/SoftFever/OrcaSlicer/releases/137995723/assets{?name,label}
|
upload_url: https://uploads.github.com/repos/SoftFever/OrcaSlicer/releases/137995723/assets{?name,label}
|
||||||
release_id: 137995723
|
release_id: 137995723
|
||||||
@@ -234,7 +234,7 @@ jobs:
|
|||||||
|
|
||||||
# Ubuntu
|
# Ubuntu
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04' || inputs.arch == 'x86_64' || inputs.arch == 'aarch64'
|
if: inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04'
|
||||||
env:
|
env:
|
||||||
apt-cmd: ${{ (inputs.os == 'ubuntu-20.04' && 'apt-fast') || (inputs.os == 'ubuntu-24.04' && 'sudo apt-get') || '' }}
|
apt-cmd: ${{ (inputs.os == 'ubuntu-20.04' && 'apt-fast') || (inputs.os == 'ubuntu-24.04' && 'sudo apt-get') || '' }}
|
||||||
webkit-ver: ${{ (inputs.os == 'ubuntu-20.04' && '4.0') || (inputs.os == 'ubuntu-24.04' && '4.1') || '' }}
|
webkit-ver: ${{ (inputs.os == 'ubuntu-20.04' && '4.0') || (inputs.os == 'ubuntu-24.04' && '4.1') || '' }}
|
||||||
@@ -248,28 +248,28 @@ jobs:
|
|||||||
libwebkit2gtk-${{ env.webkit-ver }}-dev libxkbcommon-dev locales locales-all m4 pkgconf sudo wayland-protocols wget ${{ env.libfuse2-pkg }}
|
libwebkit2gtk-${{ env.webkit-ver }}-dev libxkbcommon-dev locales locales-all m4 pkgconf sudo wayland-protocols wget ${{ env.libfuse2-pkg }}
|
||||||
|
|
||||||
- name: Install dependencies from BuildLinux.sh
|
- name: Install dependencies from BuildLinux.sh
|
||||||
if: inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04' || inputs.arch == 'x86_64' || inputs.arch == 'aarch64'
|
if: inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: sudo ./BuildLinux.sh -ur
|
run: sudo ./BuildLinux.sh -ur
|
||||||
|
|
||||||
- name: Fix permissions
|
- name: Fix permissions
|
||||||
if: inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04' || inputs.arch == 'x86_64' || inputs.arch == 'aarch64'
|
if: inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: sudo chown $USER -R ./
|
run: sudo chown $USER -R ./
|
||||||
|
|
||||||
- name: Build slicer
|
- name: Build slicer
|
||||||
if: inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04' || inputs.arch == 'x86_64' || inputs.arch == 'aarch64'
|
if: inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04'
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
ubuntu-ver-str: ${{ (inputs.os == 'ubuntu-24.04' && '_Ubuntu2404') || '' }}
|
ubuntu-ver-str: ${{ (inputs.os == 'ubuntu-24.04' && '_Ubuntu2404') || '' }}
|
||||||
run: |
|
run: |
|
||||||
./BuildLinux.sh -isr
|
./BuildLinux.sh -isr
|
||||||
mv -n ./build_${{ inputs.arch }}/OrcaSlicer_Linux_V${{ env.ver_pure }}_${{ inputs.arch }}.AppImage ./build_${{ inputs.arch }}/OrcaSlicer_Linux_AppImage${{ env.ubuntu-ver-str }}_${{ env.ver }}_${{ inputs.arch }}.AppImage
|
mv -n ./build/OrcaSlicer_Linux_V${{ env.ver_pure }}.AppImage ./build/OrcaSlicer_Linux_AppImage${{ env.ubuntu-ver-str }}_${{ env.ver }}.AppImage
|
||||||
chmod +x ./build_${{ inputs.arch }}/OrcaSlicer_Linux_AppImage${{ env.ubuntu-ver-str }}_${{ env.ver }}_${{ inputs.arch }}.AppImage
|
chmod +x ./build/OrcaSlicer_Linux_AppImage${{ env.ubuntu-ver-str }}_${{ env.ver }}.AppImage
|
||||||
|
|
||||||
- name: Build orca_custom_preset_tests
|
- name: Build orca_custom_preset_tests
|
||||||
if: github.ref == 'refs/heads/main' && inputs.os == 'ubuntu-20.04' || inputs.arch == 'x86_64' || inputs.arch == 'aarch64'
|
if: github.ref == 'refs/heads/main' && inputs.os == 'ubuntu-20.04'
|
||||||
working-directory: ${{ github.workspace }}/build_${{ inputs.arch }}/src
|
working-directory: ${{ github.workspace }}/build/src
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
./OrcaSlicer_profile_validator -p ${{ github.workspace }}/resources/profiles -g 1
|
./OrcaSlicer_profile_validator -p ${{ github.workspace }}/resources/profiles -g 1
|
||||||
@@ -277,31 +277,31 @@ jobs:
|
|||||||
zip -r orca_custom_preset_tests.zip user/
|
zip -r orca_custom_preset_tests.zip user/
|
||||||
|
|
||||||
- name: Upload artifacts Ubuntu
|
- name: Upload artifacts Ubuntu
|
||||||
if: ${{ ! env.ACT && inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04' || inputs.arch == 'x86_64' || inputs.arch == 'aarch64' }}
|
if: ${{ ! env.ACT && inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04' }}
|
||||||
env:
|
env:
|
||||||
ubuntu-ver: ${{ (inputs.os == 'ubuntu-20.04' && '2004') || (inputs.os == 'ubuntu-24.04' && '2404') || '' }}
|
ubuntu-ver: ${{ (inputs.os == 'ubuntu-20.04' && '2004') || (inputs.os == 'ubuntu-24.04' && '2404') || '' }}
|
||||||
ubuntu-ver-str: ${{ (inputs.os == 'ubuntu-24.04' && '_Ubuntu2404') || '' }}
|
ubuntu-ver-str: ${{ (inputs.os == 'ubuntu-24.04' && '_Ubuntu2404') || '' }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: OrcaSlicer_Linux_ubuntu_${{ env.ubuntu-ver }}_${{ env.ver }}
|
name: OrcaSlicer_Linux_ubuntu_${{ env.ubuntu-ver }}_${{ env.ver }}
|
||||||
path: './build_${{ inputs.arch }}/OrcaSlicer_Linux_AppImage${{ env.ubuntu-ver-str }}_${{ env.ver }}_${{ inputs.arch }}.AppImage'
|
path: './build/OrcaSlicer_Linux_AppImage${{ env.ubuntu-ver-str }}_${{ env.ver }}.AppImage'
|
||||||
|
|
||||||
- name: Deploy Ubuntu release
|
- name: Deploy Ubuntu release
|
||||||
if: ${{ ! env.ACT && github.ref == 'refs/heads/main' && (inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04' || inputs.arch == 'x86_64' || inputs.arch == 'aarch64') }}
|
if: ${{ ! env.ACT && github.ref == 'refs/heads/main' && (inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04') }}
|
||||||
env:
|
env:
|
||||||
ubuntu-ver-str: ${{ (inputs.os == 'ubuntu-24.04' && '_Ubuntu2404') || '' }}
|
ubuntu-ver-str: ${{ (inputs.os == 'ubuntu-24.04' && '_Ubuntu2404') || '' }}
|
||||||
uses: WebFreak001/deploy-nightly@v3.1.0
|
uses: WebFreak001/deploy-nightly@v3.2.0
|
||||||
with:
|
with:
|
||||||
upload_url: https://uploads.github.com/repos/SoftFever/OrcaSlicer/releases/137995723/assets{?name,label}
|
upload_url: https://uploads.github.com/repos/SoftFever/OrcaSlicer/releases/137995723/assets{?name,label}
|
||||||
release_id: 137995723
|
release_id: 137995723
|
||||||
asset_path: ./build_${{ inputs.arch }}/OrcaSlicer_Linux_AppImage${{ env.ubuntu-ver-str }}_${{ env.ver }}_${{ inputs.arch }}.AppImage
|
asset_path: ./build/OrcaSlicer_Linux_AppImage${{ env.ubuntu-ver-str }}_${{ env.ver }}.AppImage
|
||||||
asset_name: OrcaSlicer_Linux_AppImage${{ env.ubuntu-ver-str }}_${{ env.ver }}_${{ inputs.arch }}.AppImage
|
asset_name: OrcaSlicer_Linux_AppImage${{ env.ubuntu-ver-str }}_${{ env.ver }}.AppImage
|
||||||
asset_content_type: application/octet-stream
|
asset_content_type: application/octet-stream
|
||||||
max_releases: 1 # optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted
|
max_releases: 1 # optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted
|
||||||
|
|
||||||
- name: Deploy orca_custom_preset_tests
|
- name: Deploy orca_custom_preset_tests
|
||||||
if: ${{ ! env.ACT && github.ref == 'refs/heads/main' && inputs.os == 'ubuntu-20.04' }}
|
if: ${{ ! env.ACT && github.ref == 'refs/heads/main' && inputs.os == 'ubuntu-20.04' }}
|
||||||
uses: WebFreak001/deploy-nightly@v3.1.0
|
uses: WebFreak001/deploy-nightly@v3.2.0
|
||||||
with:
|
with:
|
||||||
upload_url: https://uploads.github.com/repos/SoftFever/OrcaSlicer/releases/137995723/assets{?name,label}
|
upload_url: https://uploads.github.com/repos/SoftFever/OrcaSlicer/releases/137995723/assets{?name,label}
|
||||||
release_id: 137995723
|
release_id: 137995723
|
||||||
|
|||||||
@@ -31,12 +31,6 @@ modules:
|
|||||||
- -Ddoc=disabled
|
- -Ddoc=disabled
|
||||||
- -Dexamples=disabled
|
- -Dexamples=disabled
|
||||||
- -Dtests=disabled
|
- -Dtests=disabled
|
||||||
build-options:
|
|
||||||
arch:
|
|
||||||
aarch64:
|
|
||||||
config-opts:
|
|
||||||
- -Dnls=disabled
|
|
||||||
- -Dstatic=disabled
|
|
||||||
sources:
|
sources:
|
||||||
- type: archive
|
- type: archive
|
||||||
url: https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-1.22.8.tar.xz
|
url: https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-1.22.8.tar.xz
|
||||||
@@ -266,13 +260,18 @@ modules:
|
|||||||
url: https://github.com/glfw/glfw/archive/refs/tags/3.3.7.zip
|
url: https://github.com/glfw/glfw/archive/refs/tags/3.3.7.zip
|
||||||
dest: external-packages/GLFW
|
dest: external-packages/GLFW
|
||||||
sha256: e02d956935e5b9fb4abf90e2c2e07c9a0526d7eacae8ee5353484c69a2a76cd0
|
sha256: e02d956935e5b9fb4abf90e2c2e07c9a0526d7eacae8ee5353484c69a2a76cd0
|
||||||
|
# libnoise
|
||||||
|
- type: file
|
||||||
|
url: https://github.com/SoftFever/Orca-deps-libnoise/archive/refs/tags/1.0.zip
|
||||||
|
dest: external-packages/libnoise
|
||||||
|
sha256: 96ffd6cc47898dd8147aab53d7d1b1911b507d9dbaecd5613ca2649468afd8b6
|
||||||
|
|
||||||
- name: OrcaSlicer
|
- name: OrcaSlicer
|
||||||
buildsystem: simple
|
buildsystem: simple
|
||||||
build-commands:
|
build-commands:
|
||||||
- |
|
- |
|
||||||
mkdir -p build && cd build
|
mkdir -p build
|
||||||
CXXFLAGS=-std=gnu++20 cmake ../ \
|
CXXFLAGS=-std=gnu++20 cmake . -B build \
|
||||||
-DSLIC3R_PCH=OFF \
|
-DSLIC3R_PCH=OFF \
|
||||||
-DSLIC3R_FHS=ON \
|
-DSLIC3R_FHS=ON \
|
||||||
-DSLIC3R_GTK=3 \
|
-DSLIC3R_GTK=3 \
|
||||||
@@ -284,7 +283,9 @@ modules:
|
|||||||
-DBBL_RELEASE_TO_PUBLIC=1 \
|
-DBBL_RELEASE_TO_PUBLIC=1 \
|
||||||
-DCMAKE_PREFIX_PATH=/app \
|
-DCMAKE_PREFIX_PATH=/app \
|
||||||
-DCMAKE_INSTALL_PREFIX=/app
|
-DCMAKE_INSTALL_PREFIX=/app
|
||||||
CXXFLAGS=-std=gnu++20 cmake --build . --target install -j$FLATPAK_BUILDER_N_JOBS
|
CXXFLAGS=-std=gnu++20 cmake --build build --target OrcaSlicer -j$FLATPAK_BUILDER_N_JOBS
|
||||||
|
./run_gettext.sh
|
||||||
|
CXXFLAGS=-std=gnu++20 cmake --build build --target install -j$FLATPAK_BUILDER_N_JOBS
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
- /include
|
- /include
|
||||||
|
|||||||
Reference in New Issue
Block a user