Skip to content

Oculante next

Oculante next #1041

name: Check NetBSD minimal
env:
CMAKE_ARGS: "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
on:
push:
branches: [ "master" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
jobs:
test:
runs-on: ubuntu-latest
name: Test in NetBSD
steps:
- uses: actions/checkout@v4
- name: Test in NetBSD
id: test
uses: vmactions/netbsd-vm@v1.2.0
with:
usesh: true
copyback: false
prepare: |
/usr/sbin/pkg_add -u curl pkg-config cmake openssl fontconfig freetype2 gdk-pixbuf2 cairo pango nasm perl git python313 ninja
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
run: |
PATH=$HOME/.cargo/bin:$PATH
export PATH
mkdir -p $HOME/bin
printf '#!/bin/sh\nif [ "$1" = "--build" ] || [ "$1" = "--install" ] || [ "$1" = "-E" ]; then\n exec /usr/pkg/bin/cmake "$@"\nelse\n exec /usr/pkg/bin/cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 "$@"\nfi\n' > $HOME/bin/cmake
chmod +x $HOME/bin/cmake
export PATH=$HOME/bin:$PATH
cargo check --no-default-features