Skip to content

Commit

Permalink
use native package managers for linux runner (#116)
Browse files Browse the repository at this point in the history
* use native package for linux runner

* skip install failure issue
  • Loading branch information
shenxianpeng authored Oct 26, 2022
1 parent 5879ece commit 0155b5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ runs:
- name: Install action dependencies
shell: bash
run: |
if [[ "${{runner.os}}" == "Linux" ]]; then
sudo apt-get update
sudo apt-get install clang-format-${{ inputs.version }} clang-tidy-${{ inputs.version }} || true
fi
if [[ "${{runner.os}}" == "macOS" ]];then
python3 -m venv '${{ github.action_path }}/venv'
source '${{ github.action_path }}/venv/bin/activate'
Expand Down

0 comments on commit 0155b5f

Please sign in to comment.