@@ -78,36 +78,64 @@ jobs:
78
78
- name : Install Rust
79
79
run : rustup update stable
80
80
- name : Install cross
81
- uses : taiki-e/install-action@v2
82
- with :
83
- # https://github.com/cross-rs/cross/issues/724
84
-
81
+ uses : taiki-e/install-action@cross
82
+ # We don't test BSDs, since we already test them in Cirrus/vmactions.
85
83
- name : Android
86
84
if : startsWith(matrix.os, 'ubuntu')
87
85
run : cross test --target arm-linux-androideabi
88
- - name : NetBSD
89
- if : startsWith(matrix.os, 'ubuntu')
90
- run : cross build --target x86_64-unknown-netbsd
91
- - name : FreeBSD
92
- if : startsWith(matrix.os, 'ubuntu')
93
- run : cross build --target x86_64-unknown-freebsd
94
86
- name : iOS
95
87
if : startsWith(matrix.os, 'macos')
96
- run : cross build --target aarch64-apple-ios
88
+ run : |
89
+ rustup target add aarch64-apple-ios
90
+ cross build --target aarch64-apple-ios
97
91
- name : Linux x32
98
92
if : startsWith(matrix.os, 'ubuntu')
99
- run : cross check --target x86_64-unknown-linux-gnux32
93
+ run : |
94
+ rustup target add x86_64-unknown-linux-gnux32
95
+ cross check --target x86_64-unknown-linux-gnux32
100
96
- name : Fuchsia
101
97
if : startsWith(matrix.os, 'ubuntu')
102
98
run : |
103
- rustup target add x86_64-fuchsia
104
- cargo build --target x86_64-fuchsia
99
+ rustup target add x86_64-unknown- fuchsia
100
+ cargo build --target x86_64-unknown- fuchsia
105
101
- name : illumos
106
102
if : startsWith(matrix.os, 'ubuntu')
107
103
run : |
108
104
rustup target add x86_64-unknown-illumos
109
105
cargo build --target x86_64-unknown-illumos
110
106
107
+ openbsd :
108
+ runs-on : macos-12
109
+ steps :
110
+ - uses : actions/checkout@v3
111
+ - name : Test OpenBSD
112
+ id : test
113
+ uses : vmactions/openbsd-vm@v0
114
+ with :
115
+ envs : CARGO_INCREMENTAL CARGO_NET_GIT_FETCH_WITH_CLI CARGO_NET_RETRY RUST_BACKTRACE RUSTFLAGS RUSTDOCFLAGS RUSTUP_MAX_RETRIES
116
+ usesh : true
117
+ # OpenBSD is tier 3 target, so install rust from package manager instead of rustup
118
+ prepare : |
119
+ pkg_add git rust
120
+ run : |
121
+ cargo test
122
+
123
+ dragonfly :
124
+ runs-on : macos-12
125
+ steps :
126
+ - uses : actions/checkout@v3
127
+ - name : Test Dragonfly BSD
128
+ id : test
129
+ uses : vmactions/dragonflybsd-vm@v0
130
+ with :
131
+ envs : CARGO_INCREMENTAL CARGO_NET_GIT_FETCH_WITH_CLI CARGO_NET_RETRY RUST_BACKTRACE RUSTFLAGS RUSTDOCFLAGS RUSTUP_MAX_RETRIES
132
+ usesh : true
133
+ # Dragonfly BSD is tier 3 target, so install rust from package manager instead of rustup
134
+ prepare : |
135
+ pkg install -y git rust
136
+ run : |
137
+ cargo test
138
+
111
139
msrv :
112
140
runs-on : ${{ matrix.os }}
113
141
strategy :
0 commit comments