Skip to content

Commit

Permalink
GitHub Actions: enable BSD workflows
Browse files Browse the repository at this point in the history
We disabled BSD workflows due to the issue
actions/runner-images#8730, which in turn had been fixed, so
let's enable these BSD workflows

Signed-off-by: leleliu008 <[email protected]>
  • Loading branch information
leleliu008 committed Nov 26, 2023
1 parent c480d71 commit 62c17d8
Show file tree
Hide file tree
Showing 3 changed files with 137 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/testing-freebsd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: run units target on FreeBSD

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
testing:
runs-on: macos-12

strategy:
fail-fast: false
matrix:
freebsd-version: [12,13]

steps:
- uses: actions/checkout@v4

- uses: actions/cache@v3
with:
path: ~/.vagrant.d/boxes
key: vagrant-generic-freebsd-${{ matrix.freebsd-version }}
restore-keys: |
vagrant-generic-freebsd-${{ matrix.freebsd-version }}
# https://app.vagrantup.com/boxes/search?utf8=%E2%9C%93&sort=downloads&provider=&q=freebsd
# https://github.com/leleliu008/github-actions-vagrant
- uses: leleliu008/github-actions-vagrant@v2
with:
mem: 2048
box: generic/freebsd${{ matrix.freebsd-version }}
log: warn
run: |
run pkg install -y automake pkgconf gmake python3
run freebsd-version
run cc --version
run ./autogen.sh
run ./configure --prefix=/usr
run gmake
run gmake install
run file ctags
run ctags --version
run gmake check CI=gha+vagrant+freebsd
run gmake roundtrip CI=gha+vagrant+freebsd
41 changes: 41 additions & 0 deletions .github/workflows/testing-netbsd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: run units target on NetBSD

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
testing:
runs-on: macos-12

steps:
- uses: actions/checkout@v4

- uses: actions/cache@v3
with:
path: ~/.vagrant.d/boxes
key: vagrant-generic-netbsd-9
restore-keys: |
vagrant-generic-netbsd-9
- uses: leleliu008/github-actions-vagrant@v2
with:
mem: 2048
box: generic/netbsd9
log: warn
run: |
run sudo pkgin -y install mozilla-rootcerts automake autoconf pkg-config gmake
run cc --version
run ./autogen.sh
run ./configure --prefix=/usr
run gmake
run sudo gmake install
run file /usr/bin/ctags
run ctags --version
# bugs to fix
#run make check CI=gha+vagrant+netbsd
run gmake roundtrip CI=gha+vagrant+netbsd
50 changes: 50 additions & 0 deletions .github/workflows/testing-openbsd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: run units target on OpenBSD

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
testing:
runs-on: macos-12

steps:
- uses: actions/checkout@v4

- uses: actions/cache@v3
with:
path: ~/.vagrant.d/boxes
key: vagrant-generic-openbsd-7
restore-keys: |
vagrant-generic-openbsd-7
- uses: leleliu008/github-actions-vagrant@v2
with:
mem: 2048
box: generic/openbsd7
log: warn
run: |
export AUTOCONF_VERSION=2.69
export AUTOMAKE_VERSION=1.16
export CFLAGS='-I/usr/local/include -L/usr/local/lib'
if [ ! -f /usr/local/lib/libiconv.so ] ; then
sudo ln -s /usr/local/lib/libiconv.so.* /usr/local/lib/libiconv.so
fi
run sudo pkg_add automake%1.16 gmake
run cc --version
run ./autogen.sh
run ./configure --prefix=/usr
run gmake
run sudo gmake install
run file /usr/bin/ctags
run ctags --version
# bugs to fix
#run make check CI=gha+vagrant+openbsd
run gmake roundtrip CI=gha+vagrant+openbsd

0 comments on commit 62c17d8

Please sign in to comment.