ccpp_mac.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. name: C/C++ CI macos
  2. on: [push]
  3. jobs:
  4. build:
  5. runs-on: macos-latest
  6. steps:
  7. - uses: actions/checkout@v1
  8. - name: mkdir in deps
  9. run: mkdir deps/build
  10. - name: cmake deps
  11. working-directory: ./deps/build
  12. run: cmake ..
  13. - name: make deps
  14. working-directory: ./deps/build
  15. run: make
  16. - name: mkdir build
  17. run: mkdir build
  18. - name: cmake
  19. working-directory: ./build
  20. run: cmake .. -DCMAKE_PREFIX_PATH="$PWD/../deps/build/destdir/usr/local" -DSLIC3R_STATIC=1
  21. - name: make slic3r
  22. working-directory: ./build
  23. run: make slic3r
  24. - name: create directory and copy into it
  25. working-directory: ./build
  26. run: |
  27. mkdir Slic3r++
  28. mkdir Slic3r++/Slic3r++.app
  29. mkdir Slic3r++/Slic3r++.app/Contents
  30. mkdir Slic3r++/Slic3r++.app/Contents/_CodeSignature
  31. mkdir Slic3r++/Slic3r++.app/Contents/Frameworks
  32. mkdir Slic3r++/Slic3r++.app/Contents/MacOS
  33. - name: copy resources
  34. working-directory: ./build
  35. run: cp -Rf ../resources Slic3r++/Slic3r++.app/Contents/resources
  36. - name: copy bin
  37. working-directory: ./build
  38. run: cp -f src/slic3r++ Slic3r++/Slic3r++.app/Contents/MacOS/slic3r++
  39. # - name: signing resources (creating CodeResources inside _CodeSignature)
  40. # working-directory: .
  41. # run: codesign -s <identity> resources
  42. # maybe i should just try to do that on a separate pc and copy the file here, more secure as a signing process.
  43. - name: Upload artifact
  44. uses: actions/upload-artifact@v1.0.0
  45. with:
  46. name: nightly_macos
  47. path: build/Slic3r++/