mirror of
https://github.com/rustic-rs/rustic.git
synced 2025-10-26 11:18:51 +00:00
fix CI for *bsd
This commit is contained in:
parent
b054204cc2
commit
442ee8a561
6
.github/workflows/release.yaml
vendored
6
.github/workflows/release.yaml
vendored
@ -47,9 +47,9 @@ jobs:
|
||||
architecture: i686
|
||||
binary-postfix: ""
|
||||
use-cross: true
|
||||
- os: openbsd-latest
|
||||
os-name: openbsd
|
||||
target: x86_64-unknown-openbsd
|
||||
- os: ubuntu-latest
|
||||
os-name: netbsd
|
||||
target: x86_64-unknown-netbsd
|
||||
architecture: x86_64
|
||||
binary-postfix: ""
|
||||
use-cross: true
|
||||
|
||||
@ -231,17 +231,29 @@ impl LocalBackend {
|
||||
symlink(linktarget, filename)?;
|
||||
}
|
||||
NodeType::Dev { device } => {
|
||||
#[cfg(not(any(target_os = "macos", target_os = "openbsd")))]
|
||||
#[cfg(not(any(
|
||||
target_os = "macos",
|
||||
target_os = "openbsd",
|
||||
target_os = "freebsd"
|
||||
)))]
|
||||
let device = *device;
|
||||
#[cfg(any(target_os = "macos", target_os = "openbsd"))]
|
||||
let device = *device as i32;
|
||||
let device = i32::try_from(*device)?;
|
||||
#[cfg(target_os = "freebsd")]
|
||||
let device = u32::try_from(*device)?;
|
||||
mknod(&filename, SFlag::S_IFBLK, Mode::empty(), device)?;
|
||||
}
|
||||
NodeType::Chardev { device } => {
|
||||
#[cfg(not(any(target_os = "macos", target_os = "openbsd")))]
|
||||
#[cfg(not(any(
|
||||
target_os = "macos",
|
||||
target_os = "openbsd",
|
||||
target_os = "freebsd"
|
||||
)))]
|
||||
let device = *device;
|
||||
#[cfg(any(target_os = "macos", target_os = "openbsd"))]
|
||||
let device = *device as i32;
|
||||
let device = i32::try_from(*device)?;
|
||||
#[cfg(target_os = "freebsd")]
|
||||
let device = u32::try_from(*device)?;
|
||||
mknod(&filename, SFlag::S_IFCHR, Mode::empty(), device)?;
|
||||
}
|
||||
NodeType::Fifo => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user