Skip to content

fix: Turning Lazarus cache off #143

fix: Turning Lazarus cache off

fix: Turning Lazarus cache off #143

Workflow file for this run

name: build-test
on:
pull_request:
push:
paths-ignore: [ "README.md" ]
branches: [ "master", "releases/*" ]
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest, ubuntu-20.04, windows-latest, macos-latest]
lazarus-versions: [dist, stable, 2.2.6]
steps:
- name: Cechout source code
uses: actions/checkout@v4
- name: Install Lazarus
uses: gcarreno/[email protected]
with:
lazarus-version: ${{ matrix.lazarus-versions }}
include-packages: "Synapse 40.1"
with-cache: false
- name: Build the Main Application (Windows)
if: ${{ matrix.operating-system == 'windows-latest' }}
run: lazbuild -B --bm=Release "src/lazaruswithgithubactions.lpi"
- name: Build the Main Application (Ubuntu)
if: ${{ matrix.operating-system == 'ubuntu-latest' }}
run: |
echo Building with GTK2
lazbuild -B --bm=Release "src/lazaruswithgithubactions.lpi"
echo Installing Qt5 Dev
sudo apt update
sudo apt install libqt5pas-dev -y
echo Building with Qt5
lazbuild -B --bm=Release --ws=qt5 "src/lazaruswithgithubactions.lpi"
- name: Build the Main Application (macOS)
if: ${{ matrix.operating-system == 'macos-latest' }}
run: lazbuild -B --bm=Release --ws=cocoa "src/lazaruswithgithubactions.lpi"
- name: Build the Unit Tests Application
run: lazbuild -B --bm=Release "tests/testconsoleapplication.lpi"
- name: Run the Unit Tests Application
run: bin/testconsoleapplication "--all" "--format=plain"