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 3c0e5d1
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 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
14 changes: 14 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,20 @@ jobs:
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
- 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 gcc13 node-22 protobuf ruby-33
ruby -e 'pp RbConfig::CONFIG'
steps:
- name: Checkout
Expand Down

0 comments on commit 3c0e5d1

Please sign in to comment.