forked from jimmckeeth/DelphiAST
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 936 Bytes
/
Copy pathfpc-tests.yml
File metadata and controls
38 lines (31 loc) · 936 Bytes
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
name: FPC tests
on:
push:
pull_request:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Free Pascal
run: sudo apt-get update && sudo apt-get install --no-install-recommends fp-compiler fp-units-fcl
- name: Compile tests
run: |
mkdir -p build/fpc-tests/units
fpc -B -Mdelphi \
-FuSource \
-FuSource/SimpleParser \
-FiSource/SimpleParser \
-FuSource/FreePascalSupport \
-FuSource/FreePascalSupport/FPC_StringBuilder/Src \
-FuTest/UnitTests \
-FUbuild/fpc-tests/units \
-FEbuild/fpc-tests \
Test/UnitTests/DelphiASTTests.lpr
- name: Run tests
run: build/fpc-tests/DelphiASTTests Test/Snippets