Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/beta-preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
os: [windows-latest, macos-latest, ubuntu-latest, ubuntu-24.04-arm]
rust_version: [beta]

steps:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/c2patool-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ jobs:
artifact_name: c2patool_linux_intel.tar.gz
asset_name: ${{ github.ref_name }}-x86_64-unknown-linux-gnu.tar.gz
sbom_asset_name: ${{ github.ref_name }}-x86_64-unknown-linux-gnu-sbom.json
- os: ubuntu-24.04-arm
artifact_name: c2patool_linux_intel.tar.gz # `make release` uses this name on all Linux hosts
asset_name: ${{ github.ref_name }}-aarch64-unknown-linux-gnu.tar.gz

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we add package.metadata.binstall in Cargo.toml alongside the new release asset? Without that target/package mapping, cargo-binstall won’t know how to use this aarch64 archive.

sbom_asset_name: ${{ github.ref_name }}-aarch64-unknown-linux-gnu-sbom.json
- os: windows-latest
artifact_name: c2patool_win_intel.zip
asset_name: ${{ github.ref_name }}-x86_64-pc-windows-msvc.zip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
# tier picking up cross-platform or MSRV coverage -- so both are in the
# required gate directly (matching how tier-1b.yml combines `os` and
# `rust_version: [stable, 1.96.0]` upstream). Coverage is collected on just
# the ubuntu+stable leg to avoid six redundant/conflicting Codecov uploads
# the ubuntu+stable leg to avoid eight redundant/conflicting Codecov uploads
# for the same run.
tests-cli:
name: Unit tests
Expand All @@ -47,7 +47,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, windows-latest]
rust_version: [stable, "1.96.0"] # keep in sync with Cargo.toml's rust-version

steps:
Expand Down
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ pkg-fmt = "zip"
pkg-url = "{ repo }/releases/download/v{ version }/v{ version }-x86_64-unknown-linux-gnu.tar.gz"
pkg-fmt = "tgz"

[package.metadata.binstall.overrides.'cfg(all(target_os = "linux", target_arch = "aarch64", target_env = "gnu"))']
pkg-url = "{ repo }/releases/download/v{ version }/v{ version }-aarch64-unknown-linux-gnu.tar.gz"
pkg-fmt = "tgz"

[package.metadata.binstall.overrides.'cfg(all(target_os = "windows", target_arch = "x86_64", target_env = "msvc"))']
pkg-url = "{ repo }/releases/download/v{ version }/v{ version }-x86_64-pc-windows-msvc.zip"
pkg-fmt = "zip"
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ If you're using another OS or don't want to use Homebrew, install a prebuilt bin
2. Under **Assets**, click on the archive file for your operating system:
- MacOS: `c2patool-vx.y.z-universal-apple-darwin.zip`
- Windows: `c2patool-vx.y.z-x86_64-pc-windows-msvc.zip`
- Linux: `c2patool-vx.y.z-x86_64-unknown-linux-gnu.tar.gz`
- Linux (x86_64): `c2patool-vx.y.z-x86_64-unknown-linux-gnu.tar.gz`
- Linux (ARM64): `c2patool-vx.y.z-aarch64-unknown-linux-gnu.tar.gz`
3. Download and extract the archive file.
4. Copy the `c2patool` executable file to a location on your `PATH`.

Expand Down
1 change: 1 addition & 0 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[graph]
targets = [
{ triple = "x86_64-unknown-linux-gnu" },
{ triple = "aarch64-unknown-linux-gnu" },
{ triple = "x86_64-apple-darwin" },
{ triple = "x86_64-pc-windows-msvc" },
{ triple = "aarch64-apple-darwin" },
Expand Down
3 changes: 2 additions & 1 deletion docs/support-tiers.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ The [`ci.yml` workflow](https://github.com/contentauth/c2patool/blob/main/.githu
### Tier 1A for c2patool

* **Ubuntu:** `x86_64-unknown-linux-gnu`, Rust `stable` | `MSRV`, default (`networking`) feature, `openssl`, `glibc`
* **Ubuntu (ARM64):** `aarch64-unknown-linux-gnu` (GitHub's `ubuntu-24.04-arm` runner), Rust `stable` | `MSRV`, default (`networking`) feature, `openssl`, `glibc`
* **macOS:** `aarch64-apple-darwin` (GitHub's `macos-latest` runner), Rust `stable` | `MSRV`, default feature, `openssl`
* **Windows:** `x86_64-pc-windows-msvc`, Rust `stable` | `MSRV`, default feature, `openssl`
* **WASI:** `wasm32-wasip2`, Rust `nightly-2026-01-16`, `rust_native_crypto`, run under `wasmtime`
Expand All @@ -59,7 +60,7 @@ These don't vary by platform, so they aren't separate build configurations, but
**Build artifacts:** [`c2patool-release.yml`](https://github.com/contentauth/c2patool/blob/main/.github/workflows/c2patool-release.yml) builds and publishes a binary (plus an SBOM) for every versioned release and every release-candidate build:

* **macOS:** universal binary (`aarch64-apple-darwin` and `x86_64-apple-darwin` combined via `lipo`)
* **Linux:** `x86_64-unknown-linux-gnu`
* **Linux:** `x86_64-unknown-linux-gnu`, `aarch64-unknown-linux-gnu`
* **Windows:** `x86_64-pc-windows-msvc`

These are published to the [releases page](https://github.com/contentauth/c2patool/releases); the macOS build is additionally distributed via [Homebrew](https://brew.sh/).
Expand Down
Loading