/lazarus-with-github-actions

Testing grounds for the GitHub action setup-lazarus

Primary LanguagePascalMIT LicenseMIT

lazarus-with-github-actions

Actions Status

Testing grounds for the GitHub action setup-lazarus

Note: For supported Lazarus versions and the associated FPC version consult the link above.

setup-lazarus logo

Example usage

steps:
- uses: actions/checkout@v2
- uses: gcarreno/setup-lazarus@v2.2.0
  with:
    lazarus-version: "dist"
    include-packages: "Synapse 40.1"
- run: lazbuild YourTestProject.lpi
- run: YourTestProject

Test

Matrix example usage

name: build

on:
  pull_request:
  push:
    paths-ignore:
    - "README.md"
    branches:
      - master
      - releases/*

jobs:
  build:
    runs-on: ${{ matrix.operating-system }}
    strategy:
      matrix:
        operating-system: [ubuntu-18.04,ubuntu-latest]
        lazarus-versions: [dist, 2.0.6]
    steps:
    - uses: actions/checkout@v2
    - name: Install Lazarus
      uses: gcarreno/setup-lazarus@v2.2.0
      with:
        lazarus-version: ${{ matrix.lazarus-versions }}
        include-packages: "Synapse 40.1"
    - name: Build the Main Application
      run: lazbuild "src/lazaruswithgithubactions.lpi"
    - name: Build the Unit Tests Application
      run: lazbuild "tests/testconsoleapplication.lpi"
    - name: Run the Unit Tests Application
      run: bin/testconsoleapplication "--all" "--format=plain"