move cloc to its own job

This commit is contained in:
Kyle Spearrin 2020-06-09 13:18:22 -04:00
parent 092b536009
commit 8f1db25c5c
1 changed files with 15 additions and 5 deletions

View File

@ -8,6 +8,21 @@ on:
jobs:
cloc:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Set up cloc
run: |
sudo apt-get update
sudo apt-get -y install cloc
- name: Print lines of code
run: cloc --vcs git --exclude-dir Resources,store,test,Properties --include-lang C#,XAML
android:
runs-on: windows-latest
@ -29,11 +44,6 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v2
- name: Print lines of code
run: |
choco install cloc --no-progress
cloc --vcs git --exclude-dir Resources,store,test,Properties --include-lang C#,XAML
- name: Decrypt secrets
if: github.ref == 'refs/heads/master'
run: ./.github/scripts/android/decrypt-secrets.ps1