Skip to content

chore: Formatting on main workflow #4

chore: Formatting on main workflow

chore: Formatting on main workflow #4

Workflow file for this run

name: LevelDB Object Pascal
defaults:
run:
shell: bash
permissions:
contents: write
on:
push:
branches: [ main ]
tags: [ "*" ]
paths-ignore: [ "README.md", "LICENSE" ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ ubuntu-20.04, ubuntu-latest, windows-latest]
lazarus-versions: [ stable ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
clean: true
set-safe-directory: true
- name: Install Lazarus
uses: gcarreno/setup-lazarus@v3
with:
lazarus-version: ${{ matrix.lazarus-versions }}
with-cache: false
- name: Install LevelDB for *nix
if: ${{ matrix.operating-system == 'ubuntu-latest' || matrix.operating-system == 'ubuntu-20.04' }}
run: sudo apt instal -y libleveldb1n
- name: Build Test Application
run: lazbuild -B --bm=Release "tests/testleveldb.lpi"
- name: Run Test Application
run: |
cp "dynamic-libs/win64/leveldb.dll" "bin"
bin/testleveldb --all --format=plain