forked from hrishikesh-kadam/setup-lcov
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
34 lines (29 loc) · 933 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: 'Setup LCOV'
author: 'Hrishikesh Kadam <[email protected]>'
description: 'Composite GitHub Action to setup LCOV.'
runs:
using: 'composite'
steps:
- name: Setup LCOV on ${{ runner.os }}
if: runner.os == 'Linux'
run: sudo apt-get -y install lcov
shell: bash
- name: Setup LCOV on ${{ runner.os }}
if: runner.os == 'macOS'
run: brew install lcov
shell: bash
- name: Setup LCOV on ${{ runner.os }}
if: runner.os == 'Windows'
run: |
choco install lcov
# For bash
echo "C:\ProgramData\chocolatey\lib\lcov\tools\bin" | Out-File -FilePath $env:GITHUB_PATH -Append
# For pwsh, cmd and powershell
echo $env:GITHUB_ACTION_PATH
echo "$env:GITHUB_ACTION_PATH\bin" | Out-File -FilePath $env:GITHUB_PATH -Append
shell: pwsh
- run: lcov --version
shell: bash
branding:
icon: 'play-circle'
color: 'blue'