Skip to content
Merged
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
8 changes: 7 additions & 1 deletion .github/workflows/build_kernel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
build:
permissions:
contents: read
name: Build kernels (${{ matrix.arch }})
strategy:
matrix:
Expand All @@ -28,7 +32,7 @@ jobs:
group: ${{ matrix.runner }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa
- uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa # v23
with:
extra-conf: |
max-jobs = 8
Expand Down Expand Up @@ -67,6 +71,8 @@ jobs:
silu-and-mul-kernel

test:
permissions:
contents: read
name: Test kernels (UBI ${{ matrix.ubi_version }})
needs: build
strategy:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/build_kernel_cpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,18 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
build:
permissions:
contents: read
name: Build kernel
runs-on:
group: aws-highmemory-32-plus-nix
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa
- uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa # v23
with:
extra-conf: |
max-jobs = 4
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build_kernel_macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
build:
permissions:
contents: read
name: Build kernel
runs-on: macos-26
steps:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/build_kernel_rocm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,18 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
build:
permissions:
contents: read
name: Build kernels (ROCm)
runs-on:
group: aws-highmemory-32-plus-nix
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa
- uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa # v23
with:
extra-conf: |
max-jobs = 4
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build_kernel_windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
build:
permissions:
contents: read
strategy:
matrix:
os: [ windows-2022 ]
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/build_kernel_xpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,18 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
build:
permissions:
contents: read
name: Build kernel
runs-on:
group: aws-highmemory-32-plus-nix
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa
- uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa # v23
with:
extra-conf: |
max-jobs = 4
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/check_variants.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
build:
permissions:
contents: read
name: Check build variants
runs-on: ubuntu-latest
steps:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ env:
RUFF_VERSION: "0.15.10"
GRIFFE_VERSION: "1.15.0"

permissions: {}

jobs:
lint:
permissions:
contents: read
name: Run lints
runs-on: ubuntu-latest
steps:
Expand All @@ -33,6 +37,8 @@ jobs:
args: format --check

griffe:
permissions:
contents: read
name: Check API compatibility
runs-on: ubuntu-latest
env:
Expand All @@ -49,6 +55,8 @@ jobs:
run: uvx griffe==${{ env.GRIFFE_VERSION }} check kernels --search kernels/src -a main

validate-dependencies:
permissions:
contents: read
name: Validate python_depends.json
runs-on: ubuntu-latest
steps:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/nix_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,18 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
build:
permissions:
contents: read
name: Nix checks
runs-on:
group: aws-highmemory-32-plus-nix
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa
- uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa # v23
with:
extra-conf: |
max-jobs = 4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish_kernels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ jobs:
path: dist
merge-multiple: true
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # release/v1
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2

github-release:
name: >-
Expand Down Expand Up @@ -320,7 +320,7 @@ jobs:
path: dist
merge-multiple: true
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # release/v1
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
with:
repository-url: https://test.pypi.org/legacy/
skip-existing: true # Only upload when the version is unique.
9 changes: 8 additions & 1 deletion .github/workflows/test_e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,20 @@ env:
E2E_REPO_NAME: kernels-e2e-${{ github.run_id }}-${{ github.run_attempt }}
E2E_PKG_NAME: kernels_e2e_${{ github.run_id }}_${{ github.run_attempt }}

permissions: {}

jobs:
init-build-upload:
permissions:
contents: read
name: Init, build, and upload kernel
runs-on:
group: aws-highmemory-32-plus-nix
outputs:
variant: ${{ steps.variant.outputs.name }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa
- uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa # v23
with:
extra-conf: |
max-jobs = 8
Expand Down Expand Up @@ -109,6 +113,8 @@ jobs:
nix run $GITHUB_WORKSPACE#kernel-builder -- upload /tmp/${{ env.E2E_REPO_NAME }} --repo-type model

download-and-test:
permissions:
contents: read
name: Download and test kernel via get_kernel
needs: init-build-upload
runs-on:
Expand Down Expand Up @@ -153,6 +159,7 @@ jobs:
"

cleanup:
permissions: {}
name: Clean up test repos
needs: [init-build-upload, download-and-test]
if: always()
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test_extra_commands.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
build:
permissions:
contents: read
name: Build kernel
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa
- uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa # v23
with:
extra-conf: |
max-jobs = 4
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/update_cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
build:
permissions:
contents: read
name: Update Nix builder cache (${{ matrix.arch }})
strategy:
matrix:
Expand All @@ -22,7 +26,7 @@ jobs:
group: ${{ matrix.runner }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa
- uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa # v23
with:
extra-conf: |
max-jobs = 8
Expand Down
Loading