-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,39 +23,36 @@ jobs: | |
ssh-keyscan anoncvs.netbsd.org >>~/.ssh/known_hosts | ||
cvs -d [email protected]:/cvsroot co -P pkgsrc/net/libfetch/files | ||
cvs -d [email protected]:/cvsroot co -P pkgsrc/pkgtools/libnbcompat/files | ||
( | ||
cd pkgsrc/pkgtools/libnbcompat/files | ||
./configure --enable-db | ||
bmake | ||
) | ||
( | ||
cd pkgsrc/net/libfetch/files | ||
mkdir nbcompat | ||
echo '#include <netdb.h>' >nbcompat/netdb.h | ||
echo '#include <stdio.h>' >nbcompat/stdio.h | ||
echo '#define HAVE_POLL_H 1' >nbcompat.h | ||
export BINOWN="$(id -un)" | ||
export ROOT_GROUP="$(id -gn)" | ||
env \ | ||
CFLAGS="-DHAVE_NBCOMPAT_H=1 -I${GITHUB_WORKSPACE}/pkgsrc/pkgtools/libnbcompat/files" \ | ||
bmake | ||
bmake DESTDIR=/tmp/destdir install | ||
) | ||
( | ||
cd pkgsrc/pkgtools/libnbcompat/files | ||
./configure | ||
bmake | ||
) | ||
- name: Get tags to build | ||
run: | | ||
#tags=$(git tag | grep ^v) | ||
tags="v24.12.0" | ||
echo "tags=$tags" >> $GITHUB_ENV | ||
- name: Build each tag | ||
run: | | ||
TOPDIR=$(pwd) | ||
mkdir bin | ||
for tag in ${{ env.tags }}; do | ||
git checkout $tag | ||
mkdir build | ||
( | ||
cd build | ||
env \ | ||
CFLAGS="-I${TOPDIR}/pkgsrc/pkgtools/libnbcompat/files" \ | ||
LDFLAGS="-L${TOPDIR}/pkgsrc/pkgtools/libnbcompat/files -lnbcompat" \ | ||
CFLAGS="-I${GITHUB_WORKSPACE}/pkgsrc/pkgtools/libnbcompat/files" \ | ||
LDFLAGS="-L${GITHUB_WORKSPACE}/pkgsrc/pkgtools/libnbcompat/files -lnbcompat" \ | ||
../configure \ | ||
--prefix=/usr/local \ | ||
--with-dbdir=/usr/local/.pkgdb \ | ||
|