mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 14:48:30 +00:00
Remove DragonFly BSD support
This commit is contained in:
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
@@ -378,7 +378,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
system: [freebsd, openbsd, netbsd, dragonfly]
|
system: [freebsd, openbsd, netbsd]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@@ -446,22 +446,7 @@ jobs:
|
|||||||
cp target/release/dcr "$ASSET"
|
cp target/release/dcr "$ASSET"
|
||||||
echo "BSD_ASSET=${ASSET}" >> "$GITHUB_ENV"
|
echo "BSD_ASSET=${ASSET}" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
# --- DRAGONFLYBSD ---
|
|
||||||
- name: Build in DragonFly BSD VM
|
|
||||||
if: matrix.system == 'dragonfly'
|
|
||||||
uses: vmactions/dragonflybsd-vm@v1
|
|
||||||
with:
|
|
||||||
usesh: true
|
|
||||||
run: |
|
|
||||||
pkg install -y rust perl5 gmake
|
|
||||||
cargo build --release
|
|
||||||
|
|
||||||
- name: Prepare DragonFly BSD Artifact
|
|
||||||
if: matrix.system == 'dragonfly'
|
|
||||||
run: |
|
|
||||||
ASSET="dcr-x86_64-unknown-dragonfly-${{ needs.setup.outputs.version }}"
|
|
||||||
cp target/release/dcr "$ASSET"
|
|
||||||
echo "BSD_ASSET=${ASSET}" >> "$GITHUB_ENV"
|
|
||||||
|
|
||||||
# --- UPLOAD TARGET ---
|
# --- UPLOAD TARGET ---
|
||||||
- name: Upload BSD Asset to Release
|
- name: Upload BSD Asset to Release
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ CHANNEL=""
|
|||||||
|
|
||||||
check_os() {
|
check_os() {
|
||||||
case "$(uname -s)" in
|
case "$(uname -s)" in
|
||||||
Linux|Darwin|FreeBSD|OpenBSD|NetBSD|DragonFly) ;;
|
Linux|Darwin|FreeBSD|OpenBSD|NetBSD) ;;
|
||||||
*) error "Only Linux, macOS, and BSD systems are supported"; exit 1 ;;
|
*) error "Only Linux, macOS, and BSD systems are supported"; exit 1 ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
@@ -48,7 +48,7 @@ detect_target() {
|
|||||||
FreeBSD:x86_64|FreeBSD:amd64) TARGET_TRIPLE="x86_64-unknown-freebsd" ;;
|
FreeBSD:x86_64|FreeBSD:amd64) TARGET_TRIPLE="x86_64-unknown-freebsd" ;;
|
||||||
OpenBSD:x86_64|OpenBSD:amd64) TARGET_TRIPLE="x86_64-unknown-openbsd" ;;
|
OpenBSD:x86_64|OpenBSD:amd64) TARGET_TRIPLE="x86_64-unknown-openbsd" ;;
|
||||||
NetBSD:x86_64|NetBSD:amd64) TARGET_TRIPLE="x86_64-unknown-netbsd" ;;
|
NetBSD:x86_64|NetBSD:amd64) TARGET_TRIPLE="x86_64-unknown-netbsd" ;;
|
||||||
DragonFly:x86_64|DragonFly:amd64) TARGET_TRIPLE="x86_64-unknown-dragonfly" ;;
|
|
||||||
*) error "Unsupported platform: $os/$arch"; exit 1 ;;
|
*) error "Unsupported platform: $os/$arch"; exit 1 ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user