Skip to content

refactor: use FutureExt if possible (#923) #8

refactor: use FutureExt if possible (#923)

refactor: use FutureExt if possible (#923) #8

name: Check FreeBSD
on:
merge_group:
types: [checks_requested]
push:
branches:
- master
paths:
- '**/*.rs'
- '**/Cargo.toml'
- '.github/workflows/ci_check_freebsd.yml'
pull_request:
branches:
- master
paths:
- '**/*.rs'
- '**/Cargo.toml'
- '.github/workflows/ci_check_freebsd.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
check_freebsd:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: ['nightly']
steps:
- uses: actions/checkout@v6
- name: Check in FreeBSD
id: check
uses: vmactions/freebsd-vm@v1
with:
# https://github.com/freebsd/pkg/issues/2653
release: "14.3"
usesh: true
sync: rsync
copyback: false
prepare: |
export ASSUME_ALWAYS_YES=yes
export IGNORE_OSVERSION=yes
pkg bootstrap -f
pkg update -f
pkg upgrade -y
pkg install -y curl pkgconf python3 perl5 gmake
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf > install.sh
chmod +x install.sh
./install.sh -y --default-toolchain ${{ matrix.toolchain }} --profile minimal
run: |
. "$HOME/.cargo/env"
set -ex
rustup component add clippy
cargo clippy --all-features --all-targets -- -Dwarnings