mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 10:58:56 +00:00
49 lines
982 B
YAML
49 lines
982 B
YAML
name: zig-format
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
on:
|
|
workflow_call:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
paths:
|
|
- ".github/workflows/zig-format.yml"
|
|
- "package.json"
|
|
- "scripts/**"
|
|
- "cmake/**"
|
|
- "src/**/*.zig"
|
|
|
|
env:
|
|
BUN_VERSION: "1.1.27"
|
|
|
|
jobs:
|
|
zig-format:
|
|
name: zig-format
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
sparse-checkout: |
|
|
.github
|
|
package.json
|
|
scripts
|
|
cmake
|
|
src
|
|
packages
|
|
- name: Setup Bun
|
|
uses: ./.github/actions/setup-bun
|
|
with:
|
|
bun-version: ${{ env.BUN_VERSION }}
|
|
- name: Zig Format
|
|
env:
|
|
ENABLE_CCACHE: OFF
|
|
SKIP_LLVM: ON
|
|
run: |
|
|
bun run zig-format:diff
|
|
- name: Commit
|
|
uses: stefanzweifel/git-auto-commit-action@v5
|
|
with:
|
|
commit_message: "`bun run zig-format`"
|