Skip to content

Commit 0e2cd78

Browse files
authored
Fix MLIR binding regeneration workflow
1 parent bccfbd7 commit 0e2cd78

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/regenerate-dialects.yml renamed to .github/workflows/regenerate-mlir-bindings.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Regenerate MLIR Dialects
1+
name: Regenerate MLIR Bindings
22
on:
33
schedule:
44
- cron: '0 0 * * *'
@@ -22,22 +22,27 @@ jobs:
2222
run: |
2323
import Pkg
2424
Pkg.add("JuliaFormatter")
25+
- run: julia --project=. -e 'using Pkg; pkg"instantiate"'
26+
working-directory: ./deps/ReactantExtra
2527
- run: julia make-bindings.jl
2628
working-directory: ./deps/ReactantExtra
27-
- run: chmod -R u+rw ./src/mlir/Dialects/
29+
- run: |
30+
chmod -R u+rw ./src/mlir/Dialects/
31+
chmod u+rw ./src/mlir/libMLIR_h.jl
2832
- name: Format code
2933
shell: julia --color=yes {0}
3034
run: |
3135
using JuliaFormatter
3236
format("./src/mlir/Dialects/")
37+
format("./src/mlir/libMLIR_h.jl")
3338
- name: Create Pull Request
3439
id: cpr
3540
uses: peter-evans/create-pull-request@v7
3641
with:
3742
token: ${{ secrets.GITHUB_TOKEN }}
38-
commit-message: Regenerate MLIR Dialects
39-
title: 'Regenerate MLIR Dialects'
40-
branch: regenerate-dialects
43+
commit-message: Regenerate MLIR Bindings
44+
title: 'Regenerate MLIR Bindings'
45+
branch: regenerate-mlir-bindings
4146
delete-branch: true
4247
- name: Check outputs
4348
run: |

0 commit comments

Comments
 (0)