Skip to content

Commit 7ec13dc

Browse files
authored
Merge pull request #3966 from tnull/2025-07-fix-the-fix
Move `check_commits` CI to dedicated workflow (main)
2 parents 7e31b3e + 9893797 commit 7ec13dc

File tree

2 files changed

+34
-22
lines changed

2 files changed

+34
-22
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -201,28 +201,6 @@ jobs:
201201
cd bench
202202
RUSTFLAGS="--cfg=ldk_bench --cfg=require_route_graph_test" cargo bench
203203
204-
check_commits:
205-
runs-on: self-hosted
206-
env:
207-
TOOLCHAIN: stable
208-
steps:
209-
- name: Checkout source code
210-
uses: actions/checkout@v4
211-
with:
212-
fetch-depth: 0
213-
- name: Install Rust ${{ env.TOOLCHAIN }} toolchain
214-
run: |
215-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ env.TOOLCHAIN }}
216-
- name: Fetch full tree and rebase on upstream
217-
run: |
218-
git remote add upstream https://github.com/lightningdevkit/rust-lightning
219-
git fetch upstream
220-
export GIT_COMMITTER_EMAIL="[email protected]"
221-
export GIT_COMMITTER_NAME="RL CI"
222-
git rebase upstream/${{ github.base_ref }}
223-
- name: For each commit, run cargo check (including in fuzz)
224-
run: ci/check-each-commit.sh upstream/${{ github.base_ref }}
225-
226204
check_release:
227205
runs-on: ubuntu-latest
228206
env:

.github/workflows/check_commits.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI check_commits
2+
3+
on:
4+
pull_request:
5+
branches-ignore:
6+
- master
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
check_commits:
14+
runs-on: self-hosted
15+
env:
16+
TOOLCHAIN: stable
17+
steps:
18+
- name: Checkout source code
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
- name: Install Rust ${{ env.TOOLCHAIN }} toolchain
23+
run: |
24+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ env.TOOLCHAIN }}
25+
- name: Fetch full tree and rebase on upstream
26+
run: |
27+
git remote add upstream https://github.com/lightningdevkit/rust-lightning
28+
git fetch upstream
29+
export GIT_COMMITTER_EMAIL="[email protected]"
30+
export GIT_COMMITTER_NAME="RL CI"
31+
git rebase upstream/${{ github.base_ref }}
32+
- name: For each commit, run cargo check (including in fuzz)
33+
run: ci/check-each-commit.sh upstream/${{ github.base_ref }}
34+

0 commit comments

Comments
 (0)