Skip to content

Commit

Permalink
enable openbsd
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Oct 1, 2024
1 parent c139442 commit f43bf90
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 21 deletions.
35 changes: 16 additions & 19 deletions .github/workflows/bsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,21 @@ jobs:
set -e
gmake install-sysdeps install-pydeps install print-sysinfo test test-memleaks
# openbsd:
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@v4
# - name: Run tests
# uses: vmactions/openbsd-vm@v1
# with:
# usesh: true
# prepare: |
# set -e
# pkg_add gcc python3
# run: |
# set -e
# make install-pip
# python3 -m pip install --user setuptools
# make install
# make test
# make test-memleaks
openbsd:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Run tests
uses: vmactions/openbsd-vm@v1
with:
usesh: true
prepare: |
set -e
pkg_add gmake
run: |
set -e
gmake install-sysdeps install-pydeps install print-sysinfo test test-memleaks
netbsd:
runs-on: ubuntu-latest
steps:
Expand All @@ -60,7 +57,7 @@ jobs:
usesh: true
prepare: |
set -e
pkg_add -v pkgin
/usr/sbin/pkg_add -v pkgin
pkgin update
run: |
set -e
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ else ifeq ($(UNAME_S),FreeBSD)
FREEBSD = true
else ifeq ($(UNAME_S),NetBSD)
NetBSD = true
else ifeq ($(UNAME_S),OpenBSD)
OpenBSD = true
endif

ifneq (,$(shell command -v sudo 2> /dev/null))
Expand Down Expand Up @@ -165,9 +167,11 @@ else ifdef HAS_YUM
else ifdef FREEBSD
$(SUDO) pkg install -y gmake python3 gcc
else ifdef NETBSD
# $(SUDO) pkg_add -v pkgin
# $(SUDO) /usr/sbin/pkg_add -v pkgin
# $(SUDO) pkgin update
$(SUDO) pkgin -y install python311-* py311-setuptools-* gcc12-*
$(SUDO) pkgin -y install gmake python311-* py311-setuptools-* gcc12-*
else ifdef OPENBSD
$(SUDO) pkg_add gmake gcc python3
endif

install-pydeps: ## Install GIT hooks, pip, test deps (also upgrades them).
Expand Down

0 comments on commit f43bf90

Please sign in to comment.