mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
56 lines
1.4 KiB
YAML
56 lines
1.4 KiB
YAML
name: build-release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
release:
|
|
types: [prereleased, released]
|
|
|
|
concurrency:
|
|
group: ${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build-mac:
|
|
runs-on: macos-13
|
|
steps:
|
|
- name: Install Free Pascal
|
|
uses: alexx2000/setup-fpc@master
|
|
with:
|
|
lazarus-version: "stable"
|
|
|
|
- name: Get Lazarus source
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: 'fpc/Lazarus'
|
|
ref: 'fixes_3_0'
|
|
|
|
- name: Build and install Lazarus
|
|
run: make all 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@v4
|
|
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
|