ReadLn; after Deskew only for Delphi #51
This file contains 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: 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 setup-lazarus@v3.2.17 | |
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 |