Skip to content

Commit c973bab

Browse files
authored
Refactor regenerate-mlir-bindings.yml workflow (#204)
* Refactor regenerate-mlir-bindings.yml workflow * fix typo * Name step on workflow * Stop tracking file permissions * Refactor regenerate-mlir-bindings.yml workflow * Readd custom depot * fix typo * Readd file permission modification
1 parent c071271 commit c973bab

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/regenerate-mlir-bindings.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,26 @@ jobs:
2222
run: |
2323
import Pkg
2424
Pkg.add("JuliaFormatter")
25-
- run: julia --project=. -e 'using Pkg; pkg"instantiate"; pkg"update"; pkg"precompile"; using Clang; Clang.JLLEnvs.get_system_includes()'
25+
- name: Instantiate dependencies
26+
shell: julia --project=. --color=yes {0}
27+
run: |
28+
using Pkg
29+
Pkg.instantiate()
30+
Pkg.precompile()
31+
using Clang
32+
Clang.JLLEnvs.get_system_includes()
2633
working-directory: ./deps/ReactantExtra
2734
env:
2835
JULIA_DEPOT_PATH: ${{ runner.temp }}/julia_depot
29-
- run: julia --project=. make-bindings.jl
36+
- name: Generate MLIR Bindings
37+
run: julia --project=. --color=yes make-bindings.jl
3038
working-directory: ./deps/ReactantExtra
3139
env:
3240
JULIA_DEPOT_PATH: ${{ runner.temp }}/julia_depot
3341
- run: |
3442
chmod -R u+rw ./src/mlir/Dialects/
3543
chmod u+rw ./src/mlir/libMLIR_h.jl
44+
git config core.fileMode false
3645
- name: Format code
3746
shell: julia --color=yes {0}
3847
run: |

0 commit comments

Comments
 (0)