Skip to content

Commit 9291178

Browse files
authored
Ci gen opcode metadata (RustPython#6677)
* Autogen opcode metadata * Manually modify opcode metadata
1 parent 8c15799 commit 9291178

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,12 +324,20 @@ jobs:
324324
- uses: dtolnay/rust-toolchain@stable
325325
with:
326326
components: clippy
327+
327328
- name: run clippy on wasm
328329
run: cargo clippy --manifest-path=crates/wasm/Cargo.toml -- -Dwarnings
329330

330331
- name: Ensure docs generate no warnings
331332
run: cargo doc
332333

334+
- name: Ensure Lib/_opcode_metadata is updated
335+
run: |
336+
python scripts/generate_opcode_metadata.py
337+
if [ -z "$(git status --porcelain)" ]; then
338+
exit 1
339+
fi
340+
333341
- name: Install ruff
334342
uses: astral-sh/ruff-action@57714a7c8a2e59f32539362ba31877a1957dded1 # v3.5.1
335343
with:

.github/workflows/pr-auto-commit.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747

4848
- run: ruff format
4949
- run: ruff check --select I --fix
50+
- run: python scripts/generate_opcode_metadata.py
5051

5152
- name: Configure git
5253
run: |

Lib/_opcode_metadata.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
_specializations = {}
66

7+
8+
9+
10+
711
_specialized_opmap = {}
812

913
opmap = {

0 commit comments

Comments
 (0)