Skip to content

cmake: add support

cmake: add support #45

Workflow file for this run

# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
#
# SPDX-License-Identifier: curl
name: 'Source'
'on':
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
permissions: {}
jobs:
checksrc:
name: 'checksrc'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
persist-credentials: false
- name: 'checksrc'
run: |
# shellcheck disable=SC2046
scripts/checksrc.pl $(git ls-files '*.c' '*.h')
linters:
name: 'spellcheck, linters, REUSE'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
persist-credentials: false
- name: 'install prereqs'
run: |
/home/linuxbrew/.linuxbrew/bin/brew install shellcheck zizmor
python3 -m venv ~/venv
~/venv/bin/pip --disable-pip-version-check --no-input --no-cache-dir install --progress-bar off --prefer-binary \
-r .github/workflows/requirements.txt
- name: 'REUSE check'
run: |
source ~/venv/bin/activate
reuse lint
- name: 'zizmor GHA'
env:
GH_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
zizmor --pedantic .github/workflows/*.yml
- name: 'shellcheck'
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
shellcheck --version
# shellcheck disable=SC2046
shellcheck $(grep -l -E '^#!(/usr/bin/env bash|/bin/sh|/bin/bash)' $(git ls-files))
- name: 'spacecheck'
run: scripts/spacecheck.pl
- name: 'json check'
run: |
jq --indent 4 < tests.json > tests-expected.json
diff -u tests.json tests-expected.json
- name: 'codespell'
run: |
source ~/venv/bin/activate
codespell --version
codespell README.md RELEASE-NOTES CONTRIBUTING.md trurl.1 trurl.c