build-release #15
Workflow file for this run
This file contains hidden or 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: 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.2.3.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 |