Skip to content

Commit 14e5765

Browse files
authored
Merge pull request #13 from gcarreno/update-ci-cd
Updated `CI`/`CD`
2 parents 154aa1f + 20d81b8 commit 14e5765

File tree

2 files changed

+74
-12
lines changed

2 files changed

+74
-12
lines changed

.github/workflows/main.yaml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,9 @@ jobs:
2727
strategy:
2828
fail-fast: false
2929
matrix:
30-
operating-system: [ ubuntu-20.04, ubuntu-latest, windows-latest]
30+
operating-system: [ ubuntu-latest, windows-latest]
3131
lazarus-versions: [ stable ]
3232
include:
33-
- operating-system: ubuntu-20.04
34-
folder: x86_64-linux
35-
binary: Hex
3633
- operating-system: ubuntu-latest
3734
folder: x86_64-linux
3835
binary: Hex
@@ -53,6 +50,12 @@ jobs:
5350
lazarus-version: ${{ matrix.lazarus-versions }}
5451
with-cache: false
5552

53+
- name: Build Test Application
54+
run: lazbuild -B --bm=Release "tests/hex_tests_cli.lpi"
55+
56+
- name: Run Test Application
57+
run: bin/hex_tests_cli --all --format=plain
58+
5659
- name: Build Application
5760
run: lazbuild -B --bm=Release "source/Hex.lpi"
5861

@@ -86,18 +89,14 @@ jobs:
8689
mv Hex hex
8790
chmod +x hex
8891
tar zcvf ../Hex-ubuntu-x86_64-${{ github.ref_name }}.tgz hex
89-
cd ../Hex-ubuntu-20.04
90-
mv Hex hex
91-
chmod +x hex
92-
tar zcvf ../Hex-ubuntu-20.04-x86_64-${{ github.ref_name }}.tgz hex
9392
cd ../Hex-windows-latest
9493
zip ../Hex-windows-x86_64-${{ github.ref_name }}.zip Hex.exe
9594
9695
- name: Create GitHub release
97-
uses: softprops/action-gh-release@v1
96+
uses: softprops/action-gh-release@v2
9897
with:
9998
name: Hex ${{ github.ref_name }}
100-
body: Needs to be changed
99+
body_path: release_notes.md
101100
files: |
102101
*.tgz
103102
*.zip

tests/hex_tests_cli.lpi

Lines changed: 65 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,69 @@
1616
</General>
1717
<BuildModes>
1818
<Item Name="Default" Default="True"/>
19+
<Item Name="Debug">
20+
<CompilerOptions>
21+
<Version Value="11"/>
22+
<PathDelim Value="\"/>
23+
<Target>
24+
<Filename Value="..\bin\hex_tests_cli"/>
25+
</Target>
26+
<SearchPaths>
27+
<IncludeFiles Value="$(ProjOutDir)"/>
28+
<OtherUnitFiles Value="..\source\units"/>
29+
<UnitOutputDirectory Value="..\ppu\$(TargetCPU)-$(TargetOS)"/>
30+
</SearchPaths>
31+
<Parsing>
32+
<SyntaxOptions>
33+
<IncludeAssertionCode Value="True"/>
34+
</SyntaxOptions>
35+
</Parsing>
36+
<CodeGeneration>
37+
<Checks>
38+
<IOChecks Value="True"/>
39+
<RangeChecks Value="True"/>
40+
<OverflowChecks Value="True"/>
41+
<StackChecks Value="True"/>
42+
</Checks>
43+
<VerifyObjMethodCallValidity Value="True"/>
44+
</CodeGeneration>
45+
<Linking>
46+
<Debugging>
47+
<DebugInfoType Value="dsDwarf3"/>
48+
<UseHeaptrc Value="True"/>
49+
<TrashVariables Value="True"/>
50+
<UseExternalDbgSyms Value="True"/>
51+
</Debugging>
52+
</Linking>
53+
</CompilerOptions>
54+
</Item>
55+
<Item Name="Release">
56+
<CompilerOptions>
57+
<Version Value="11"/>
58+
<PathDelim Value="\"/>
59+
<Target>
60+
<Filename Value="..\bin\hex_tests_cli"/>
61+
</Target>
62+
<SearchPaths>
63+
<IncludeFiles Value="$(ProjOutDir)"/>
64+
<OtherUnitFiles Value="..\source\units"/>
65+
<UnitOutputDirectory Value="..\ppu\$(TargetCPU)-$(TargetOS)"/>
66+
</SearchPaths>
67+
<CodeGeneration>
68+
<SmartLinkUnit Value="True"/>
69+
<Optimizations>
70+
<OptimizationLevel Value="3"/>
71+
</Optimizations>
72+
</CodeGeneration>
73+
<Linking>
74+
<Debugging>
75+
<GenerateDebugInfo Value="False"/>
76+
<RunWithoutDebug Value="True"/>
77+
</Debugging>
78+
<LinkSmart Value="True"/>
79+
</Linking>
80+
</CompilerOptions>
81+
</Item>
1982
</BuildModes>
2083
<PublishOptions>
2184
<Version Value="2"/>
@@ -48,12 +111,12 @@
48111
<Version Value="11"/>
49112
<PathDelim Value="\"/>
50113
<Target>
51-
<Filename Value="hex_tests_cli"/>
114+
<Filename Value="..\bin\hex_tests_cli"/>
52115
</Target>
53116
<SearchPaths>
54117
<IncludeFiles Value="$(ProjOutDir)"/>
55118
<OtherUnitFiles Value="..\source\units"/>
56-
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
119+
<UnitOutputDirectory Value="..\ppu\$(TargetCPU)-$(TargetOS)"/>
57120
</SearchPaths>
58121
<Linking>
59122
<Debugging>

0 commit comments

Comments
 (0)