diff --git a/.github/workflows/beta-preflight.yml b/.github/workflows/beta-preflight.yml index c3e0270e..1cae4eef 100644 --- a/.github/workflows/beta-preflight.yml +++ b/.github/workflows/beta-preflight.yml @@ -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: diff --git a/.github/workflows/c2patool-release.yml b/.github/workflows/c2patool-release.yml index 7d68aedd..26d1bda2 100644 --- a/.github/workflows/c2patool-release.yml +++ b/.github/workflows/c2patool-release.yml @@ -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 + 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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e6af36f..c2b31a27 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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: diff --git a/Cargo.toml b/Cargo.toml index 7937899c..d3c9a6c8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/README.md b/README.md index 07c45266..c30085b0 100644 --- a/README.md +++ b/README.md @@ -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`. diff --git a/deny.toml b/deny.toml index 5610e7ed..429224e0 100644 --- a/deny.toml +++ b/deny.toml @@ -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" }, diff --git a/docs/support-tiers.md b/docs/support-tiers.md index a8d305bd..cbaed02c 100644 --- a/docs/support-tiers.md +++ b/docs/support-tiers.md @@ -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` @@ -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/).