jj/.github/workflows/binaries.yml
dependabot[bot] e542b94fc6 github: bump the github-dependencies group with 5 updates
Bumps the github-dependencies group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [dtolnay/rust-toolchain](https://github.com/dtolnay/rust-toolchain) | `b3b07ba8b418998c39fb20f53e8b695cdcc8de1b` | `e97e2d8cc328f1b50210efc529dca0028893a2d9` |
| [taiki-e/install-action](https://github.com/taiki-e/install-action) | `2.58.9` | `2.58.21` |
| [EmbarkStudios/cargo-deny-action](https://github.com/embarkstudios/cargo-deny-action) | `2.0.12` | `2.0.13` |
| [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) | `6.4.3` | `6.6.0` |
| [github/codeql-action](https://github.com/github/codeql-action) | `3.29.8` | `3.29.11` |


Updates `dtolnay/rust-toolchain` from b3b07ba8b418998c39fb20f53e8b695cdcc8de1b to e97e2d8cc328f1b50210efc529dca0028893a2d9
- [Release notes](https://github.com/dtolnay/rust-toolchain/releases)
- [Commits](b3b07ba8b4...e97e2d8cc3)

Updates `taiki-e/install-action` from 2.58.9 to 2.58.21
- [Release notes](https://github.com/taiki-e/install-action/releases)
- [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md)
- [Commits](2c73a741d1...f63c33fd96)

Updates `EmbarkStudios/cargo-deny-action` from 2.0.12 to 2.0.13
- [Release notes](https://github.com/embarkstudios/cargo-deny-action/releases)
- [Commits](30f817c6f7...f2ba7abc2a)

Updates `astral-sh/setup-uv` from 6.4.3 to 6.6.0
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](e92bafb625...4959332f0f)

Updates `github/codeql-action` from 3.29.8 to 3.29.11
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](76621b61de...3c3833e0f8)

---
updated-dependencies:
- dependency-name: dtolnay/rust-toolchain
  dependency-version: e97e2d8cc328f1b50210efc529dca0028893a2d9
  dependency-type: direct:production
  dependency-group: github-dependencies
- dependency-name: taiki-e/install-action
  dependency-version: 2.58.21
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-dependencies
- dependency-name: EmbarkStudios/cargo-deny-action
  dependency-version: 2.0.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-dependencies
- dependency-name: astral-sh/setup-uv
  dependency-version: 6.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-dependencies
- dependency-name: github/codeql-action
  dependency-version: 3.29.11
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-26 14:49:16 +00:00

78 lines
2.4 KiB
YAML

name: binaries
on:
push:
branches:
- main
permissions: {}
jobs:
binaries:
strategy:
fail-fast: false
matrix:
build: [linux-x86_64-musl, linux-x86_64-gnu, linux-aarch64-musl, linux-aarch64-gnu, macos-x86_64, macos-aarch64, win-x86_64]
include:
- build: linux-x86_64-musl
os: ubuntu-24.04
target: x86_64-unknown-linux-musl
- build: linux-x86_64-gnu
os: ubuntu-24.04
target: x86_64-unknown-linux-gnu
- build: linux-aarch64-musl
os: ubuntu-24.04-arm
target: aarch64-unknown-linux-musl
- build: linux-aarch64-gnu
os: ubuntu-24.04-arm
target: aarch64-unknown-linux-gnu
- build: macos-x86_64
os: macos-13
target: x86_64-apple-darwin
- build: macos-aarch64
os: macos-14
target: aarch64-apple-darwin
- build: win-x86_64
os: windows-2022
target: x86_64-pc-windows-msvc
- build: win-aarch64
os: windows-11-arm
target: aarch64-pc-windows-msvc
runs-on: ${{ matrix.os }}
timeout-minutes: 20 # NOTE (aseipp): tests aren't run but sometimes builds take a while
name: Build binary artifacts
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
with:
persist-credentials: false
- name: Install packages (Ubuntu)
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends xz-utils liblz4-tool musl-tools
- name: Install Rust
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9
with:
toolchain: stable
target: ${{ matrix.target }}
- name: Build release binary
shell: bash
run: cargo build --target ${{ matrix.target }} --verbose --release
- name: Set up artifact directory
shell: bash
run: |
outdir="target/${{ matrix.target }}/release"
BIN=$outdir/jj
[[ "${{ matrix.os }}" == windows* ]] && BIN+=".exe"
mkdir -p target/out
cp $BIN target/out
- name: Publish binary artifact
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: jj-${{ matrix.target }}
path: target/out