@@ -18,21 +18,27 @@ jobs:
1818 config :
1919 - os : windows-latest
2020 name : ' Windows 32'
21- fpcup-url : ' https://github.com/LongDirtyAnimAlf/Reiniero-fpcup/releases/download/1.8.2d/fpclazup-i386-win32.exe'
22- fpcup-opt : ' --lazrevision=64045'
23- fpc-url : ' https://svn.freepascal.org/svn/fpc/tags/release_3_2_0'
24- laz-url : ' trunk'
21+ lazarus-url : ' https://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2032%20bits/Lazarus%202.0.12/lazarus-2.0.12-fpc-3.2.0-win32.exe/download'
2522
2623
2724 steps :
2825 - uses : actions/checkout@v2
29-
26+ - name : Install win 32 version
27+ if : matrix.config.os == 'windows-latest'
28+ run : |
29+ curl --retry 5 -L -o lazarus.exe ${{ matrix.config.lazarus-url }}
30+ ./lazarus.exe /VERYSILENT /DIR="c:\lazarus"
31+ echo $GITHUB_PATH
32+ echo "c:\lazarus" >> $GITHUB_PATH
33+ echo $GITHUB_PATH
34+ lazbuild --help
3035 - name : Install Dependencies (Ubuntu)
3136 if : matrix.config.os == 'ubuntu-latest'
3237 run : |
3338 sudo apt-get update
3439 sudo apt-get -m -y install libgtk2.0-dev libpango1.0-dev
35- - name : Install Lazarus
40+ - name : Install Lazarus on (Ubuntu)
41+ if : matrix.config.os == 'ubuntu-latest'
3642 run : |
3743 curl --retry 5 -L -o fpcup ${{ matrix.config.fpcup-url }}
3844 chmod +x fpcup
@@ -44,13 +50,15 @@ jobs:
4450 curl --retry 5 -L -o libs.zip https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/download/crosslibs_v1.1/CrossLibsLinuxAarch64.zip && unzip -o libs.zip -d lazarus/
4551 curl --retry 5 -L -o bins.zip https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/download/linuxx64crossbins_v1.0/CrossBinsLinuxAarch64.zip && unzip -o bins.zip -d lazarus/cross/bin
4652 ./fpcup --installdir=lazarus --ostarget=linux --cputarget=aarch64 --only="FPCCleanOnly,FPCBuildOnly" --crossbindir=lazarus/cross/bin --crosslibdir=lazarus/cross/lib/aarch64-linux --noconfirm --verbose
47- - name : Build the Main Application
53+ - name : Build the Main Application for all OS
4854 run : |
49- ./lazarus/lazarus/lazbuild --build-mode=Release "source/project/tracker_editor/trackereditor.lpi"
50- - name : Build the Unit Tests Application
55+ lazbuild --build-mode=Release "source/project/tracker_editor/trackereditor.lpi"
56+ - name : Build the Unit Tests Application on windows only
57+ if : matrix.config.os == 'windows-latest'
5158 run : |
52- ./lazarus/lazarus/lazbuild --build-mode=Debug "source/project/unit_test/tracker_editor_test.lpi"
53- - name : Run headless test
59+ lazbuild --build-mode=Debug "source/project/unit_test/tracker_editor_test.lpi"
60+ - name : Run headless test on windows only
61+ if : matrix.config.os == 'windows-latest'
5462 run : |
5563 ./enduser/test_trackereditor.exe -a --format=plain
5664
0 commit comments