Skip to content

Commit

Permalink
Merge #160
Browse files Browse the repository at this point in the history
160: Distribute prebuilt binaries for x86_64 FreeBSD r=taiki-e a=taiki-e

nix-rust/nix#1792 (comment)

fyi `@asomers`

Co-authored-by: Taiki Endo <te316e89@gmail.com>
  • Loading branch information
bors[bot] and taiki-e committed Aug 12, 2022
2 parents 3c2276f + 810c2ae commit ec14b6b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -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))
Expand Down
16 changes: 14 additions & 2 deletions README.md
Expand Up @@ -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+*
Expand All @@ -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.

<details>
<summary>Example of script to download cargo-hack</summary>

```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
```

</details>

<!-- omit in toc -->
### On GitHub Actions
Expand Down

0 comments on commit ec14b6b

Please sign in to comment.