| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- name: build-release
- on:
- workflow_dispatch:
- release:
- types: [prereleased, released]
- concurrency:
- group: ${{ github.ref }}
- cancel-in-progress: true
- jobs:
- build-mac:
- runs-on: macos-14
- steps:
- - name: Install Free Pascal
- uses: doublecmd/lazarus-install@mac
- with:
- lazarus-version: "stable"
- - name: Get Lazarus source
- uses: actions/checkout@v6
- with:
- repository: 'fpc/Lazarus'
- ref: 'fixes_4'
- - name: Build and install Lazarus
- run: |
- make all
- sudo make install
- - name: Create Lazarus config
- run: |
- sudo mkdir -p /etc/lazarus
- sudo cp tools/install/macosx/environmentoptions.xml /etc/lazarus/environmentoptions.xml
- sudo sed -i -e "s|_PPCARCH_|fpc|g; s|/Developer/lazarus|/usr/local/share/lazarus|g" /etc/lazarus/environmentoptions.xml
- - name: Checkout source
- uses: actions/checkout@v6
- with:
- fetch-depth: 0
- - name: Download unrar source code
- run: wget https://www.rarlab.com/rar/unrarsrc-7.0.9.tar.gz -O /tmp/unrarsrc.tar.gz
-
- - name: Extract unrar source code
- run: cd /tmp && tar xzf unrarsrc.tar.gz
- - name: Build packages
- run: ./.github/scripts/create_release.sh
- - name: Upload binaries to release
- uses: svenstaro/upload-release-action@v2
- with:
- file: doublecmd-release/doublecmd*.dmg
- tag: ${{ github.ref }}
- overwrite: true
- file_glob: true
|