-
-
Notifications
You must be signed in to change notification settings - Fork 245
99 lines (94 loc) · 2.87 KB
/
unit-tests-bsd.yml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: Unit tests (BSD)
on:
push:
branches: [ main ]
paths:
- '.github/workflows/unit-tests-bsd.yml'
- 'src/**'
- 'Cargo.*'
- build.rs
pull_request:
branches: [ main ]
paths:
- '.github/workflows/unit-tests-bsd.yml'
- 'src/**'
- 'Cargo.*'
- build.rs
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
# BUG: These tests are broken
# unit-tests-freebsd:
# runs-on: ubuntu-22.04
# timeout-minutes: 20
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: recursive
# - name: Compile
# uses: vmactions/freebsd-vm@v1
# with:
# release: '14.1'
# usesh: true
# prepare: |
# pkg install -y rust git
# cargo install cargo-hack
# git config --global --add safe.directory /home/runner/work/eza/eza
# run: |
# set -e
# export CARGO_TERM_COLOR="always"
# export RUSTFLAGS="--deny warnings"
# cargo fmt --check
# cargo clippy -- -D warnings
# cargo hack test
unit-tests-netbsd:
runs-on: ubuntu-22.04
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Compile
uses: vmactions/netbsd-vm@v1
with:
release: '10.0'
usesh: true
prepare: |
PATH="/root/.cargo/bin:/usr/pkg/sbin:/usr/pkg/bin:$PATH"
PKG_PATH="https://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/10.0/All/"
export PATH PKG_PATH
/usr/sbin/pkg_add pkgin
pkgin -y install rust git
cargo install cargo-hack
git config --global --add safe.directory /home/runner/work/eza/eza
run: |
set -e
export CARGO_TERM_COLOR="always"
export RUSTFLAGS="--deny warnings"
cargo fmt --check
cargo clippy -- -D warnings
cargo hack test
unit-tests-openbsd:
runs-on: ubuntu-22.04
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Compile
uses: vmactions/openbsd-vm@v1
with:
release: '7.4'
usesh: true
prepare: |
pkg_add rust rust-rustfmt rust-clippy git
cargo install cargo-hack
git config --global --add safe.directory /home/runner/work/eza/eza
run: |
set -e
export CARGO_TERM_COLOR="always"
export RUSTFLAGS="--deny warnings"
cargo fmt --check
cargo clippy -- -D warnings
cargo hack test