Wild GitHub action

May 25, 2026 · View on GitHub

Depend on this action to use Wild when building rust code.

See the main wild repo for more details about wild.

Example:

name: ci
on: [push, pull_request]

jobs:
  ci:
    name: CI
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - uses: dtolnay/rust-toolchain@stable
      - uses: wild-linker/action@latest
      - run: cargo test

The above workflow will use the latest version of wild. If you'd like to pin to a specific version, you can instead do:

      - uses: wild-linker/action@0.9.0

This action writes the following to ~/.cargo/config.toml:

[target.${target_arch}-unknown-linux-(gnu|musl)]
linker = "clang"
rustflags = ["-Clink-arg=--ld-path=${{ github.action_path }}/wild"]

If you specify rustflags via a .cargo/config.toml in your repository or by setting RUSTFLAGS, then that will override the effect of this action.

Inputs

InputDefaultDescription
wild-version0.8.0Wild version to install.
download-retries5Number of times to retry the download on transient failures (passed to curl --retry). curl uses exponential backoff between retries (1s, 2s, 4s, …), so the default of 5 retries spans roughly 30 seconds.

Example overriding the retry count:

      - uses: wild-linker/action@latest
        with:
          download-retries: "6"