Skip to content

Commit 2901803

Browse files
add lazbuild in windows PATH
lazbuild is already in PATH for Linux and macOS
1 parent 982629e commit 2901803

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/actions/install_lazarus/action.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,16 @@ runs:
1919
steps:
2020
- name: Install Lazarus IDE (Windows)
2121
if: runner.os == 'Windows'
22-
run: winget install lazarus --disable-interactivity --accept-source-agreements --silent
23-
shell: powershell
22+
run: |
23+
winget install lazarus --disable-interactivity --accept-source-agreements --silent
24+
echo 'c:/lazarus' >> $GITHUB_PATH
25+
shell: pwsh
26+
27+
- name: Make PATH also in bash available (Windows)
28+
if: runner.os == 'Windows'
29+
run: |
30+
echo 'c:/lazarus' >> $GITHUB_PATH
31+
shell: bash
2432

2533
- name: Install fpc (Linux)
2634
if: runner.os == 'Linux'

.github/workflows/cicd_windows.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
runs-on: windows-latest
1717
timeout-minutes: 60
1818
env:
19-
LAZBUILD_WITH_PATH: c:/lazarus/lazbuild
2019
RELEASE_ZIP_FILE: trackereditor_windows_amd64.zip
2120
LAZ_OPT:
2221

@@ -38,12 +37,12 @@ jobs:
3837

3938
- name: Build Release version
4039
# Build trackereditor project (Release mode)
41-
run: ${{ env.LAZBUILD_WITH_PATH }} --build-all --build-mode=Release ${{ env.LAZ_OPT }} source/project/tracker_editor/trackereditor.lpi
40+
run: lazbuild --build-all --build-mode=Release ${{ env.LAZ_OPT }} source/project/tracker_editor/trackereditor.lpi
4241
shell: bash
4342

4443
- name: Build Unit Test on Windows
4544
# Build unit test project (Debug mode)
46-
run: ${{ env.LAZBUILD_WITH_PATH }} --build-all --build-mode=Debug ${{ env.LAZ_OPT }} source/project/unit_test/tracker_editor_test.lpi
45+
run: lazbuild --build-all --build-mode=Debug ${{ env.LAZ_OPT }} source/project/unit_test/tracker_editor_test.lpi
4746
shell: bash
4847

4948
- name: Run Unit Test on Windows

0 commit comments

Comments
 (0)