-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (42 loc) · 1.33 KB
/
main.yml
File metadata and controls
56 lines (42 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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 install -y libleveldb-dev
- 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