Skip to content

Commit 01df8b9

Browse files
authored
ci: readd FreeBSD (#761)
* ci: readd FreeBSD * ci(freebsd): install python311 * ci(freebsd): python3 meta package * ci(freebsd): install perl5 * ci(freebsd): install gmake
1 parent 34859b8 commit 01df8b9

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: TestFreeBSD
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- '**/*.rs'
9+
- '**/Cargo.toml'
10+
- '.github/workflows/ci_test_freebsd.yml'
11+
pull_request:
12+
branches:
13+
- master
14+
paths:
15+
- '**/*.rs'
16+
- '**/Cargo.toml'
17+
- '.github/workflows/ci_test_freebsd.yml'
18+
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
21+
cancel-in-progress: true
22+
23+
jobs:
24+
test:
25+
runs-on: ubuntu-latest
26+
strategy:
27+
matrix:
28+
toolchain: ['nightly']
29+
steps:
30+
- uses: actions/checkout@v4
31+
- name: Test in FreeBSD
32+
id: test
33+
uses: vmactions/freebsd-vm@v1
34+
with:
35+
usesh: true
36+
sync: rsync
37+
copyback: false
38+
prepare: |
39+
pkg install -y curl pkgconf python3 perl5 gmake
40+
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf > install.sh
41+
chmod +x install.sh
42+
./install.sh -y --default-toolchain ${{ matrix.toolchain }} --profile minimal
43+
run: |
44+
. "$HOME/.cargo/env"
45+
set -ex
46+
47+
rustup component add clippy
48+
49+
cargo clippy --all-features --all-targets -- -Dwarnings

0 commit comments

Comments
 (0)