Skip to content

Commit 3515ed3

Browse files
Condense install deps action step
1 parent d262531 commit 3515ed3

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,14 @@ jobs:
4848
distribution: temurin
4949

5050
- name: Install deps
51-
if: runner.os == 'Linux'
51+
if: runner.os == 'Linux' || runner.os == 'macOS'
5252
run: |
53-
sudo apt update
54-
sudo apt-get install -y cmake ninja-build gcc g++ liblist-moreutils-perl
55-
56-
- name: Install deps
57-
if: runner.os == 'macOS'
58-
run: |
59-
sudo cpan -i List::MoreUtils
53+
if [ $RUNNER_OS == "Linux" ]; then
54+
sudo apt update
55+
sudo apt-get install -y cmake ninja-build gcc g++ liblist-moreutils-perl
56+
elif [ $RUNNER_OS == "macOS" ]; then
57+
sudo cpan -i List::MoreUtils
58+
fi
6059
6160
- name: Configure CMake
6261
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.

0 commit comments

Comments
 (0)