Skip to content

Commit 268992e

Browse files
use env variable RUNNER_OS
1 parent 04dfcaa commit 268992e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@ jobs:
99
runs-on: ${{ matrix.operating-system }}
1010
strategy:
1111
matrix:
12-
operating-system: [windows-latest,ubuntu-latest,macos-latest]
12+
operating-system: [windows-latest,ubuntu-latest]
1313
lazarus-versions: [stable]
1414
steps:
1515
- uses: actions/checkout@v2
1616
- name: Install Lazarus
1717
uses: gcarreno/[email protected]
1818
with:
1919
lazarus-version: ${{ matrix.lazarus-versions }}
20-
include-packages: "Synapse 40.1"
2120
- name: Build the Main Application
2221
if: ${{ matrix.operating-system != 'macos-latest' }}
2322
run: lazbuild -B "source/project/tracker_editor/trackereditor.lpi"
@@ -27,4 +26,5 @@ jobs:
2726
- name: Build the Unit Tests Application
2827
run: lazbuild -B "source/project/unit_test/tracker_editor_test.lpi"
2928
- name: Run the Unit Tests Application
29+
shell: bash
3030
run: source ./scripts/travis_unit_test.sh

scripts/travis_unit_test.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Run unit test in Windows, Linux and macOS
44

55
#----------- check for Windows, Linux and macOS build
6-
if [ "$TRAVIS_OS_NAME" = "linux" ]
6+
if [ "$RUNNER_OS" = "Linux" ]
77
then
88
# show Linux OS version
99
uname -a
@@ -16,7 +16,7 @@ then
1616
xvfb-run enduser/test_trackereditor -a --format=plain
1717
set +e
1818

19-
elif [ "$TRAVIS_OS_NAME" = "osx" ]
19+
elif [ "$RUNNER_OS" = "macOS" ]
2020
then
2121
# show macOS version
2222
sw_vers
@@ -29,7 +29,7 @@ then
2929
enduser/test_trackereditor -a --format=plain
3030
set +e
3131

32-
elif [ "$TRAVIS_OS_NAME" = "windows" ]
32+
elif [ "$RUNNER_OS" = "Windows" ]
3333
then
3434
# Exit immediately if a command exits with a non-zero status.
3535
set -e

0 commit comments

Comments
 (0)