Skip to content

Commit

Permalink
github: build nbcompat
Browse files Browse the repository at this point in the history
  • Loading branch information
jperkin committed Dec 10, 2024
1 parent c74d0d8 commit c9fa403
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build-pkgin-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
mkdir ~/.ssh
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/net/libfetch/files
mkdir nbcompat
Expand All @@ -33,19 +34,28 @@ jobs:
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" \
../configure \
--prefix=/usr/local \
--with-dbdir=/usr/local/.pkgdb \
Expand Down

0 comments on commit c9fa403

Please sign in to comment.