release.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. name: build-release
  2. on:
  3. workflow_dispatch:
  4. release:
  5. types: [prereleased, released]
  6. concurrency:
  7. group: ${{ github.ref }}
  8. cancel-in-progress: true
  9. jobs:
  10. build-mac:
  11. runs-on: macos-13
  12. steps:
  13. - name: Install Free Pascal
  14. uses: doublecmd/lazarus-install@mac
  15. with:
  16. lazarus-version: "stable"
  17. - name: Get Lazarus source
  18. uses: actions/checkout@v4
  19. with:
  20. repository: 'fpc/Lazarus'
  21. ref: 'fixes_4'
  22. - name: Build and install Lazarus
  23. run: make all install
  24. - name: Create Lazarus config
  25. run: |
  26. sudo mkdir -p /etc/lazarus
  27. sudo cp tools/install/macosx/environmentoptions.xml /etc/lazarus/environmentoptions.xml
  28. sudo sed -i -e "s|_PPCARCH_|fpc|g; s|/Developer/lazarus|/usr/local/share/lazarus|g" /etc/lazarus/environmentoptions.xml
  29. - name: Checkout source
  30. uses: actions/checkout@v4
  31. with:
  32. fetch-depth: 0
  33. - name: Download unrar source code
  34. run: wget https://www.rarlab.com/rar/unrarsrc-7.0.9.tar.gz -O /tmp/unrarsrc.tar.gz
  35. - name: Extract unrar source code
  36. run: cd /tmp && tar xzf unrarsrc.tar.gz
  37. - name: Build packages
  38. run: ./.github/scripts/create_release.sh
  39. - name: Upload binaries to release
  40. uses: svenstaro/upload-release-action@v2
  41. with:
  42. file: doublecmd-release/doublecmd*.dmg
  43. tag: ${{ github.ref }}
  44. overwrite: true
  45. file_glob: true