-
Notifications
You must be signed in to change notification settings - Fork 121
58 lines (53 loc) · 1.47 KB
/
ci_check_freebsd.yml
File metadata and controls
58 lines (53 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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