Files
sshcrypt/.gitea/workflows/ci.yml
T
lotherk 05b8251333
ci / build (push) Failing after 45s
add the man page, CI, and install it alongside the binary
docs/sshcrypt.1 documents options, environment, exit codes and the security
limits; make lint-man lints it and CI runs that. The Gitea workflow builds,
runs make check, lints the page, then repeats the suite under ASan+UBSan.
make install now writes the man page too.
2026-11-21 16:50:28 +00:00

42 lines
945 B
YAML

name: ci
on:
push:
branches: [main]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: dependencies
run: |
SUDO=
if [ "$(id -u)" -ne 0 ] && command -v sudo >/dev/null 2>&1; then
SUDO=sudo
fi
if command -v apt-get >/dev/null 2>&1; then
$SUDO apt-get update
$SUDO apt-get install -y --no-install-recommends \
build-essential libssl-dev pkg-config \
openssh-client python3 util-linux procps
fi
- name: build
run: make
- name: test
run: make check
- name: man page
run: make lint-man
- name: sanitizers
run: |
make clean
make CFLAGS="-O1 -g -fsanitize=address,undefined -fno-omit-frame-pointer" \
LDFLAGS="-fsanitize=address,undefined"
make check