From 642657108bc889f608c89decfe7e7fcfec9a699b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AA=E3=81=A4=E3=81=8D?= Date: Fri, 1 Nov 2024 00:24:01 -0700 Subject: [PATCH] Test rare operating systems --- .github/actions/setup-vm/action.yml | 29 +++++++++++++++++++++++++++++ .github/workflows/build.yml | 14 ++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/.github/actions/setup-vm/action.yml b/.github/actions/setup-vm/action.yml index 15301e2..e5cd464 100644 --- a/.github/actions/setup-vm/action.yml +++ b/.github/actions/setup-vm/action.yml @@ -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 -- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9936bdc..ad046ef 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 node-22 protobuf ruby-33 + pkg install "$(pkg search -HI -o pkg.name "$(ruby -e 'puts RbConfig::CONFIG["CC"]')")" steps: - name: Checkout