Skip to content

Commit

Permalink
ci(github): test on FreeBSD and OpenBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
dbohdan committed Jan 30, 2024
1 parent 36a76fc commit b0c84bf
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,21 @@ set -e
if [ "$(uname)" = Linux ]; then
sudo apt install -y graphicsmagick
fi

if [ "$(uname)" = FreeBSD ]; then
sudo pkg install -y gmake GraphicsMagick tcl86
sudo ln -s /usr/local/bin/tclsh8.6 /usr/local/bin/tclsh
fi

if [ "$(uname)" = NetBSD ]; then
sudo pkgin -y install gmake GraphicsMagick tcl
fi

if [ "$(uname)" = OpenBSD ]; then
# doas(1) isn't configured.
# See https://github.com/cross-platform-actions/action/issues/75
sudo pkg_add -I gmake GraphicsMagick tcl%8.6
sudo ln -s /usr/local/bin/tclsh8.6 /usr/local/bin/tclsh
fi

gmake test
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,18 @@ jobs:
strategy:
matrix:
os:
- name: freebsd
architecture: x86-64
version: '13.2'
host: ubuntu-latest
- name: netbsd
architecture: x86-64
version: '9.3'
host: ubuntu-latest
- name: openbsd
architecture: arm64
version: '7.4'
host: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit b0c84bf

Please sign in to comment.