Skip to content
Merged
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
13 changes: 12 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ jobs:
- os: macos-latest
target: aarch64-apple-darwin
- os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
# musl → a fully static Linux binary with no glibc version
# dependency, so it runs on old distros (e.g. Ubuntu 20.04 /
# glibc 2.31) that the glibc build's GLIBC_2.3x symbols break on.
target: x86_64-unknown-linux-musl
steps:
- uses: actions/checkout@v4

Expand All @@ -29,6 +32,14 @@ jobs:
with:
targets: ${{ matrix.target }}

# musl-gcc is needed to compile the C sources we statically link:
# rusqlite's bundled SQLite amalgamation and ring (ureq's rustls TLS).
- name: Install musl build tools
if: contains(matrix.target, 'musl')
run: |
sudo apt-get update
sudo apt-get install -y musl-tools

- name: Cache cargo registry + build
uses: actions/cache@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Detects your platform, downloads the latest release tarball from GitHub, verifie
Download from the [GitHub Releases](https://github.com/rollysys/auditui/releases) page. Available targets:

- `aarch64-apple-darwin` — macOS Apple Silicon (M1/M2/M3/M4)
- `x86_64-unknown-linux-gnu` — Linux x86_64
- `x86_64-unknown-linux-musl` — Linux x86_64 (static; runs on any glibc, incl. old distros)

> **Intel Mac (x86_64-apple-darwin)**: build from source with the steps below — Intel runners on GitHub Actions are deprecated and prebuilt artifacts are no longer published.

Expand Down
2 changes: 1 addition & 1 deletion README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ curl -fsSL https://github.com/rollysys/auditui/releases/latest/download/install.
去 [GitHub Releases](https://github.com/rollysys/auditui/releases) 页面下载。提供的目标平台:

- `aarch64-apple-darwin` — macOS Apple Silicon (M1/M2/M3/M4)
- `x86_64-unknown-linux-gnu` — Linux x86_64
- `x86_64-unknown-linux-musl` — Linux x86_64(静态链接;任意 glibc 版本均可运行,含老发行版)

> **Intel Mac (x86_64-apple-darwin)**: 请用下面的源码编译方式 — GitHub Actions 的 Intel runner 已 deprecated,不再发布预编译产物。

Expand Down
4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ case "$os-$arch" in
Darwin-arm64|Darwin-aarch64)
target="aarch64-apple-darwin" ;;
Linux-x86_64|Linux-amd64)
target="x86_64-unknown-linux-gnu" ;;
# Statically-linked musl build: runs on any x86_64 Linux regardless
# of glibc version (no GLIBC_2.3x dependency).
target="x86_64-unknown-linux-musl" ;;
Darwin-x86_64)
red "Intel Mac (Darwin x86_64) — prebuilt binary not published."
red "Please build from source:"
Expand Down
Loading