Merge pull request #1 from Guenael/guenael

feat(CI): GitHub build pipeline (Action) added
pull/16/merge^2
Guenael, VA2GKA 2021-12-05 17:26:30 -05:00 zatwierdzone przez GitHub
commit 27328fd0fa
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 60 dodań i 1 usunięć

59
.github/workflows/ci.yml vendored 100644
Wyświetl plik

@ -0,0 +1,59 @@
name: "CI"
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '42 20 * * 5'
jobs:
analyze:
name: Build-Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
- name: Install dependencies and build
run: |
sudo apt-get -y update
sudo apt-get -y install build-essential
make
- name: SAST check (C/C++ code analysis)
run: |
sudo apt-get -y install cppcheck
echo "===== CPPCHECK ====="
cppcheck --std=c11 *.c
- name: Cpplint check (formatting & best-practice check)
run: |
pip install cpplint
echo "===== CPPLINT ====="
cpplint --linelength=1000 --extensions=c --headers=h *.c || true
- name: Spellchecking
run: |
pip install codespell
echo "===== CODESPELL ====="
codespell *.c *.h
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

Wyświetl plik

@ -31,7 +31,7 @@ const float kFSK_dev = 6.25f; // tone deviation in Hz and symbol rate
void usage()
{
fprintf(stderr, "Decode a 15-second (or slighly shorter) WAV file.\n");
fprintf(stderr, "Decode a 15-second (or slightly shorter) WAV file.\n");
}
float hann_i(int i, int N)