-
Notifications
You must be signed in to change notification settings - Fork 531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI: Add OpenBSD build tests for staged commits #1964
Changes from all commits
d307044
5966c61
b5d5e02
c4dee98
fee45b8
15be234
58b130f
4529e4b
b6f09ca
050bf3e
4c99c36
b62a005
f9ed0b6
b8879da
fd5670f
6658293
2ae5dc0
a132ed6
7bb8915
6851174
aa50181
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -181,3 +181,61 @@ jobs: | |
with: | ||
name: build-logs-freebsd-${{ matrix.osversion }} | ||
path: btlayer-*.log | ||
|
||
openbsd: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout Sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run test-builds | ||
id: test-builds | ||
uses: vmactions/openbsd-vm@v1 | ||
with: | ||
usesh: true | ||
prepare: | | ||
pkg_add \ | ||
autoconf-2.72p0 \ | ||
autoconf-archive \ | ||
automake-1.16.5 \ | ||
bash \ | ||
coreutils \ | ||
cppunit \ | ||
git \ | ||
ggrep \ | ||
gmake \ | ||
libltdl \ | ||
libtool \ | ||
libnettle \ | ||
libxml \ | ||
libtool \ | ||
m4 \ | ||
metaauto | ||
|
||
mkdir $HOME/bin | ||
ln -s /usr/local/bin/ggrep $HOME/bin/grep | ||
|
||
run: | | ||
export MAKE=gmake | ||
export pjobs="-j`gnproc`" | ||
export AUTOMAKE_VERSION=1.16 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OpenBSD support for multi-version automake is complicated |
||
export amver=${AUTOMAKE_VERSION} | ||
export ACLOCAL_AUTOMAKE_DIR="/usr/local/share/aclocal-${AUTOMAKE_VERSION}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a similar hack that can avoid the following warnings?
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not that I know of. OpenBSD is rough around the edges in these areas |
||
export ACLOCAL_PATH="/usr/local/share/aclocal:/usr/local/share/aclocal-${AUTOMAKE_VERSION}" | ||
export AUTOCONF_VERSION=2.72 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. autoconf, too |
||
export acver=${AUTOCONF_VERSION} | ||
export ltver=2.4.2 | ||
export CFLAGS='-Wno-compound-token-split-by-macro' | ||
export LDFLAGS="-L/usr/local/lib" | ||
# until we remove GNUisms from our grep commands, | ||
# shadow system `grep` with `ggrep` installed/linked earlier | ||
export PATH="$HOME/bin:$PATH" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we need this to shadow the system 'grep' command
kinkie marked this conversation as resolved.
Show resolved
Hide resolved
|
||
./test-builds.sh | ||
|
||
- name: Publish build logs | ||
if: success() || failure() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: build-logs-openbsd | ||
path: btlayer-*.log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a bunch of GNUisms in our build chain