mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
73 lines
1.9 KiB
YAML
73 lines
1.9 KiB
YAML
name: build-snapshot
|
|
|
|
on:
|
|
release:
|
|
types: [unpublished]
|
|
branches:
|
|
- v1.1.x
|
|
|
|
concurrency:
|
|
group: ${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build-mac:
|
|
runs-on: macos-11
|
|
steps:
|
|
- name: Install Free Pascal
|
|
uses: alexx2000/setup-fpc@master
|
|
with:
|
|
lazarus-version: "stable"
|
|
|
|
- name: Get Lazarus source
|
|
uses: actions/checkout@v3
|
|
with:
|
|
repository: 'fpc/Lazarus'
|
|
|
|
- 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@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Build packages
|
|
run: ./.github/scripts/create_snapshot.sh
|
|
|
|
- name: Deploy to snapshot server
|
|
run: ./.github/scripts/upload_snapshot.sh
|
|
env:
|
|
SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }}
|
|
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
|
|
REMOTE_USER: ${{ secrets.REMOTE_USER }}
|
|
|
|
build-win:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Install Lazarus
|
|
uses: alexx2000/setup-fpc@win
|
|
with:
|
|
lazarus-version: "stable"
|
|
|
|
- name: Checkout source
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Build packages
|
|
run: ./.github/scripts/create_snapshot.bat
|
|
|
|
- name: Deploy to snapshot server
|
|
run: ./.github/scripts/upload_snapshot.sh
|
|
shell: bash
|
|
env:
|
|
SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }}
|
|
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
|
|
REMOTE_USER: ${{ secrets.REMOTE_USER }}
|