rtlsdr-wsprd/.github/workflows/ci.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 32: mapping key "steps" already defined at line 25

74 wiersze
1.8 KiB
YAML

name: "CI"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '35 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:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: 'pip' # caching pip dependencies
steps:
- name: "Checkout repository"
uses: actions/checkout@v4
- name: "Python setup"
uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: 'pip'
- name: "CodeQL Init"
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: "Install dependencies and build"
run: |
sudo apt-get update
sudo apt-get -y --no-install-recommends install build-essential cmake libfftw3-dev libusb-1.0-0-dev librtlsdr-dev libcurl4-gnutls-dev cppcheck
pip install cpplint codespell
make
- name: "CodeQL Analysis (SAST)"
uses: github/codeql-action/analyze@v2
- name: "Cppcheck (C/C++ format & best best-practice)"
run: |
cppcheck --std=c11 *.c wsprd/*.c
- name: "Cpplint check (formatting & best-practice check)"
run: |
cpplint --linelength=1000 --extensions=c --headers=h --recursive * || true
- name: "Codespell check"
run: |
codespell -L 'rcall' *.md *.c *.h wsprd/*.c wsprd/*.h .github/workflows/ci.yml
- name: "Unit-Test"
run: |
echo "===== Decoder self-test ====="
./rtlsdr_wsprd -f 2m -c A1XYZ -l AB12CD -r ./signals/refSignalSnr0dB.iq
./rtlsdr_wsprd -f 2m -c A1XYZ -l AB12CD -t