chore: Adding ubuntu-20.04
to the CI/CD
#142
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: 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: true | |
- 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" |