Skip to content

Commit 6987bd8

Browse files
committed
ci: set integration runtime
1 parent 39b0a0b commit 6987bd8

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/CommonCI.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,15 @@ jobs:
168168
contents: |
169169
[Reactant]
170170
xla_runtime = "PJRT"
171+
- name: "Setup Runtime Preferences for ${{ inputs.project }} (PJRT)"
172+
if: ${{ (inputs.runtime == 'pjrt' || inputs.runtime == 'both') && inputs.project != '.' }}
173+
uses: "DamianReeves/write-file-action@master"
174+
with:
175+
path: ${{ inputs.project }}/LocalPreferences.toml
176+
write-mode: "overwrite"
177+
contents: |
178+
[Reactant]
179+
xla_runtime = "PJRT"
171180
172181
- name: "Run Tests (PJRT)"
173182
if: ${{ (inputs.runtime == 'pjrt' || inputs.runtime == 'both') && inputs.project == '.' }}
@@ -204,6 +213,15 @@ jobs:
204213
contents: |
205214
[Reactant]
206215
xla_runtime = "IFRT"
216+
- name: "Setup Runtime Preferences for ${{ inputs.project }} (IFRT)"
217+
if: ${{ (inputs.runtime == 'ifrt' || inputs.runtime == 'both') && inputs.project != '.' }}
218+
uses: "DamianReeves/write-file-action@master"
219+
with:
220+
path: ${{ inputs.project }}/LocalPreferences.toml
221+
write-mode: "overwrite"
222+
contents: |
223+
[Reactant]
224+
xla_runtime = "IFRT"
207225
208226
- name: "Run Tests (IFRT)"
209227
if: ${{ (inputs.runtime == 'ifrt' || inputs.runtime == 'both') && inputs.project == '.' }}

0 commit comments

Comments
 (0)