Skip to content

Commit

Permalink
.github: initial ci support
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
  • Loading branch information
troglobit committed Apr 14, 2024
1 parent 642202f commit b25f6a6
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Bob the Builder

# Run on all branches, including all pull requests, except the 'dev'
# branch since that's where we run Coverity Scan (limited tokens/day)
on:
push:
branches:
- '**'
- '!dev'
pull_request:
branches:
- '**'

jobs:
build:
name: ${{ matrix.compiler }}
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [gcc, clang]
fail-fast: false
env:
MAKEFLAGS: -j3
CC: ${{ matrix.compiler }}
steps:
- name: Install deps ...
run: |
sudo apt-get -y install pkg-config libavahi-client-dev
- uses: actions/checkout@v4
- name: Configure ...
run: |
./autogen.sh
./configure --prefix=
- name: Build ...
run: |
make
- name: Install to ~/tmp and inspect ...
run: |
DESTDIR=~/tmp make install-strip
tree ~/tmp
ldd ~/tmp/sbin/mdns-alias
size ~/tmp/sbin/mdns-alias
~/tmp/sbin/mdns-alias -h
~/tmp/sbin/mdns-alias -v
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Publish mDNS Alias
==================
[![][3]][4] [![][5]][6]

This is a small C daemon that publishes mDNS CNAMEs using Avahi.

Expand Down Expand Up @@ -60,3 +61,7 @@ none did it better than [George Hawkins][1], I believe.

[1]: https://github.com/george-hawkins/avahi-aliases-notes
[2]: https://www.gnu.org/software/automake/manual/html_node/Cross_002dCompilation.html
[3]: https://img.shields.io/badge/License-ISC-blue.svg
[4]: https://en.wikipedia.org/wiki/ISC_license
[5]: https://github.com/troglobit/mdns-alias/actions/workflows/build.yml/badge.svg
[6]: https://github.com/troglobit/mdns-alias/actions/workflows/build.yml/

0 comments on commit b25f6a6

Please sign in to comment.