Skip to content

Commit 0627c36

Browse files
committed
test: Add pkgsrc build.
Used by NetBSD, but we build on Alpine Linux for speed. Separately, we will build on NetBSD without pkgsrc, to see whether it compiles and runs there. That VM build is more expensive and harder to debug, so we keep the pkgsrc Linux build for development.
1 parent 92578af commit 0627c36

File tree

4 files changed

+37
-1
lines changed

4 files changed

+37
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
tool: [autotools, clang-tidy, compcert, cppcheck, doxygen, goblint, infer, freebsd, misra, modules, rpm, slimcc, sparse, tcc, tokstyle]
20+
tool: [autotools, clang-tidy, compcert, cppcheck, doxygen, goblint, infer, freebsd, misra, modules, pkgsrc, rpm, slimcc, sparse, tcc, tokstyle]
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: Set up Docker Buildx
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM toxchat/pkgsrc:latest
2+
3+
WORKDIR /work
4+
COPY . /work/c-toxcore-0.2.18
5+
RUN ["tar", "zcf", "c-toxcore.tar.gz", "c-toxcore-0.2.18"]
6+
7+
WORKDIR /work/pkgsrc/chat/toxcore
8+
RUN ["bmake", "clean"]
9+
RUN ["bmake", "DISTFILES=c-toxcore.tar.gz", "DISTDIR=/work", "NO_CHECKSUM=yes"]
10+
RUN ["bmake", "install"]
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# ===== common =====
2+
# Ignore everything ...
3+
**/*
4+
# ... except sources
5+
!**/*.[ch]
6+
!**/*.cc
7+
!**/*.hh
8+
!CHANGELOG.md
9+
!LICENSE
10+
!README.md
11+
!auto_tests/data/*
12+
!other/bootstrap_daemon/bash-completion/**
13+
!other/bootstrap_daemon/tox-bootstrapd.*
14+
!other/proxy/*.mod
15+
!other/proxy/*.sum
16+
!other/proxy/*.go
17+
# ... and CMake build files (used by most builds).
18+
!**/CMakeLists.txt
19+
!.github/scripts/flags*.sh
20+
!cmake/*.cmake
21+
!other/pkgconfig/*
22+
!other/rpm/*
23+
!so.version

other/docker/pkgsrc/run

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
. "$(cd "$(dirname "${BASH_SOURCE[0]}")/../sources" && pwd)/run.sh"

0 commit comments

Comments
 (0)