Skip to content

Commit f3fe652

Browse files
committed
Check each commit at least builds in CI
1 parent 343aacc commit f3fe652

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,32 @@ jobs:
7878
token: f421b687-4dc2-4387-ac3d-dc3b2528af57
7979
fail_ci_if_error: true
8080

81+
check_commits:
82+
runs-on: ubuntu-latest
83+
env:
84+
TOOLCHAIN: stable
85+
steps:
86+
- name: Checkout source code
87+
uses: actions/checkout@v2
88+
- name: Install Rust ${{ env.TOOLCHAIN }} toolchain
89+
uses: actions-rs/toolchain@v1
90+
with:
91+
toolchain: ${{ env.TOOLCHAIN }}
92+
override: true
93+
profile: minimal
94+
- name: Fetch full tree and rebase on upstream
95+
run: |
96+
git remote add upstream https://github.com/rust-bitcoin/rust-lightning
97+
git fetch upstream
98+
git rebase upstream/main
99+
- name: `cargo check` each commit
100+
run: |
101+
for COMMITHASH in git log --format=format:%H upstream/main...HEAD; do
102+
git checkout $COMMITHASH
103+
cargo check
104+
cd fuzz && cargo check --features=stdin_fuzz && cd ..
105+
done
106+
81107
fuzz:
82108
runs-on: ubuntu-latest
83109
env:

0 commit comments

Comments
 (0)