Skip to content

Commit c14737c

Browse files
Merge pull request #5 from theavege/add/github-actions
add github-actions
2 parents 5f58cad + 9249d80 commit c14737c

File tree

5 files changed

+152
-1
lines changed

5 files changed

+152
-1
lines changed

.github/dependabot.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
version: 2
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"

.github/workflows/make.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: Make
3+
4+
on:
5+
push:
6+
branches:
7+
- "**"
8+
pull_request:
9+
branches:
10+
- master
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
build:
18+
runs-on: ${{ matrix.os }}
19+
timeout-minutes: 120
20+
strategy:
21+
matrix:
22+
os:
23+
- ubuntu-latest
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
with:
28+
submodules: true
29+
30+
- name: Build on Linux
31+
if: runner.os == 'Linux'
32+
shell: bash
33+
run: bash -x make.sh build

make.sh

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#!/usr/bin/env bash
2+
3+
function priv_clippit
4+
(
5+
cat <<EOF
6+
Usage: bash ${0} [OPTIONS]
7+
Options:
8+
build Build program
9+
EOF
10+
)
11+
12+
function pub_build
13+
(
14+
find 'src' -type 'f' -name '*.lpi' -exec lazbuild --recursive --build-mode=release {} \;
15+
)
16+
17+
function priv_main
18+
(
19+
set -euo pipefail
20+
if ! (which lazbuild); then
21+
source '/etc/os-release'
22+
case ${ID:?} in
23+
debian | ubuntu)
24+
sudo apt-get update
25+
sudo apt-get install -y lazarus
26+
;;
27+
esac
28+
fi
29+
if ((${#})); then
30+
case ${1} in
31+
build) pub_build 1>&2 ;;
32+
esac
33+
else
34+
priv_clippit
35+
fi
36+
)
37+
38+
priv_main "${@}" >/dev/null

src/FPC_Understand.lpi

+73
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,79 @@
1818
</General>
1919
<BuildModes>
2020
<Item Name="Default" Default="True"/>
21+
<Item Name="Debug">
22+
<CompilerOptions>
23+
<Version Value="11"/>
24+
<PathDelim Value="\"/>
25+
<Target>
26+
<Filename Value="FPC_Understand"/>
27+
</Target>
28+
<SearchPaths>
29+
<IncludeFiles Value="$(ProjOutDir)"/>
30+
<OtherUnitFiles Value="..\Sample\Graphik;..\Sample\DatenSteuerung"/>
31+
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
32+
</SearchPaths>
33+
<Parsing>
34+
<SyntaxOptions>
35+
<IncludeAssertionCode Value="True"/>
36+
</SyntaxOptions>
37+
</Parsing>
38+
<CodeGeneration>
39+
<Checks>
40+
<IOChecks Value="True"/>
41+
<RangeChecks Value="True"/>
42+
<OverflowChecks Value="True"/>
43+
<StackChecks Value="True"/>
44+
</Checks>
45+
<VerifyObjMethodCallValidity Value="True"/>
46+
</CodeGeneration>
47+
<Linking>
48+
<Debugging>
49+
<DebugInfoType Value="dsDwarf3"/>
50+
<UseHeaptrc Value="True"/>
51+
<TrashVariables Value="True"/>
52+
<UseExternalDbgSyms Value="True"/>
53+
</Debugging>
54+
<Options>
55+
<Win32>
56+
<GraphicApplication Value="True"/>
57+
</Win32>
58+
</Options>
59+
</Linking>
60+
</CompilerOptions>
61+
</Item>
62+
<Item Name="Release">
63+
<CompilerOptions>
64+
<Version Value="11"/>
65+
<PathDelim Value="\"/>
66+
<Target>
67+
<Filename Value="FPC_Understand"/>
68+
</Target>
69+
<SearchPaths>
70+
<IncludeFiles Value="$(ProjOutDir)"/>
71+
<OtherUnitFiles Value="..\Sample\Graphik;..\Sample\DatenSteuerung"/>
72+
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
73+
</SearchPaths>
74+
<CodeGeneration>
75+
<SmartLinkUnit Value="True"/>
76+
<Optimizations>
77+
<OptimizationLevel Value="3"/>
78+
</Optimizations>
79+
</CodeGeneration>
80+
<Linking>
81+
<Debugging>
82+
<GenerateDebugInfo Value="False"/>
83+
<RunWithoutDebug Value="True"/>
84+
</Debugging>
85+
<LinkSmart Value="True"/>
86+
<Options>
87+
<Win32>
88+
<GraphicApplication Value="True"/>
89+
</Win32>
90+
</Options>
91+
</Linking>
92+
</CompilerOptions>
93+
</Item>
2194
</BuildModes>
2295
<PublishOptions>
2396
<Version Value="2"/>

src/FPC_Understand.lpr

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
Begin
3333
RequireDerivedFormResource := True;
34-
Application.Scaled := True;
34+
Application.Scaled:=True;
3535
Application.Initialize;
3636
Application.CreateForm(TForm1, Form1);
3737
Application.CreateForm(TForm2, Form2);

0 commit comments

Comments
 (0)