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
2 changes: 1 addition & 1 deletion .github/workflows/bonk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
fetch-depth: 1

- name: Run Bonk
uses: ask-bonk/ask-bonk/github@main
uses: ask-bonk/ask-bonk/github@14a1af226388b15b389a0c1b7df9168a940165b6 # v0.5.1
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CF_GATEWAY_BASE_URL: https://gateway.ai.cloudflare.com/v1/${{ vars.CLOUDFLARE_ACCOUNT_ID }}/${{ vars.CLOUDFLARE_GATEWAY_ID }}/compat
Expand Down
100 changes: 69 additions & 31 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
fetch-depth: 0
- run: echo "supported_pythons=$SUPPORTED_PYTHONS"
- name: Check playground changes
Expand Down Expand Up @@ -100,6 +101,7 @@ jobs:
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
fetch-depth: 0

- name: Validate version
Expand Down Expand Up @@ -161,8 +163,9 @@ jobs:
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
fetch-depth: 0
- uses: jdx/mise-action@v4
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
version: 2026.4.27
cache_key_prefix: mise-ci-${{ github.job }}
Expand All @@ -181,8 +184,9 @@ jobs:
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
fetch-depth: 0
- uses: Swatinem/rust-cache@v2
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
workspaces: crates -> target
save-if: ${{ github.ref == 'refs/heads/main' }}
Expand All @@ -191,7 +195,7 @@ jobs:
# produces an ABI3 wheel (cp310-abi3). Without this, maturin picks up
# the container's default Python (3.8), which doesn't support ABI3.
- name: Build coglet wheel (ABI3)
uses: PyO3/maturin-action@v1
uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
with:
target: x86_64-unknown-linux-gnu
args: --release --out dist -m crates/coglet-python/Cargo.toml --interpreter python${{ env.MINIMUM_PYTHON }}
Expand All @@ -214,16 +218,17 @@ jobs:
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
fetch-depth: 0
- uses: jdx/mise-action@v4
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
version: 2026.4.27
cache_key_prefix: mise-ci-${{ github.job }}
- name: Get version from VERSION.txt
id: version
run: echo "version=$(tr -d '[:space:]' < VERSION.txt)" >> "$GITHUB_OUTPUT"
- name: Build cog binary
uses: goreleaser/goreleaser-action@v7
uses: goreleaser/goreleaser-action@a4f02ab5355a589de60d917a659ce617ed19b3de # v7.3.0
with:
version: '~> v2'
args: build --clean --snapshot --single-target --id cog --output cog
Expand All @@ -245,7 +250,9 @@ jobs:
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- uses: jdx/mise-action@v4
with:
persist-credentials: false
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
version: 2026.4.27
cache_key_prefix: mise-ci-${{ github.job }}
Expand All @@ -272,7 +279,9 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v7
- uses: jdx/mise-action@v4
with:
persist-credentials: false
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
version: 2026.4.27
cache_key_prefix: mise-ci-${{ github.job }}
Expand All @@ -285,7 +294,9 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v7
- uses: jdx/mise-action@v4
with:
persist-credentials: false
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
version: 2026.4.27
cache_key_prefix: mise-ci-${{ github.job }}
Expand All @@ -300,7 +311,9 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v7
- uses: jdx/mise-action@v4
with:
persist-credentials: false
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
version: 2026.4.27
cache_key_prefix: mise-ci-${{ github.job }}
Expand All @@ -313,7 +326,9 @@ jobs:
timeout-minutes: 5
steps:
- uses: actions/checkout@v7
- uses: jdx/mise-action@v4
with:
persist-credentials: false
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
version: 2026.4.27
cache_key_prefix: mise-ci-${{ github.job }}
Expand All @@ -328,19 +343,21 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
# setup-python provides a shared-library Python (libpython3.x.so) needed
# by stub_gen at runtime (PyO3 auto-initialize). mise's
# python-build-standalone is statically linked and doesn't ship the .so.
- uses: actions/setup-python@v7
id: setup-python
with:
python-version: ${{ env.PYTHON_VERSION }}
- uses: Swatinem/rust-cache@v2
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
workspaces: crates -> target
save-if: ${{ github.ref == 'refs/heads/main' }}
key: py-${{ steps.setup-python.outputs.python-version }}
- uses: jdx/mise-action@v4
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
version: 2026.4.27
cache_key_prefix: mise-ci-${{ github.job }}
Expand All @@ -364,7 +381,9 @@ jobs:
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- uses: jdx/mise-action@v4
with:
persist-credentials: false
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
version: 2026.4.27
cache_key_prefix: mise-ci-${{ github.job }}
Expand All @@ -377,11 +396,13 @@ jobs:
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- uses: Swatinem/rust-cache@v2
with:
persist-credentials: false
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
workspaces: crates -> target
save-if: ${{ github.ref == 'refs/heads/main' }}
- uses: jdx/mise-action@v4
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
version: 2026.4.27
cache_key_prefix: mise-ci-${{ github.job }}
Expand All @@ -396,7 +417,9 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v7
- uses: jdx/mise-action@v4
with:
persist-credentials: false
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
version: 2026.4.27
cache_key_prefix: mise-ci-${{ github.job }}
Expand All @@ -414,7 +437,9 @@ jobs:
continue-on-error: true
steps:
- uses: actions/checkout@v7
- uses: jdx/mise-action@v4
with:
persist-credentials: false
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
version: 2026.4.27
cache_key_prefix: mise-ci-${{ github.job }}
Expand All @@ -439,7 +464,7 @@ jobs:
path: dist
- name: Extract source distribution
run: tar xf dist/*.tar.gz --strip-components=1
- uses: jdx/mise-action@v4
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
version: 2026.4.27
cache_key_prefix: mise-ci-${{ github.job }}
Expand All @@ -454,7 +479,9 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v7
- uses: jdx/mise-action@v4
with:
persist-credentials: false
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
version: 2026.4.27
cache_key_prefix: mise-ci-${{ github.job }}
Expand All @@ -475,7 +502,9 @@ jobs:
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v7
- uses: jdx/mise-action@v4
with:
persist-credentials: false
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
version: 2026.4.27
cache_key_prefix: mise-ci-${{ github.job }}
Expand Down Expand Up @@ -504,7 +533,9 @@ jobs:
CGO_ENABLED: "1"
steps:
- uses: actions/checkout@v7
- uses: jdx/mise-action@v4
with:
persist-credentials: false
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
version: 2026.4.27
cache_key_prefix: mise-ci-${{ github.job }}
Expand All @@ -517,11 +548,13 @@ jobs:
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- uses: Swatinem/rust-cache@v2
with:
persist-credentials: false
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
workspaces: crates -> target
save-if: ${{ github.ref == 'refs/heads/main' }}
- uses: jdx/mise-action@v4
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
version: 2026.4.27
cache_key_prefix: mise-ci-${{ github.job }}
Expand All @@ -545,7 +578,7 @@ jobs:
merge-multiple: true
- name: Extract source distribution
run: tar xf dist/*.tar.gz --strip-components=1
- uses: jdx/mise-action@v4
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
version: 2026.4.27
cache_key_prefix: mise-ci-${{ github.job }}
Expand All @@ -566,17 +599,18 @@ jobs:
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
fetch-depth: 0
- name: Download coglet wheel
uses: actions/download-artifact@v8
with:
name: CogletRustWheel
path: dist
- uses: Swatinem/rust-cache@v2
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
workspaces: crates -> target
save-if: ${{ github.ref == 'refs/heads/main' }}
- uses: jdx/mise-action@v4
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
version: 2026.4.27
cache_key_prefix: mise-ci-${{ github.job }}
Expand All @@ -594,6 +628,8 @@ jobs:
shards: ${{ steps.shard.outputs.shards }}
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Compute shards
id: shard
run: |
Expand Down Expand Up @@ -680,9 +716,10 @@ jobs:
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
fetch-depth: 0
- name: Login to Docker Hub
uses: docker/login-action@v4
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request'
with:
registry: index.docker.io
Expand All @@ -697,7 +734,7 @@ jobs:
run: |
cp dist/cog ./cog
chmod +x ./cog
- uses: jdx/mise-action@v4
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
version: 2026.4.27
cache_key_prefix: mise-ci-${{ github.job }}
Expand Down Expand Up @@ -858,18 +895,19 @@ jobs:
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
fetch-depth: 0
- uses: Swatinem/rust-cache@v2
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
workspaces: crates -> target
save-if: ${{ github.ref == 'refs/heads/main' }}
- uses: jdx/mise-action@v4
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
version: 2026.4.27
cache_key_prefix: mise-ci-${{ github.job }}
- name: Check coglet crates.io publish
run: cargo publish --dry-run -p coglet --manifest-path crates/Cargo.toml
- uses: goreleaser/goreleaser-action@v7
- uses: goreleaser/goreleaser-action@a4f02ab5355a589de60d917a659ce617ed19b3de # v7.3.0
with:
version: '~> v2'
args: check
2 changes: 2 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
persist-credentials: false

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- main
permissions:
contents: write


env:
MISE_LOCKED: "1"
Expand All @@ -13,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: jdx/mise-action@v4
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
version: 2026.4.27
cache_key_prefix: mise-docs-${{ github.job }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/homebrew-tap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ on:
description: "Release tag (e.g., v1.0.0)"
required: true
type: string
secrets:
COG_HOMEBREW_TAP_PRIVATE_KEY:
required: true

permissions:
contents: read
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/mirror-cog-base-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ jobs:
packages: write
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false

- uses: jdx/mise-action@v4
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
version: 2026.4.27
cache_key_prefix: mise-mirror-${{ github.job }}
Expand Down
Loading