Skip to content

Commit 0155b5f

Browse files
authored
use native package managers for linux runner (#116)
* use native package for linux runner * skip install failure issue
1 parent 5879ece commit 0155b5f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ runs:
8888
- name: Install action dependencies
8989
shell: bash
9090
run: |
91+
if [[ "${{runner.os}}" == "Linux" ]]; then
92+
sudo apt-get update
93+
sudo apt-get install clang-format-${{ inputs.version }} clang-tidy-${{ inputs.version }} || true
94+
fi
9195
if [[ "${{runner.os}}" == "macOS" ]];then
9296
python3 -m venv '${{ github.action_path }}/venv'
9397
source '${{ github.action_path }}/venv/bin/activate'

0 commit comments

Comments
 (0)