Skip to content

CI: Update ARM builds #55

CI: Update ARM builds

CI: Update ARM builds #55

Workflow file for this run

name: CI
on:
# on each push and manual trigger
push:
branches: [ master ]
paths-ignore: [ "**/Readme.md" ]
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
# currently stable="Lazarus 3.0 / FPC 3.2.2" with [email protected]
lazarus-versions: [stable]
steps:
- uses: actions/checkout@v4
- name: Install Lazarus
uses: gcarreno/setup-lazarus@v3
with:
lazarus-version: ${{ matrix.lazarus-versions }}
- name: Print info
shell: bash
run: |
echo "Lazarus:" $(lazbuild --version)
echo "FPC:" $(fpc -iWTPTO)
echo "OS:" $(uname -a)
- name: Build Deskew CLI
shell: bash
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
lazbuild --build-mode=Release-macOS "deskew.lpi"
else
lazbuild --build-mode=Release "deskew.lpi"
fi
- name: Build Deskew GUI
shell: bash
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
lazbuild --build-mode=Release-macOS "Gui/deskewgui.lpi"
else
lazbuild --build-mode=Release "Gui/deskewgui.lpi"
fi
- name: List Bin directory
shell: bash
run: ls Bin
- name: Run tests
shell: bash
run: |
cd Bin
if [ "$RUNNER_OS" == "Linux" ]; then
./runtests.sh
elif [ "$RUNNER_OS" == "Windows" ]; then
./RunTests.bat
elif [ "$RUNNER_OS" == "macOS" ]; then
./runtests.sh deskew-mac --no-tiff
fi
- name: Upload binaries
uses: actions/upload-artifact@v4
with:
name: deskew-binaries-${{ matrix.operating-system }}
path: |
Bin/deskew*
if-no-files-found: error
- name: Upload artifacts
if: github.event_name == 'workflow_dispatch'
uses: actions/upload-artifact@v4
with:
name: deskew-artifacts-${{ matrix.operating-system }}
path: |
Bin
if-no-files-found: error