Skip to content

Commit c1e53b1

Browse files
authored
no install if already found (#438)
Signed-off-by: Dan Huang <[email protected]>
1 parent 84daa7c commit c1e53b1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,13 @@ jobs:
9090
python-version: ${{ inputs.python }}
9191

9292
- name: install system dependencies
93-
run: sudo apt update && sudo apt install -y g++ gcc git-all
93+
run: |
94+
if command -v g++ >/dev/null 2>&1; then
95+
echo "found g++ compiler"
96+
else
97+
echo "installing g++ etc compilers..."
98+
sudo apt update && sudo apt install -y g++ gcc
99+
fi
94100
shell: bash
95101

96102
- name: checkout code

0 commit comments

Comments
 (0)