Skip to content

Commit 9b2651f

Browse files
authored
Merge branch 'main' into reconvergence-workflow
2 parents 791b196 + 9cdb2b0 commit 9b2651f

126 files changed

Lines changed: 5474 additions & 290 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-and-test-callable.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,45 +106,47 @@ on:
106106

107107
jobs:
108108
build:
109+
permissions:
110+
checks: write
109111
runs-on: [self-hosted, "hlsl-${{ inputs.SKU }}"]
110112
steps:
111113
- name: Checkout DXC
112-
uses: actions/checkout@v4
114+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
113115
with:
114116
repository: Microsoft/DirectXShaderCompiler
115117
ref: ${{ inputs.DXC-branch }}
116118
path: DXC
117119
fetch-depth: 1
118120
submodules: true
119121
- name: Checkout LLVM
120-
uses: actions/checkout@v4
122+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
121123
with:
122124
repository: ${{ inputs.LLVM-fork }}/llvm-project
123125
ref: ${{ inputs.LLVM-branch }}
124126
path: llvm-project
125127
fetch-depth: 1
126128
- name: Checkout OffloadTest
127-
uses: actions/checkout@v4
129+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
128130
with:
129131
repository: llvm/offload-test-suite
130132
ref: ${{ inputs.OffloadTest-branch }}
131133
path: OffloadTest
132134
fetch-depth: 1
133135
- name: Checkout Golden Images
134-
uses: actions/checkout@v4
136+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
135137
with:
136138
repository: llvm/offload-golden-images
137139
ref: main
138140
path: golden-images
139141
fetch-depth: 1
140142
- name: Setup Windows x64
141143
if: inputs.OS == 'windows' && runner.arch != 'ARM64'
142-
uses: llvm/actions/setup-windows@main
144+
uses: llvm/actions/setup-windows@89a8cf80982d830faab019237860b344a6390c30 # main
143145
with:
144146
arch: amd64
145147
- name: Setup Windows
146148
if: inputs.OS == 'windows' && runner.arch == 'ARM64'
147-
uses: llvm/actions/setup-windows@main
149+
uses: llvm/actions/setup-windows@89a8cf80982d830faab019237860b344a6390c30 # main
148150
with:
149151
arch: arm64
150152
- name: Detect Clang
@@ -194,7 +196,7 @@ jobs:
194196
cd build
195197
./bin/llvm-lit -v --xunit-xml-output=testresults-max-reconv.xunit.xml ${{ github.workspace }}/OffloadTest/tools/TestGenerator/reconvergence/tests
196198
- name: Publish Test Results
197-
uses: EnricoMi/publish-unit-test-result-action/macos@v2
199+
uses: EnricoMi/publish-unit-test-result-action/macos@34d7c956a59aed1bfebf31df77b8de55db9bbaaf # v2.21.0
198200
if: always() && inputs.OS == 'macOS'
199201
with:
200202
check_name: "HLSL Test Results"

.github/workflows/macos-clang-mtl.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,20 @@ name: macOS Metal Clang
22

33
permissions:
44
contents: read
5-
checks: write
65

76
on:
87
workflow_dispatch:
98
schedule:
109
- cron: '*/30 * * * *' # run every 30 minutes
10+
pull_request:
11+
paths:
12+
- .github/workflows/macos-clang-mtl.yaml
1113

1214
jobs:
1315
macOS-Metal-Clang:
16+
permissions:
17+
contents: read
18+
checks: write
1419
uses: ./.github/workflows/build-and-test-callable.yaml
1520
with:
1621
OS: macOS

.github/workflows/macos-dxc-mtl.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,20 @@ name: macOS Metal DXC
22

33
permissions:
44
contents: read
5-
checks: write
65

76
on:
87
workflow_dispatch:
98
schedule:
109
- cron: '*/30 * * * *' # run every 30 minutes
10+
pull_request:
11+
paths:
12+
- .github/workflows/macos-dxc-mtl.yaml
1113

1214
jobs:
1315
macOS-Metal-DXC:
16+
permissions:
17+
contents: read
18+
checks: write
1419
uses: ./.github/workflows/build-and-test-callable.yaml
1520
with:
1621
OS: macOS

.github/workflows/pr-description-checker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
check-pr-description:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
1515
- uses: jadrol/pr-description-checker-action@c659fed338a52d657d34462c8bc7fc1f65d25758
1616
id: description-checker
1717
with:

.github/workflows/pr-matrix.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Execution Testing
22

33
permissions:
44
contents: read
5-
checks: write
65

76
on:
87
pull_request:
@@ -15,6 +14,9 @@ concurrency:
1514

