forked from SoftFever/OrcaSlicer
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.change name slicer to orca, 2. change version 0.0.1 3. temporarily …
…ignore the version check
- Loading branch information
1 parent
bc74c94
commit 22bb7fd
Showing
34 changed files
with
541 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ jobs: | |
- name: Get the version and date on Ubuntu and macOS | ||
if: inputs.os != 'windows-latest' | ||
run: | | ||
ver_pure=$(grep 'set(SoftFever_VERSION' version.inc | cut -d '"' -f2) | ||
ver_pure=$(grep 'set(Snapmaker_VERSION' version.inc | cut -d '"' -f2) | ||
if [[ "${{ github.event_name }}" == "pull_request" ]]; then | ||
ver="PR-${{ github.event.number }}" | ||
else | ||
|
@@ -66,7 +66,7 @@ jobs: | |
$ver = "PR" + $prNumber | ||
} else { | ||
$versionContent = Get-Content version.inc -Raw | ||
if ($versionContent -match 'set\(SoftFever_VERSION "(.*?)"\)') { | ||
if ($versionContent -match 'set\(Snapmaker_VERSION "(.*?)"\)') { | ||
$ver = $matches[1] | ||
} | ||
$ver = "V$ver" | ||
|
@@ -247,6 +247,39 @@ jobs: | |
shell: bash | ||
run: sudo chown $USER -R ./ | ||
|
||
- name: Build Slicer-Engine | ||
if: inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04' | ||
shell: bash | ||
env: | ||
ubuntu-ver-str: ${{ (inputs.os == 'ubuntu-24.04' && '_Ubuntu2404') || '' }} | ||
run: | | ||
./BuildLinux.sh -eisr | ||
mv -n ./build/Snapmaker_Orca_Linux_V${{ env.ver_pure }}.AppImage ./build/Snapmaker_Orca_Engine_Linux${{ env.ubuntu-ver-str }}_${{ env.ver }}.AppImage | ||
chmod +x ./build/Snapmaker_Orca_Engine_Linux${{ env.ubuntu-ver-str }}_${{ env.ver }}.AppImage | ||
- name: Upload artifacts Ubuntu Engine | ||
if: ${{ ! env.ACT && inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04' }} | ||
env: | ||
ubuntu-ver: ${{ (inputs.os == 'ubuntu-20.04' && '2004') || (inputs.os == 'ubuntu-24.04' && '2404') || '' }} | ||
ubuntu-ver-str: ${{ (inputs.os == 'ubuntu-24.04' && '_Ubuntu2404') || '' }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Snapmaker_Orca_Engine_Linux_ubuntu_${{ env.ubuntu-ver }}_${{ env.ver }} | ||
path: './build/Snapmaker_Orca_Engine_Linux${{ env.ubuntu-ver-str }}_${{ env.ver }}.AppImage' | ||
|
||
- name: Deploy Ubuntu-Engine release | ||
if: ${{ ! env.ACT && github.ref == 'refs/heads/main' && (inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04') }} | ||
env: | ||
ubuntu-ver-str: ${{ (inputs.os == 'ubuntu-24.04' && '_Ubuntu2404') || '' }} | ||
uses: WebFreak001/[email protected] | ||
with: | ||
upload_url: https://uploads.github.com/repos/Snapmaker/OrcaSlicer/releases/169912305/assets{?name,label} | ||
release_id: 169912305 | ||
asset_path: ./build/Snapmaker_Orca_Engine_Linux${{ env.ubuntu-ver-str }}_${{ env.ver }}.AppImage | ||
asset_name: Snapmaker_Orca_Engine_Linux${{ env.ubuntu-ver-str }}_${{ env.ver }}.AppImage | ||
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 | ||
|
||
- name: Build slicer | ||
if: inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04' | ||
shell: bash | ||
|
@@ -256,16 +289,7 @@ jobs: | |
./BuildLinux.sh -isr | ||
mv -n ./build/Snapmaker_Orca_Linux_V${{ env.ver_pure }}.AppImage ./build/Snapmaker_Orca_Linux${{ env.ubuntu-ver-str }}_${{ env.ver }}.AppImage | ||
chmod +x ./build/Snapmaker_Orca_Linux${{ env.ubuntu-ver-str }}_${{ env.ver }}.AppImage | ||
- name: Build orca_custom_preset_tests | ||
if: github.ref == 'refs/heads/main' && inputs.os == 'ubuntu-20.04' | ||
working-directory: ${{ github.workspace }}/build/src | ||
shell: bash | ||
run: | | ||
./Snapmaker_Orca_profile_validator -p ${{ github.workspace }}/resources/profiles -g 1 | ||
cd ${{ github.workspace }}/resources/profiles | ||
zip -r orca_custom_preset_tests.zip user/ | ||
- name: Upload artifacts Ubuntu | ||
if: ${{ ! env.ACT && inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04' }} | ||
env: | ||
|
@@ -275,7 +299,8 @@ jobs: | |
with: | ||
name: Snapmaker_Orca_Linux_ubuntu_${{ env.ubuntu-ver }}_${{ env.ver }} | ||
path: './build/Snapmaker_Orca_Linux${{ env.ubuntu-ver-str }}_${{ env.ver }}.AppImage' | ||
|
||
|
||
|
||
- name: Deploy Ubuntu release | ||
if: ${{ ! env.ACT && github.ref == 'refs/heads/main' && (inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-24.04') }} | ||
env: | ||
|
@@ -289,6 +314,15 @@ jobs: | |
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 | ||
|
||
- name: Build orca_custom_preset_tests | ||
if: github.ref == 'refs/heads/main' && inputs.os == 'ubuntu-20.04' | ||
working-directory: ${{ github.workspace }}/build/src | ||
shell: bash | ||
run: | | ||
./Snapmaker_Orca_profile_validator -p ${{ github.workspace }}/resources/profiles -g 1 | ||
cd ${{ github.workspace }}/resources/profiles | ||
zip -r orca_custom_preset_tests.zip user/ | ||
- name: Deploy orca_custom_preset_tests | ||
if: ${{ ! env.ACT && github.ref == 'refs/heads/main' && inputs.os == 'ubuntu-20.04' }} | ||
uses: WebFreak001/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.