Skip to content

Commit

Permalink
Update OpenBSD version to 7.6 in GitHub Actions
Browse files Browse the repository at this point in the history
Now, it seems cross-platform-actions/action supports OpenBSD 7.6.

We use hash here while v0.25.0 does not support it yet and this is
an external action so it is better to use a commit hash instead of
a tag to avoid any unexpected changes.

cross-platform-actions/action@595d543
  • Loading branch information
lambdalisue committed Nov 20, 2024
1 parent f5a52df commit 50dffea
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,17 @@ jobs:
test-cross-platform:
strategy:
matrix:
# don't forget to update current os versions, see https://github.com/cross-platform-actions/action?tab=readme-ov-file#supported-platforms
include:
- { os: freebsd, version: "14.1", prepare_cmd: "sudo pkg install -y rust cmake rust-bindgen-cli" }
# 7.6 is not supported by action@v0.25.0 yet
- { os: openbsd, version: "7.5", prepare_cmd: "sudo pkg_add rust cmake llvm%17; export LIBCLANG_PATH=/usr/local/llvm17/lib" }
- {
os: freebsd,
version: "14.1",
prepare_cmd: "sudo pkg install -y rust cmake rust-bindgen-cli",
}
- {
os: openbsd,
version: "7.6",
prepare_cmd: "sudo pkg_add rust cmake llvm%17; export LIBCLANG_PATH=/usr/local/llvm17/lib",
}
fail-fast: false
runs-on: ubuntu-latest
name: "test (${{matrix.os}}-${{matrix.version}})"
Expand All @@ -127,7 +133,7 @@ jobs:
target/
key: ${{matrix.os}}-${{matrix.version}}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Cross-platform test
uses: cross-platform-actions/action@v0.25.0
uses: cross-platform-actions/action@595d543e5d1aeb6d48c0a176965028afe56c7018
with:
operating_system: ${{matrix.os}}
version: "${{matrix.version}}"
Expand Down

0 comments on commit 50dffea

Please sign in to comment.