-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: test OpenBSD + FreeBSD + illumos in Linux VM
workaround greenlet installation on OmniOS v11: libev assumes inotify.h must be Linux. make autoconf stop offering it.
- Loading branch information
Showing
5 changed files
with
549 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: bsd | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- '*.py' | ||
- 'tox.ini' | ||
- '.github/workflows/bsd.yml' | ||
pull_request: | ||
branches: | ||
- master | ||
permissions: | ||
# BOLD WARNING: do not add permissions, this workflow executes remote code | ||
contents: read | ||
env: | ||
FORCE_COLOR: 1 | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
freebsd: | ||
name: freebsd | ||
timeout-minutes: 20 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: vmactions/freebsd-vm@v1 | ||
with: | ||
prepare: pkg install -y nginx python311 py311-pip py311-tox py311-sqlite3 | ||
usesh: true | ||
copyback: false | ||
# not a typo: "openssl --version" != "openssl version" | ||
run: | | ||
uname -a \ | ||
&& python3.11 --version \ | ||
&& python3.11 -m tox --version \ | ||
&& openssl version \ | ||
&& pkg info nginx \ | ||
&& python3.11 -m tox -e run-module \ | ||
&& python3.11 -m tox -e run-entrypoint \ | ||
&& python3.11 -m tox -e py | ||
openbsd: | ||
name: openbsd | ||
timeout-minutes: 20 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: vmactions/openbsd-vm@v1 | ||
with: | ||
prepare: pkg_add python py3-pip py3-tox py3-sqlite3 nginx | ||
usesh: true | ||
copyback: false | ||
run: | | ||
uname -a \ | ||
&& python3 --version \ | ||
&& python3 -m tox --version \ | ||
&& openssl version \ | ||
&& pkg_info nginx \ | ||
&& python3 -m tox -e run-module \ | ||
&& python3 -m tox -e run-entrypoint \ | ||
&& python3 -m tox -e py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: illumos | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- '*.py' | ||
- 'tox.ini' | ||
- '.github/workflows/illumos.yml' | ||
pull_request: | ||
branches: | ||
- master | ||
permissions: | ||
# BOLD WARNING: do not add permissions, this workflow executes remote code | ||
contents: read | ||
env: | ||
FORCE_COLOR: 1 | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
omnios: | ||
name: illumos | ||
timeout-minutes: 20 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: vmactions/omnios-vm@v1 | ||
with: | ||
# need gcc: compile greenlet from source | ||
# autoconf must pretend inotify unavail: libev FTBFS | ||
# /tmp/.nginx must exist because nginx will not create configured tmp | ||
prepare: | | ||
pkg install pip-311 python-311 sqlite-3 nginx gcc13 | ||
usesh: true | ||
copyback: false | ||
run: | | ||
cat /etc/release \ | ||
&& uname -a \ | ||
&& python3 --version \ | ||
&& openssl version \ | ||
&& pkg info nginx \ | ||
&& gcc -dM -E - </dev/null \ | ||
&& ac_cv_header_sys_inotify_h=no ac_cv_func_inotify_init=no python3 -m pip install gevent \ | ||
&& mkdir -p /tmp/.nginx \ | ||
&& python3 -m pip install tox \ | ||
&& python3 -m tox --version \ | ||
&& python3 -m tox -e run-module \ | ||
&& python3 -m tox -e run-entrypoint \ | ||
&& python3 -m tox -e py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.