1615
jobs:
1716
Exec-Tests-Windows:
17+
permissions:
18+
contents: read
19+
checks: write
1820
strategy:
1921
fail-fast: false
2022
matrix:
@@ -30,6 +32,9 @@ jobs:
3032
LLVM-ExtraCMakeArgs: -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DOFFLOADTEST_USE_CLANG_TIDY=On
3133

3234
Exec-Tests-Windows-Warp:
35+
permissions:
36+
contents: read
37+
checks: write
3338
strategy:
3439
fail-fast: false
3540
matrix:
@@ -45,6 +50,9 @@ jobs:
4550
LLVM-ExtraCMakeArgs: -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DOFFLOADTEST_USE_CLANG_TIDY=On
4651

4752
Exec-Tests-Extra:
53+
permissions:
54+
contents: read
55+
checks: write
4856
if: contains( github.event.pull_request.labels.*.name, 'test-all')
4957
strategy:
5058
fail-fast: false
@@ -61,6 +69,9 @@ jobs:
6169
LLVM-ExtraCMakeArgs: -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DOFFLOADTEST_USE_CLANG_TIDY=On
6270

6371
Exec-Tests-MacOS:
72+
permissions:
73+
contents: read
74+
checks: write
6475
strategy:
6576
fail-fast: false
6677
matrix:

.github/workflows/windows-amd-clang-d3d12.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,20 @@ name: Windows D3D12 AMD Clang
22

33
permissions:
44
contents: read
5-
checks: write
65

76
on:
87
workflow_dispatch:
98
schedule:
109
- cron: '0 */6 * * *' # run every 6 hours
10+
pull_request:
11+
paths:
12+
- .github/workflows/windows-amd-clang-d3d12.yaml
1113

1214
jobs:
1315
Windows-D3D12-AMD-Clang:
16+
permissions:
17+
contents: read
18+
checks: write
1419
uses: ./.github/workflows/build-and-test-callable.yaml
1520
with:
1621
OS: windows

.github/workflows/windows-amd-clang-vk.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,20 @@ name: Windows Vulkan AMD Clang
22

33
permissions:
44
contents: read
5-
checks: write
65

76
on:
87
workflow_dispatch:
98
schedule:
109
- cron: '0 */6 * * *' # run every 6 hours
10+
pull_request:
11+
paths:
12+
- .github/workflows/windows-amd-clang-vk.yaml
1113

1214
jobs:
1315
Windows-VK-AMD-Clang:
16+
permissions:
17+
contents: read
18+
checks: write
1419
uses: ./.github/workflows/build-and-test-callable.yaml
1520
with:
1621
OS: windows

.github/workflows/windows-amd-clang-warp-d3d12.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,20 @@ name: Windows D3D12 Warp Clang
22

33
permissions:
44
contents: read
5-
checks: write
65

76
on:
87
workflow_dispatch:
98
schedule:
109
- cron: '0 */6 * * *' # run every 6 hours
10+
pull_request:
11+
paths:
12+
- .github/workflows/windows-amd-clang-warp-d3d12.yaml
1113

1214
jobs:
1315
Windows-D3D12-Warp-Clang:
16+
permissions:
17+
contents: read
18+
checks: write
1419
uses: ./.github/workflows/build-and-test-callable.yaml
1520
with:
1621
OS: windows

.github/workflows/windows-amd-clang-warp-preview-d3d12.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@ name: Windows D3D12 Warp Preview Clang
22

33
permissions:
44
contents: read
5-
checks: write
65

76
on:
87
workflow_dispatch:
8+
pull_request:
9+
paths:
10+
- .github/workflows/windows-amd-clang-warp-preview-d3d12.yaml
911

1012
jobs:
1113
Windows-D3D12-Warp-Clang:
14+
permissions:
15+
contents: read
16+
checks: write
1217
uses: ./.github/workflows/build-and-test-callable.yaml
1318
with:
1419
OS: windows

.github/workflows/windows-amd-dxc-d3d12.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,20 @@ name: Windows D3D12 AMD DXC
22

33
permissions:
44
contents: read
5-
checks: write
65

76
on:
87
workflow_dispatch:
98
schedule:
109
- cron: '0 */6 * * *' # run every 6 hours
10+
pull_request:
11+
paths:
12+
- .github/workflows/windows-amd-dxc-d3d12.yaml
1113

1214
jobs:
1315
Windows-D3D12-AMD-DXC:
16+
permissions:
17+
contents: read
18+
checks: write
1419
uses: ./.github/workflows/build-and-test-callable.yaml
1520
with:
1621
OS: windows

0 commit comments

Comments
 (0)