Skip to content

Commit f335d70

Browse files
authored
Merge pull request #521 from Xilinx/bump_to_5077090a
[AutoBump] Merge with fixes of 5077090 (Dec 09) (131)
2 parents b6a0e81 + 1188072 commit f335d70

File tree

21 files changed

+393
-107
lines changed

21 files changed

+393
-107
lines changed

.github/actions/setup-build/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ runs:
2727
steps:
2828
- name: Set up Python
2929
if: ${{ runner.arch == 'X64' }}
30-
uses: actions/setup-python@v4
30+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
3131
with:
3232
python-version: '3.11'
3333

@@ -74,7 +74,7 @@ runs:
7474

7575
- name: Enable ccache
7676
if: ${{ inputs.cache-enabled == 'true' }}
77-
uses: actions/cache@v3
77+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
7878
with:
7979
path: ${{ github.workspace }}/.ccache
8080
key: ${{ runner.os }}-${{ inputs.cache-suffix }}-${{ github.sha }}

.github/workflows/RollPyTorch.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
sudo rm -rf $GITHUB_WORKSPACE/*
2323
2424
- name: Get torch-mlir
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2626
with:
2727
submodules: 'false'
2828
token: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
@@ -95,7 +95,7 @@ jobs:
9595
9696
- name: Post issue comment on build failure
9797
if: failure()
98-
uses: peter-evans/create-or-update-comment@v2
98+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
9999
with:
100100
issue-number: 1690
101101
body: |
@@ -111,7 +111,7 @@ jobs:
111111
- name: Update PyTorch Build Cache (if running on main branch)
112112
if: github.ref_name == 'main'
113113
id: cache-pytorch
114-
uses: actions/cache@v3
114+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
115115
with:
116116
path: ${{ github.workspace }}/build_tools/python_deploy/wheelhouse
117117
key: ${{ runner.os }}-pytorch-${{ env.PT_HASH }}
@@ -127,7 +127,7 @@ jobs:
127127
git pull origin main
128128
129129
- name: Create pull request
130-
uses: peter-evans/create-pull-request@v5.0.1
130+
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
131131
with:
132132
author: Roll PyTorch Action <torch-mlir@users.noreply.github.com>
133133
branch: rollpytorch

.github/workflows/bazelBuildAndTest.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ concurrency:
2222
jobs:
2323
ubuntu-build:
2424
name: ubuntu-x86_64
25-
runs-on: ubuntu-latest
25+
runs-on: ubuntu-22.04
2626

2727
steps:
2828
- name: Prepare workspace
@@ -32,15 +32,15 @@ jobs:
3232
sudo rm -rf $GITHUB_WORKSPACE/*
3333
3434
- name: Checkout torch-mlir
35-
uses: actions/checkout@v3
35+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3636
with:
3737
submodules: 'true'
3838

3939
# Continually update cache even if there's a "hit" during
4040
# restore to avoid the cache going stale over time
4141
# https://github.com/actions/cache/blob/main/workarounds.md#update-a-cache
4242
- name: Setup cache for bazel
43-
uses: actions/cache@v3
43+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
4444
with:
4545
path: ~/.cache/bazel
4646
key: torch_mlir-bazel-build-cache-${{ runner.os }}-${{ github.sha }}
@@ -102,7 +102,7 @@ jobs:
102102
103103
- name: Send mail
104104
if: failure()
105-
uses: dawidd6/action-send-mail@v3
105+
uses: dawidd6/action-send-mail@2cea9617b09d79a095af21254fbcb7ae95903dde # v3.12.0
106106
with:
107107
server_address: ${{ secrets.SMTP_SERVER }}
108108
server_port: ${{ secrets.SMTP_PORT }}

.github/workflows/buildRelease.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
sudo rm -rf $GITHUB_WORKSPACE/*
3434
3535
- name: Get torch-mlir
36-
uses: actions/checkout@v3
36+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3737
with:
3838
submodules: 'true'
3939
fetch-depth: 0
@@ -67,7 +67,7 @@ jobs:
6767
- name: Publish Release (if requested)
6868
if: github.event.inputs.release_id != ''
6969
id: publish_release
70-
uses: eregon/publish-release@v1
70+
uses: eregon/publish-release@01df127f5e9a3c26935118e22e738d95b59d10ce # v1.0.6
7171
env:
7272
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7373
with:
@@ -83,7 +83,7 @@ jobs:
8383
#
8484
# See https://github.com/pypa/gh-action-pypi-publish/discussions/15
8585
- name: Store the binary wheel
86-
uses: actions/upload-artifact@v2
86+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
8787
with:
8888
name: wheels
8989
path: dist
@@ -105,7 +105,7 @@ jobs:
105105
sudo rm -rf $GITHUB_WORKSPACE/*
106106
107107
- name: Get torch-mlir
108-
uses: actions/checkout@v3
108+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
109109
with:
110110
submodules: 'true'
111111
fetch-depth: 0
@@ -136,7 +136,7 @@ jobs:
136136
- name: Publish Release (if requested)
137137
if: github.event.inputs.release_id != ''
138138
id: publish_release
139-
uses: eregon/publish-release@v1
139+
uses: eregon/publish-release@01df127f5e9a3c26935118e22e738d95b59d10ce # v1.0.6
140140
env:
141141
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
142142
with:
@@ -152,7 +152,7 @@ jobs:
152152
#
153153
# See https://github.com/pypa/gh-action-pypi-publish/discussions/15
154154
- name: Store the binary wheel
155-
uses: actions/upload-artifact@v2
155+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
156156
with:
157157
name: wheels
158158
path: dist
@@ -166,7 +166,7 @@ jobs:
166166
package: [torch-mlir]
167167
steps:
168168
- name: Get torch-mlir
169-
uses: actions/checkout@v3
169+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
170170
with:
171171
submodules: 'true'
172172
- uses: ./.github/actions/setup-build
@@ -197,7 +197,7 @@ jobs:
197197
- name: Publish Release (if requested)
198198
if: github.event.inputs.release_id != ''
199199
id: publish_release
200-
uses: eregon/publish-release@v1
200+
uses: eregon/publish-release@01df127f5e9a3c26935118e22e738d95b59d10ce # v1.0.6
201201
env:
202202
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
203203
with:
@@ -213,7 +213,7 @@ jobs:
213213
#
214214
# See https://github.com/pypa/gh-action-pypi-publish/discussions/15
215215
- name: Store the binary wheel
216-
uses: actions/upload-artifact@v2
216+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
217217
with:
218218
name: wheels
219219
path: dist
@@ -227,7 +227,7 @@ jobs:
227227
package: [torch-mlir]
228228
steps:
229229
- name: Get torch-mlir
230-
uses: actions/checkout@v3
230+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
231231
with:
232232
submodules: 'true'
233233
- uses: ./.github/actions/setup-build
@@ -261,7 +261,7 @@ jobs:
261261
- name: Publish Release (if requested)
262262
if: github.event.inputs.release_id != ''
263263
id: publish_release
264-
uses: eregon/publish-release@v1
264+
uses: eregon/publish-release@01df127f5e9a3c26935118e22e738d95b59d10ce # v1.0.6
265265
env:
266266
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
267267
with:
@@ -278,13 +278,13 @@ jobs:
278278
#
279279
# See https://github.com/pypa/gh-action-pypi-publish/discussions/15
280280
- name: Store the binary wheel
281-
uses: actions/upload-artifact@v2
281+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
282282
with:
283283
name: wheels
284284
path: dist
285285

286286
publish_releases:
287-
runs-on: ubuntu-latest
287+
runs-on: ubuntu-22.04
288288
permissions:
289289
contents: write
290290
actions: write
@@ -300,7 +300,7 @@ jobs:
300300

301301
steps:
302302
- name: Invoke Publish Releases Page
303-
uses: benc-uk/workflow-dispatch@v1
303+
uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4
304304
with:
305305
workflow: Publish releases page
306306
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/gh-pages-releases.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
scrape_and_publish_releases:
1010
name: "Scrape and publish releases"
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-22.04
1212
permissions:
1313
contents: write
1414

@@ -22,7 +22,7 @@ jobs:
2222
# existing lock files.
2323
sudo rm -rf $GITHUB_WORKSPACE/*
2424
- name: Checking out repository
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2626
- name: Run scrape releases script
2727
run: python ./build_tools/scrape_releases.py xilinx torch-mlir > /tmp/index.html
2828
shell: bash

.github/workflows/merge-rollpytorch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
merge-pr:
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-22.04
1313
if: |
1414
github.repository == 'llvm/torch-mlir' &&
1515
github.event.workflow_run.actor.login == 'stellaraccident' &&
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919
# Fetch the repo first so that the gh command knows where to look for the PR
2020
- name: Fetch Repo
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2222
with:
2323
token: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
2424

.github/workflows/oneshotSnapshotPackage.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
# existing lock files.
1818
sudo rm -rf $GITHUB_WORKSPACE/*
1919
20-
- name: Checkout torch-mlir
21-
uses: actions/checkout@v3
20+
- name: Checking out repository
21+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2222
with:
2323
submodules: 'true'
2424
fetch-depth: 0
@@ -44,16 +44,15 @@ jobs:
4444

4545
- name: Create Release
4646
id: create_release
47-
uses: actions/create-release@v1
48-
env:
49-
GITHUB_TOKEN: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
47+
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1.14.0
5048
with:
51-
tag_name: ${{ env.tag_name }}
52-
release_name: torch-mlir snapshot ${{ env.tag_name }}
49+
tag: ${{ env.tag_name }}
50+
name: torch-mlir snapshot ${{ env.tag_name }}
5351
body: |
5452
Automatic snapshot release of torch-mlir.
5553
draft: true
5654
prerelease: false
55+
token: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
5756

5857
- name: "Invoke workflow :: Build and Test"
5958
uses: benc-uk/workflow-dispatch@v1

.github/workflows/pre-commit-all.yml

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

77
jobs:
88
pre-commit:
9-
runs-on: ubuntu-latest
9+
runs-on: ubuntu-22.04
1010
steps:
11-
- uses: actions/checkout@v3
12-
- uses: actions/setup-python@v3
13-
- uses: pre-commit/action@v3.0.1
11+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
12+
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
13+
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
1414
with:
1515
extra_args: --color=always --all-files

.github/workflows/pre-commit.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ on:
55

66
jobs:
77
pre-commit:
8-
runs-on: ubuntu-latest
8+
runs-on: ubuntu-22.04
99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1111
with:
1212
# requites to grab the history of the PR
1313
fetch-depth: 0
14-
- uses: actions/setup-python@v3
15-
- uses: pre-commit/action@v3.0.1
14+
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
15+
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
1616
with:
1717
extra_args: --color=always --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}

.github/workflows/releaseSnapshotPackage.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
release_snapshot_package:
1111
name: "Tag snapshot release"
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-22.04
1313
# Don't run this in everyone's forks.
1414
#if: github.repository == 'llvm/torch-mlir'
1515
permissions:
@@ -26,7 +26,7 @@ jobs:
2626
sudo rm -rf $GITHUB_WORKSPACE/*
2727
2828
- name: Checking out repository
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3030

3131
- name: Compute version
3232
run: |
@@ -49,25 +49,25 @@ jobs:
4949

5050
- name: Create Release
5151
id: create_release
52-
uses: actions/create-release@v1
53-
env:
54-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1.14.0
5553
with:
56-
tag_name: ${{ env.tag_name }}
57-
release_name: torch-mlir snapshot ${{ env.tag_name }}
54+
tag: ${{ env.tag_name }}
55+
name: torch-mlir snapshot ${{ env.tag_name }}
5856
body: |
5957
Automatic snapshot release of torch-mlir.
6058
draft: true
6159
prerelease: false
60+
token: ${{ secrets.GITHUB_TOKEN }}
6261

63-
# - name: "Invoke workflow :: Build and Test"
64-
# uses: benc-uk/workflow-dispatch@v1
65-
# with:
66-
# workflow: Build and Test
67-
# ref: "${{ env.tag_name }}"
62+
- name: "Invoke workflow :: Build and Test"
63+
uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4
64+
with:
65+
workflow: Build and Test
66+
token: ${{ secrets.GITHUB_TOKEN }}
67+
ref: "${{ env.tag_name }}"
6868

6969
- name: "Invoke workflow :: Release Build"
70-
uses: benc-uk/workflow-dispatch@v1
70+
uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4
7171
with:
7272
workflow: Release Build
7373
ref: "${{ env.tag_name }}"

0 commit comments

Comments
 (0)