fix fan speed after Toolchange, max_vol_speed with first_layer_flow_r… #1
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
name: C/C++ Release candidate macos | |
on: | |
push: | |
branches: | |
- rc | |
- debug_macos | |
jobs: | |
build: | |
runs-on: macos-11 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: 'rc' | |
- name: build deps & slicer | |
run: ./BuildMacOS.sh | |
- name: copy zstd | |
run: cp /usr/local/opt/zstd/lib/libzstd.1.dylib ./build/pack/SuperSlicer/SuperSlicer.app/Contents/MacOS/libzstd.1.dylib | |
- name: relink zstd | |
run: install_name_tool -change /usr/local/opt/zstd/lib/libzstd.1.dylib @executable_path/libzstd.1.dylib ./build/pack/SuperSlicer/SuperSlicer.app/Contents/MacOS/SuperSlicer | |
- name: Codesign executable conf | |
env: | |
MACOS_CERTIFICATE: ${{ secrets.MACOS_P12 }} | |
MACOS_CERTIFICATE_PWD: ${{ secrets.MACOS_PASSWD }} | |
MACOS_APP: ${{ secrets.MAC_APP_PWD }} | |
run: | | |
echo $MACOS_CERTIFICATE | base64 --decode > certificate.p12 | |
security create-keychain -p temp_password build.keychain | |
security default-keychain -s build.keychain | |
security unlock-keychain -p temp_password build.keychain | |
security import certificate.p12 -k build.keychain -P $MACOS_CERTIFICATE_PWD -T /usr/bin/codesign | |
- name: verify certificate presence | |
run: security find-identity -v | |
- name: register codesign | |
run: | | |
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k temp_password build.keychain | |
- name: run codesign on exe | |
run: | | |
/usr/bin/codesign --options=runtime --force -s "Developer ID Application: Remi Durand (LDTLFRHP3G)" ./build/pack/SuperSlicer/SuperSlicer.app/Contents/MacOS/SuperSlicer -v | |
codesign -vvv --deep --strict ./build/pack/SuperSlicer/SuperSlicer.app/Contents/MacOS/SuperSlicer | |
codesign -dvv ./build/pack/SuperSlicer/SuperSlicer.app/Contents/MacOS/SuperSlicer | |
- name: create the dmg | |
run: | | |
hdiutil create -ov -fs HFS+ -volname SuperSlicer -srcfolder "build/pack/SuperSlicer" temp.dmg | |
hdiutil convert temp.dmg -format UDZO -o SuperSlicer.dmg | |
- name: run codesign on the dmg | |
run: | | |
/usr/bin/codesign -s "Developer ID Application: Remi Durand (LDTLFRHP3G)" SuperSlicer.dmg -v | |
codesign -vvv --deep --strict SuperSlicer.dmg | |
codesign -dvv SuperSlicer.dmg | |
- name: notarize the dmg | |
run: | | |
xcrun altool --notarize-app -f SuperSlicer.dmg --primary-bundle-id org.slic3r.superslicer -u [email protected] -p $MACOS_APP | |
spctl -a -t open --context context:primary-signature -v SuperSlicer.dmg | |
- name: run codesign on app | |
run: | | |
/usr/bin/codesign --force -s "Developer ID Application: Remi Durand (LDTLFRHP3G)" ./build/pack/SuperSlicer/SuperSlicer.app -v | |
codesign -vvv --deep --strict ./build/pack/SuperSlicer/SuperSlicer.app | |
codesign -dvv ./build/pack/SuperSlicer/SuperSlicer.app | |
- name: Upload artifact | |
uses: actions/[email protected] | |
with: | |
name: rc_macos.app | |
path: build/pack/SuperSlicer/SuperSlicer.app | |
- name: Upload artifact | |
uses: actions/[email protected] | |
with: | |
name: rc_macos.dmg | |
path: build/SuperSlicer.dmg |