Skip to content

Commit

Permalink
Test rare operating systems
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme committed Nov 1, 2024
1 parent 79a2f1c commit 8c8a9e4
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .github/actions/setup-vm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,35 @@ runs:
prepare: pkg_add bash
run: set -e; ${{ inputs.run }}

- uses: vmactions/netbsd-vm@v1
if: inputs.os == 'netbsd'
with:
copyback: false
usesh: true
run: set -e; ${{ inputs.run }}

- uses: vmactions/dragonflybsd-vm@v1
if: inputs.os == 'dragonflybsd'
with:
copyback: false
usesh: true
prepare: pkg install -y bash
run: set -e; ${{ inputs.run }}

- uses: vmactions/solaris-vm@v1
if: inputs.os == 'solaris'
with:
copyback: false
usesh: true
run: set -e; ${{ inputs.run }}

- uses: vmactions/omnios-vm@v1
if: inputs.os == 'omnios'
with:
copyback: false
usesh: true
run: set -e; ${{ inputs.run }}

- run: |
mkdir -p "$HOME/.local/bin" && tee "$HOME/.local/bin/bash" <<'EOF' && chmod a+x "$HOME/.local/bin/bash"
#!/bin/bash --
Expand Down
19 changes: 16 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,22 @@ jobs:
vm:
os: openbsd
run: |
ruby=$(pkg_info -Q ruby | grep '^ruby-[0-9]' | sort -rV | head -n 1)
pkg_add node protobuf "$ruby"
pkg_info "$ruby" | grep 'ln -sf' | $SHELL
pkg_add node protobuf ruby%3.3
pkg_info ruby%3.3 | grep 'ln -sf' | $SHELL
- os: ubuntu-latest
vm:
os: netbsd
run: /usr/sbin/pkg_add nodejs protobuf ruby
- os: ubuntu-latest
vm:
os: dragonflybsd
run: pkg install -y libnghttp2 libuv node npm protobuf ruby rubygem-bundler rubygem-rake
- os: ubuntu-latest
vm:
os: omnios
run: |
pkg install build-essential node-22 protobuf ruby-33
pkg install "$(pkg search -HI -o pkg.name "$(ruby -e 'puts RbConfig::CONFIG["CC"]')")"
steps:
- name: Checkout
Expand Down

0 comments on commit 8c8a9e4

Please sign in to comment.