Skip to content
Draft
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
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: build

on:
workflow_dispatch:
inputs:
sha:
description: "The full SHA of the commit to build (defaults to the latest commit on main)."
type: string
required: false

env:
FORCE_COLOR: 1

permissions: {}

jobs:
linux:
uses: ./.github/workflows/linux.yml
with:
ref: ${{ inputs.sha || github.sha }}
permissions:
packages: write
id-token: write
attestations: write

macos:
uses: ./.github/workflows/macos.yml
with:
ref: ${{ inputs.sha || github.sha }}
permissions:
id-token: write
attestations: write

windows:
uses: ./.github/workflows/windows.yml
with:
ref: ${{ inputs.sha || github.sha }}
permissions:
id-token: write
attestations: write
15 changes: 12 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
name: linux

on:
push:
branches: [ main ]
pull_request:
workflow_call:
inputs:
ref:
description: "The git ref to build."
type: string
required: false
default: ''

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
group: linux-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

env:
Expand All @@ -26,6 +31,7 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ inputs.ref || '' }}
persist-credentials: false

- name: Emit rustc version
Expand Down Expand Up @@ -64,6 +70,7 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ inputs.ref || '' }}
persist-credentials: false

- name: Set up uv
Expand Down Expand Up @@ -142,6 +149,7 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ inputs.ref || '' }}
fetch-depth: 0
persist-credentials: false

Expand Down Expand Up @@ -216,6 +224,7 @@ jobs:
steps: &build_steps
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ inputs.ref || '' }}
fetch-depth: 0
persist-credentials: false

Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
name: macos

on:
push:
branches: [ main ]
pull_request:
workflow_call:
inputs:
ref:
description: "The git ref to build."
type: string
required: false
default: ''

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
group: macos-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

env:
Expand All @@ -26,6 +31,7 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ inputs.ref || '' }}
persist-credentials: false

- name: Emit rustc version
Expand Down Expand Up @@ -60,6 +66,7 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ inputs.ref || '' }}
fetch-depth: 0
persist-credentials: false

Expand Down Expand Up @@ -127,6 +134,7 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ inputs.ref || '' }}
fetch-depth: 0
persist-credentials: false

Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
name: windows

on:
push:
branches: [ main ]
pull_request:
workflow_call:
inputs:
ref:
description: "The git ref to build."
type: string
required: false
default: ''

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
group: windows-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

env:
Expand All @@ -26,6 +31,7 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ inputs.ref || '' }}
persist-credentials: false

- name: Emit rustc version
Expand Down Expand Up @@ -60,6 +66,7 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ inputs.ref || '' }}
fetch-depth: 0
persist-credentials: false

Expand Down Expand Up @@ -128,6 +135,7 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ inputs.ref || '' }}
fetch-depth: 0
persist-credentials: false

Expand Down
Loading