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
26 changes: 0 additions & 26 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,29 +227,3 @@ jobs:
name: ${{ env.CONSOLE_DOCKER_IMAGE }}.tar.gz
path: ./${{ env.CONSOLE_DOCKER_IMAGE }}.tar.gz
if-no-files-found: error

build_bencher_nix:
name: Build `bencher` Nix Package
if: ${{ !inputs.deploy-only }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
- name: Install Nix
uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-25.11
- name: Nix build
run: nix build .#bencher

build_api_nix:
name: Build `api` Nix Package
if: ${{ !inputs.deploy-only }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
- name: Install Nix
uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-25.11
- name: Nix build
run: nix build .#api
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ jobs:
# https://doc.rust-lang.org/nightly/rustc/platform-support.html#tier-1-with-host-tools
glibc-version: "2.17"
check-cli: ${{ needs.changes.outputs.cli == 'true' || github.ref == 'refs/heads/devel' }}
is-fork: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository }}
build-cli: ${{ needs.changes.outputs.cli == 'true' || github.ref == 'refs/heads/devel' || startsWith(github.ref, 'refs/tags/') }}
build-docker: ${{ startsWith(github.ref, 'refs/tags/') }}
secrets:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ on:
check-cli:
type: boolean
required: true
is-fork:
type: boolean
required: true
build-cli:
type: boolean
required: true
Expand Down Expand Up @@ -86,7 +89,7 @@ jobs:

script_gen:
name: Script Gen
if: ${{ inputs.check-cli }}
if: ${{ inputs.check-cli && !inputs.is-fork }}
strategy:
fail-fast: false
matrix:
Expand All @@ -105,7 +108,7 @@ jobs:

script_gen_version:
name: Script Gen Version
if: ${{ inputs.check-cli }}
if: ${{ inputs.check-cli && !inputs.is-fork }}
strategy:
fail-fast: false
matrix:
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,3 @@ jobs:
run: |
npm install --include=dev
npx biome ci --formatter-enabled false --organize-imports-enabled false .

nix_lints:
name: Check nix code
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
- name: Install Nix
uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-25.11
- name: Check nix formatting
run: nix develop .#ci --command alejandra --check .
- name: Check nix lints
run: nix develop .#ci --command statix check
- name: Check for dead nix code
run: nix develop .#ci --command deadnix
91 changes: 91 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name: Nix

on:
workflow_dispatch:
push:
branches: [devel, cloud]
tags: [v**]
pull_request:
branches: [main, cloud, devel]

# Cancel in-progress runs for the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
changes:
name: Detect Changes
if: github.ref != 'refs/heads/cloud'
runs-on: ubuntu-22.04
outputs:
nix: ${{ steps.filter.outputs.nix }}
cli: ${{ steps.filter.outputs.cli }}
api: ${{ steps.filter.outputs.api }}
steps:
- uses: actions/checkout@v6
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
nix:
- 'flake.nix'
- 'flake.lock'
- '.github/workflows/nix.yml'
cli:
- 'Cargo.toml'
- 'Cargo.lock'
- 'lib/**'
- 'services/cli/**'
api:
- 'Cargo.toml'
- 'Cargo.lock'
- 'lib/**'
- 'plus/**'
- 'services/api/**'

nix_lints:
name: Check nix code
needs: changes
if: ${{ needs.changes.outputs.nix == 'true' }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
- name: Install Nix
uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-25.11
- name: Check nix formatting
run: nix develop .#ci --command alejandra --check .
- name: Check nix lints
run: nix develop .#ci --command statix check
- name: Check for dead nix code
run: nix develop .#ci --command deadnix

build_bencher_nix:
name: Build `bencher` Nix Package
needs: changes
if: ${{ needs.changes.outputs.nix == 'true' || needs.changes.outputs.cli == 'true' }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
- name: Install Nix
uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-25.11
- name: Nix build
run: nix build .#bencher

build_api_nix:
name: Build `api` Nix Package
needs: changes
if: ${{ needs.changes.outputs.nix == 'true' || needs.changes.outputs.api == 'true' }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
- name: Install Nix
uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-25.11
- name: Nix build
run: nix build .#api
2 changes: 2 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Bencher is a continuous benchmarking platform that detects and prevents performa

Version control uses Jujutsu (`jj`) with Git.

- Do **NOT** add `Co-Authored-By` lines to commit messages

## Development Methodology

- Practice test-driven development (TDD)
Expand Down
Loading