diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b2fb6263..8e6154cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,6 +68,7 @@ jobs: - target: aarch64-apple-darwin os: macos-11 - target: x86_64-unknown-linux-musl + - target: x86_64-unknown-freebsd runs-on: ${{ matrix.os || 'ubuntu-18.04' }} steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7fdf06b9..05fbd1d9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,6 +60,7 @@ jobs: os: macos-11 - target: x86_64-pc-windows-msvc os: windows-2019 + - target: x86_64-unknown-freebsd runs-on: ${{ matrix.os || 'ubuntu-18.04' }} steps: - uses: actions/checkout@v3 diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c006be5..dfd109c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com ## [Unreleased] +- Distribute prebuilt binaries for x86_64 FreeBSD. ([#160](https://github.com/taiki-e/cargo-hack/pull/160)) + ## [0.5.16] - 2022-07-30 - Fix an issue that a warning was displayed when excluding a feature that exists only in some crates in the workspace. ([#158](https://github.com/taiki-e/cargo-hack/pull/158)) diff --git a/README.md b/README.md index 1b7cf9c3..6eb7ec11 100644 --- a/README.md +++ b/README.md @@ -383,7 +383,7 @@ fields of [`cargo metadata`][cargo-metadata].* ### From source ```sh -cargo install cargo-hack +cargo +stable install cargo-hack ``` *Compiler support: requires rustc 1.56+* @@ -396,7 +396,19 @@ cargo-hack requires Cargo 1.26+. ### From prebuilt binaries You can download prebuilt binaries from the [Release page](https://github.com/taiki-e/cargo-hack/releases). -Prebuilt binaries are available for macOS, Linux (gnu and musl), and Windows (static executable). +Prebuilt binaries are available for macOS, Linux (gnu and musl), Windows (static executable), and FreeBSD. + +
+Example of script to download cargo-hack + +```sh +# Get host target +host=$(rustc -Vv | grep host | sed 's/host: //') +# Download binary and install to $HOME/.cargo/bin +curl -LsSf https://github.com/taiki-e/cargo-hack/releases/latest/download/cargo-hack-$host.tar.gz | tar xzf - -C $HOME/.cargo/bin +``` + +
### On GitHub Actions