Skip to content

Commit 4f104d3

Browse files
authored
CI: fix rebuilding peepmatic peephole optimizers (#2311)
The test that triggers the rebuild of the peephole optimizers is in the `cranelift-codegen` crate, not the umbrella cranelift crate. This was previously successfully running zero tests, and then successfully reporting no `git diff` because no peephole optimizers were ever rebuilt. This change fixes it so that we run the correct test that triggers the rebuilding of the peephole optimizers.
1 parent c5a2bd3 commit 4f104d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ jobs:
168168
- name: Rebuild Peepmatic-based peephole optimizers and test them
169169
run: |
170170
cargo test \
171-
--features 'enable-peepmatic cranelift-codegen/rebuild-peephole-optimizers' \
171+
--features 'enable-peepmatic rebuild-peephole-optimizers' \
172172
peepmatic
173-
working-directory: ./cranelift
173+
working-directory: ./cranelift/codegen
174174
- name: Check that built peephole optimizers are up to date
175175
run: git diff --exit-code
176176
- name: Test with Peepmatic-based peephole optimizers

0 commit comments

Comments
 (0)