Skip to content

Commit fd44abe

Browse files
authored
Merge pull request #4835 from rtk-ai/develop
Next Release
2 parents 753a3b0 + bd7f87e commit fd44abe

107 files changed

Lines changed: 13477 additions & 1485 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/CICD.md‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ Trigger: pull_request to develop or master
2222
▼ ▼ ▼ ▼ ▼
2323
┌──────────┐ ┌──────────┐ ┌───────────┐ ┌─────────┐ ┌──────────┐
2424
│ test │ │ security │ │ semgrep │ │benchmark│ │ doc │
25-
│ ubuntu │ │ cargo │ │ AST-aware │ │ >=80% │ │ review │
26-
│ windows │ │ audit │ │ diff-only │ │ savings │ │ ai agent │
27-
│ macos │ │ patterns │ │ │ │ │ │ │
25+
│ ubuntu │ │ cargo │ │ AST-aware │ │ no empty│ │ review │
26+
│ windows │ │ audit │ │ diff-only │ │ or grown│ │ ai agent │
27+
│ macos │ │ patterns │ │ │ │ output │ │ │
2828
└────┬─────┘ └────┬─────┘ └─────┬─────┘ └────┬────┘ └────┬─────┘
2929
│ │ │ │ │
3030
└────────────┴─────────┬───┴─────────────┴────────────┘
@@ -34,6 +34,7 @@ Trigger: pull_request to develop or master
3434
│ to merge │
3535
└────────────────────┘
3636
37+
+ release (build, after clippy: must also pass to merge)
3738
+ DCO check (independent, develop PRs only)
3839
+ Dependabot (weekly: Cargo deps + GitHub Actions)
3940
```

‎.github/workflows/cd.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
release_created: ${{ steps.release.outputs.release_created }}
108108
tag_name: ${{ steps.release.outputs.tag_name }}
109109
steps:
110-
- uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
110+
- uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
111111
id: app-token
112112
with:
113113
client-id: ${{ secrets.APP_CLIENT_ID }}
@@ -137,7 +137,7 @@ jobs:
137137
if: ${{ needs.release-please.outputs.release_created == 'true' }}
138138
runs-on: ubuntu-latest
139139
steps:
140-
- uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
140+
- uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
141141
id: app-token
142142
with:
143143
client-id: ${{ secrets.APP_CLIENT_ID }}

‎.github/workflows/ci.yml‎

Lines changed: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
runs-on: ubuntu-latest
3232
steps:
3333
- uses: actions/checkout@v7
34-
- uses: dtolnay/rust-toolchain@stable
34+
- uses: &rust_toolchain dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
3535
with:
3636
components: rustfmt
3737
- run: cargo fmt --all -- --check
@@ -42,7 +42,7 @@ jobs:
4242
runs-on: ubuntu-latest
4343
steps:
4444
- uses: actions/checkout@v7
45-
- uses: dtolnay/rust-toolchain@stable
45+
- uses: *rust_toolchain
4646
with:
4747
components: clippy
4848
- uses: Swatinem/rust-cache@v2
@@ -58,7 +58,7 @@ jobs:
5858
runs-on: ubuntu-latest
5959
steps:
6060
- uses: actions/checkout@v7
61-
- uses: dtolnay/rust-toolchain@stable
61+
- uses: *rust_toolchain
6262
- uses: Swatinem/rust-cache@v2
6363
- run: cargo doc --no-deps
6464

@@ -74,7 +74,7 @@ jobs:
7474
needs: clippy
7575
steps:
7676
- uses: actions/checkout@v7
77-
- uses: dtolnay/rust-toolchain@stable
77+
- uses: *rust_toolchain
7878
with:
7979
components: clippy, rustfmt
8080
- uses: Swatinem/rust-cache@v2
@@ -92,7 +92,7 @@ jobs:
9292
needs: clippy
9393
steps:
9494
- uses: actions/checkout@v7
95-
- uses: dtolnay/rust-toolchain@stable
95+
- uses: *rust_toolchain
9696
with:
9797
components: clippy
9898
- uses: Swatinem/rust-cache@v2
@@ -134,7 +134,7 @@ jobs:
134134
- uses: actions/checkout@v7
135135
with:
136136
fetch-depth: 0
137-
- uses: dtolnay/rust-toolchain@stable
137+
- uses: *rust_toolchain
138138
with:
139139
targets: ${{ matrix.target }}
140140
- uses: Swatinem/rust-cache@v2
@@ -161,7 +161,7 @@ jobs:
161161
with:
162162
fetch-depth: 0
163163

164-
- uses: dtolnay/rust-toolchain@stable
164+
- uses: *rust_toolchain
165165

166166
- uses: Swatinem/rust-cache@v2
167167

@@ -296,12 +296,13 @@ jobs:
296296
steps:
297297
- uses: actions/checkout@v7
298298

299-
- uses: dtolnay/rust-toolchain@stable
299+
- uses: *rust_toolchain
300300

301301
- uses: Swatinem/rust-cache@v2
302302

303+
# Only output tokens are measured, so a release build would only add time.
303304
- name: Build rtk
304-
run: cargo build --release
305+
run: cargo build
305306

306307
- name: Install system tools
307308
run: sudo apt-get install -y tree ripgrep
@@ -314,11 +315,30 @@ jobs:
314315
with:
315316
go-version: "stable"
316317

317-
- name: Install Go tools
318-
run: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest
318+
- name: Install golangci-lint
319+
uses: golangci/golangci-lint-action@v9
320+
with:
321+
install-only: true
322+
skip-cache: true
319323

320324
- name: Run benchmark
321325
run: ./scripts/benchmark.sh
326+
env:
327+
RTK_BIN: target/debug/rtk
328+
329+
# The one PR job building the shipped profile: LTO problems only show at this link.
330+
release:
331+
name: release (build)
332+
needs: clippy
333+
runs-on: ubuntu-latest
334+
steps:
335+
- uses: actions/checkout@v7
336+
337+
- uses: *rust_toolchain
338+
339+
- uses: Swatinem/rust-cache@v2
340+
341+
- run: cargo build --release
322342

323343
# ─── AI Doc Review: develop PRs only ───
324344

‎.github/workflows/next-release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
if: github.event.pull_request.merged == true
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1
15+
- uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510
1616
id: app-token
1717
with:
1818
client-id: ${{ secrets.APP_CLIENT_ID }}

‎.github/workflows/pr-target-check.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
github.event.pull_request.base.ref == 'master' &&
1414
github.event.pull_request.head.ref != 'develop'
1515
steps:
16-
- uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
16+
- uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
1717
id: app-token
1818
with:
1919
client-id: ${{ secrets.APP_CLIENT_ID }}

0 commit comments

Comments
 (0)