Files
HamPack/.gitea/workflows/check.yml
T
David YoungandClaude Opus 5.5 6c76f94ac6
check / lint-and-test (push) Successful in 2m2s
check / packages (push) Successful in 23s
Add radio, which finds radios on USB, and put you in the uucp group
`radio` lists each radio plugged into USB: its serial ports, the sound
card that came with it (the same USB device, or behind the radio's own
hub), and its model and Hamlib model number. Icoms are recognised by
their USB serial number. `radio detect --probe` asks the others with the
CAT ID; command or Icom's CI-V transceiver ID, at the usual baud rates,
on ports no other program has open; `radio probe PORT` asks one port.
It drops DTR and RTS as soon as a port opens. The radios it knows are
in radios.conf.

update.sh links ~/.local/bin/radio to the clone, unless a different
radio is already there, and adds you to uucp, which owns serial ports on
Arch. hampackremove removes the link, and takes you out of uucp only if
HamPack put you in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 12:12:31 -07:00

39 lines
1.2 KiB
YAML

# Lint and test every push and pull request, and check that every package in
# packages.conf can still be installed. Packages can be renamed or dropped
# upstream without any change here, so that check also runs once a week.
name: check
on:
push:
pull_request:
schedule:
- cron: "17 6 * * 1"
workflow_dispatch:
jobs:
lint-and-test:
if: github.event_name != 'schedule'
runs-on: ubuntu-latest
container: archlinux:latest
steps:
# nodejs is for actions/checkout itself
- name: Install tools
run: pacman -Syu --noconfirm --needed bats shellcheck make git jq zip unzip curl which diffutils file python nodejs
- uses: actions/checkout@v4
# As an ordinary user, as a developer runs them: root ignores file permissions
- name: make lint test
run: |
useradd -m tester
chown -R tester "$GITHUB_WORKSPACE"
su tester -c "cd '$GITHUB_WORKSPACE' && make check"
packages:
runs-on: ubuntu-latest
container: archlinux:latest
steps:
- name: Install tools
run: pacman -Syu --noconfirm --needed make git jq curl nodejs
- uses: actions/checkout@v4
- name: make check-packages
run: make check-packages