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
70 changes: 70 additions & 0 deletions .github/workflows/release-binary.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Release Binary

on:
push:
tags: ["*"]

jobs:
build:
strategy:
matrix:
include:
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
short: linux-amd64
setup: sudo apt-get update && sudo apt-get install -y build-essential clang lldb llvm libclang-dev musl-tools protobuf-compiler capnproto lld
- target: aarch64-unknown-linux-musl
os: ubuntu-latest
short: linux-arm64
setup: sudo apt-get update && sudo apt-get install -y build-essential musl-tools clang llvm gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu protobuf-compiler capnproto lld
rust-build-env: 'CC_aarch64_unknown_linux_musl=clang AR_aarch64_unknown_linux_musl=llvm-ar RUSTFLAGS="-Clink-self-contained=yes -Clinker=rust-lld"'
- target: x86_64-apple-darwin
os: macos-latest
short: darwin-amd64
setup: brew install capnp protobuf
- target: aarch64-apple-darwin
os: macos-latest
short: darwin-arm64
setup: brew install capnp protobuf
runs-on: ${{ matrix.os }}
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2026-01-16
targets: ${{ matrix.target }}
- name: Ensure cross-compilation target
run: rustup target add ${{ matrix.target }}
- name: Install dependencies
if: matrix.setup
run: ${{ matrix.setup }}
- name: Build
run: ${{ matrix.rust-build-env }} cargo build --profile release-turborepo -p turbo --target ${{ matrix.target }}
- name: Prepare artifact
run: |
cp target/${{ matrix.target }}/release-turborepo/turbo turbo-${{ matrix.short }}
- uses: actions/upload-artifact@v4
with:
name: turbo-${{ matrix.short }}
path: turbo-${{ matrix.short }}

release:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true
- name: Generate checksums
run: |
cd artifacts
sha256sum turbo-* > checksums-sha256.txt
- uses: softprops/action-gh-release@v2
with:
files: |
artifacts/turbo-*
artifacts/checksums-sha256.txt
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/turborepo-engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ turborepo-task-executor = { path = "../turborepo-task-executor" }
turborepo-task-id = { path = "../turborepo-task-id" }
turborepo-turbo-json = { path = "../turborepo-turbo-json" }
turborepo-types = { workspace = true }
wax = { workspace = true }
which = { workspace = true }

[dev-dependencies]
Expand Down
Loading
Loading