Repository navigation
1134 lines (1040 loc) · 53.8 KB
/
Copy pathcompiler_bump.yml
File metadata and controls
1134 lines (1040 loc) · 53.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
# This workflow automates the compiler team's daily branch creation and testing.
#
# It replaces the Jenkins pipeline that:
# 1. Creates a branch `amd-compiler-YYYY-MM-DD[-suffix]` in TheRock
# 2. Updates compiler submodules (amd-llvm, hipify, spirv-llvm-translator) to amd-staging HEAD
# 3. Builds for ALL architectures and tests on gfx90a, gfx94x, gfx950, gfx1151 (Linux) and gfx110x (Windows)
# 4. Publishes artifacts to release buckets for downstream teams
#
# Key difference from multi_arch_release.yml:
# - Builds ALL architectures (release + ASAN)
# - Tests gfx90a, gfx94x, gfx950, gfx1151 (Linux) and gfx110x (Windows) with quick/standard test type
# - No ASAN tests (build only for downstream consumption)
# Notes on security:
# * Higher-trust entry point: manually triggered by maintainers.
# * Inherit secrets to avoid repeating mappings across nested workflows.
name: Compiler Daily Bump
on:
schedule:
# Run daily at 1:30 AM ET (5:30 AM UTC, or 6:30 AM UTC during DST)
# Using 5:30 AM UTC which is 1:30 AM ET during standard time
- cron: "30 5 * * *"
workflow_dispatch:
inputs:
branch_suffix:
description: 'Optional suffix for branch name (e.g., "COT", "SMP"). Branch will be: amd-compiler-YYYY-MM-DD[-suffix]'
type: string
default: "COT"
llvm_ref:
description: 'llvm-project ref (branch/tag/SHA). Default: amd-staging HEAD'
type: string
default: "amd-staging"
hipify_ref:
description: 'HIPIFY ref (branch/tag/SHA). Default: amd-staging HEAD'
type: string
default: "amd-staging"
spirv_ref:
description: 'SPIRV-LLVM-Translator ref (branch/tag/SHA). Default: amd-staging HEAD'
type: string
default: "amd-staging"
test_type:
description: 'Test type'
type: choice
options:
- quick
- standard
default: "quick"
build_only:
description: 'Build only - skip test triggers (still produces artifacts)'
type: boolean
default: false
dry_run:
description: 'Dry run - create branch but do not trigger builds'
type: boolean
default: false
linux_amdgpu_families:
description: 'Linux GPU families to build (comma-separated, or "all"/"none")'
type: string
default: "all"
windows_amdgpu_families:
description: 'Windows GPU families to build (comma-separated, or "all"/"none")'
type: string
default: "all"
permissions:
contents: read
run-name: >-
Compiler Bump (${{ inputs.branch_suffix || 'COT' }})
| Test: ${{ inputs.test_type || 'standard' }}
${{ inputs.build_only && '| Build Only' || '' }}
| Linux: ${{ inputs.linux_amdgpu_families || 'all' }}
| Windows: ${{ inputs.windows_amdgpu_families || 'all' }}
jobs:
# ==========================================================================
# Phase 1: Create branch with bumped compiler submodules
# ==========================================================================
create-branch:
permissions:
contents: write # Push the compiler bump branch.
name: Create compiler bump branch
runs-on: ubuntu-26.04
outputs:
branch_name: ${{ steps.create-branch.outputs.branch_name }}
rocm_system_ref: ${{ steps.rocm-systems-ref.outputs.sha }}
steps:
- name: Generate branch name
id: branch-name
env:
BRANCH_SUFFIX: ${{ inputs.branch_suffix || 'COT' }}
run: |
DATE=$(date +%Y-%-m-%-d)
if [ -n "${BRANCH_SUFFIX}" ]; then
BRANCH_NAME="amd-compiler-${DATE}-${BRANCH_SUFFIX}"
else
BRANCH_NAME="amd-compiler-${DATE}"
fi
echo "branch_name=${BRANCH_NAME}" >> "$GITHUB_OUTPUT"
echo "## Branch Name" >> "$GITHUB_STEP_SUMMARY"
echo "\`${BRANCH_NAME}\`" >> "$GITHUB_STEP_SUMMARY"
- name: Checkout TheRock
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
timeout-minutes: 15
with:
# Retain GITHUB_TOKEN for the "Create and push branch" step below.
persist-credentials: true
fetch-depth: 0
- name: Initialize compiler submodules
run: |
git submodule init compiler/amd-llvm compiler/hipify compiler/spirv-llvm-translator
git submodule update --depth=1 compiler/amd-llvm compiler/hipify compiler/spirv-llvm-translator
- name: Update submodules to specified refs
id: update-submodules
env:
LLVM_REF: ${{ inputs.llvm_ref || 'amd-staging' }}
HIPIFY_REF: ${{ inputs.hipify_ref || 'amd-staging' }}
SPIRV_REF: ${{ inputs.spirv_ref || 'amd-staging' }}
run: |
set -e
echo "## Submodule Updates" >> "$GITHUB_STEP_SUMMARY"
echo "" >> "$GITHUB_STEP_SUMMARY"
echo "| Component | Ref | SHA |" >> "$GITHUB_STEP_SUMMARY"
echo "|-----------|-----|-----|" >> "$GITHUB_STEP_SUMMARY"
# Update llvm-project
cd compiler/amd-llvm
git fetch origin "${LLVM_REF}"
git checkout FETCH_HEAD
LLVM_SHA=$(git rev-parse HEAD)
echo "| llvm-project | ${LLVM_REF} | \`${LLVM_SHA:0:12}\` |" >> "$GITHUB_STEP_SUMMARY"
cd ../..
# Update HIPIFY
cd compiler/hipify
git fetch origin "${HIPIFY_REF}"
git checkout FETCH_HEAD
HIPIFY_SHA=$(git rev-parse HEAD)
echo "| HIPIFY | ${HIPIFY_REF} | \`${HIPIFY_SHA:0:12}\` |" >> "$GITHUB_STEP_SUMMARY"
cd ../..
# Update SPIRV-LLVM-Translator
cd compiler/spirv-llvm-translator
git fetch origin "${SPIRV_REF}"
git checkout FETCH_HEAD
SPIRV_SHA=$(git rev-parse HEAD)
echo "| SPIRV-LLVM-Translator | ${SPIRV_REF} | \`${SPIRV_SHA:0:12}\` |" >> "$GITHUB_STEP_SUMMARY"
cd ../..
# git push uses GITHUB_TOKEN persisted by "Checkout TheRock".
- name: Create and push branch
id: create-branch
env:
LLVM_REF: ${{ inputs.llvm_ref || 'amd-staging' }}
HIPIFY_REF: ${{ inputs.hipify_ref || 'amd-staging' }}
SPIRV_REF: ${{ inputs.spirv_ref || 'amd-staging' }}
BRANCH_NAME: ${{ steps.branch-name.outputs.branch_name }}
run: |
echo "branch_name=${BRANCH_NAME}" >> "$GITHUB_OUTPUT"
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git checkout -b "${BRANCH_NAME}"
git add compiler/amd-llvm compiler/hipify compiler/spirv-llvm-translator
if git diff --cached --quiet; then
echo "No submodule changes detected"
echo "> **Note:** No submodule changes - already at specified refs" >> "$GITHUB_STEP_SUMMARY"
else
git commit -m "${BRANCH_NAME}
Compiler submodule bump:
- llvm-project: ${LLVM_REF}
- HIPIFY: ${HIPIFY_REF}
- SPIRV-LLVM-Translator: ${SPIRV_REF}"
fi
git push origin "${BRANCH_NAME}"
echo "" >> "$GITHUB_STEP_SUMMARY"
echo "Branch pushed: [\`${BRANCH_NAME}\`](https://github.com/${{ github.repository }}/tree/${BRANCH_NAME})" >> "$GITHUB_STEP_SUMMARY"
- name: Get rocm-systems submodule ref
id: rocm-systems-ref
run: |
echo "sha=$(git ls-tree HEAD rocm-systems | awk '{print $3}')" >> "$GITHUB_OUTPUT"
# ==========================================================================
# Phase 2 - Linux: Build and packaging
# ==========================================================================
setup-linux:
permissions:
contents: read
actions: read # Discover prior workflow runs for stage reuse.
name: Setup Linux Release
needs: create-branch
if: ${{ inputs.dry_run != true && (inputs.linux_amdgpu_families || 'all') != 'none' }}
uses: ./.github/workflows/setup_multi_arch.yml
with:
build_variant: "release"
release_type: dev
linux_amdgpu_families: ${{ inputs.linux_amdgpu_families || 'all' }}
windows_amdgpu_families: "none"
run_rocm_tests: true
build_pytorch: true
build_jax: true
repository: ${{ github.repository }}
ref: ${{ needs.create-branch.outputs.branch_name }}
secrets: inherit # zizmor: ignore[secrets-inherit]
build-linux:
permissions:
contents: read
id-token: write # Authenticate to AWS for build artifacts and publication.
name: Build Linux Release
needs: [create-branch, setup-linux]
if: ${{ inputs.dry_run != true && needs.setup-linux.outputs.linux_build_config != '' }}
uses: ./.github/workflows/multi_arch_build_portable_linux.yml
secrets: inherit # zizmor: ignore[secrets-inherit]
with:
matrix_per_family_json: ${{ toJSON(fromJSON(needs.setup-linux.outputs.linux_build_config).per_family_info) }}
dist_amdgpu_families: ${{ fromJSON(needs.setup-linux.outputs.linux_build_config).dist_amdgpu_families }}
artifact_group: ${{ fromJSON(needs.setup-linux.outputs.linux_build_config).artifact_group }}
build_variant_label: ${{ fromJSON(needs.setup-linux.outputs.linux_build_config).build_variant_label }}
build_variant_cmake_preset: ${{ fromJSON(needs.setup-linux.outputs.linux_build_config).build_variant_cmake_preset }}
build_variant_suffix: ${{ fromJSON(needs.setup-linux.outputs.linux_build_config).build_variant_suffix }}
build_runs_on_large: ${{ fromJSON(needs.setup-linux.outputs.linux_build_config).build_runs_on_large }}
build_runs_on_small: ${{ fromJSON(needs.setup-linux.outputs.linux_build_config).build_runs_on_small }}
build_runs_on_medium: ${{ fromJSON(needs.setup-linux.outputs.linux_build_config).build_runs_on_medium }}
rocm_package_version: ${{ needs.setup-linux.outputs.rocm_package_version }}
release_type: dev
repository: ${{ github.repository }}
ref: ${{ needs.setup-linux.outputs.ref }}
build-linux-tarballs:
permissions:
contents: read
id-token: write # Authenticate to AWS for build artifacts and publication.
name: Build Linux Tarballs
needs: [create-branch, setup-linux, build-linux]
if: ${{ inputs.dry_run != true && needs.build-linux.result == 'success' }}
uses: ./.github/workflows/multi_arch_build_tarballs.yml
secrets: inherit # zizmor: ignore[secrets-inherit]
with:
dist_amdgpu_families: ${{ fromJSON(needs.setup-linux.outputs.linux_build_config).dist_amdgpu_families }}
platform: linux
package_version: ${{ needs.setup-linux.outputs.rocm_package_version }}
release_type: dev
build_runs_on: ${{ fromJSON(needs.setup-linux.outputs.linux_build_config).build_runs_on_large }}
repository: ${{ github.repository }}
ref: ${{ needs.setup-linux.outputs.ref }}
build-linux-python-packages:
permissions:
contents: read
id-token: write # Authenticate to AWS for build artifacts and publication.
name: Build Linux Python Packages
needs: [create-branch, setup-linux, build-linux]
if: ${{ inputs.dry_run != true && needs.build-linux.result == 'success' }}
uses: ./.github/workflows/build_portable_linux_python_packages.yml
secrets: inherit # zizmor: ignore[secrets-inherit]
with:
artifact_group: ${{ fromJSON(needs.setup-linux.outputs.linux_build_config).artifact_group }}
amdgpu_families: ${{ fromJSON(needs.setup-linux.outputs.linux_build_config).dist_amdgpu_families }}
linux_amdgpu_families: ${{ fromJSON(needs.setup-linux.outputs.linux_build_config).linux_amdgpu_families }}
windows_amdgpu_families: ${{ fromJSON(needs.setup-linux.outputs.linux_build_config).windows_amdgpu_families }}
package_version: ${{ needs.setup-linux.outputs.rocm_package_version }}
release_type: dev
build_runs_on: ${{ fromJSON(needs.setup-linux.outputs.linux_build_config).build_runs_on_medium }}
repository: ${{ github.repository }}
ref: ${{ needs.setup-linux.outputs.ref }}
build-linux-native-deb-packages:
permissions:
contents: read
id-token: write # Authenticate to AWS for build artifacts and publication.
name: Build Linux DEB Packages
needs: [create-branch, setup-linux, build-linux]
if: ${{ inputs.dry_run != true && needs.build-linux.result == 'success' }}
uses: ./.github/workflows/multi_arch_build_native_linux_packages.yml
secrets: inherit # zizmor: ignore[secrets-inherit]
with:
dist_amdgpu_families: ${{ fromJSON(needs.setup-linux.outputs.linux_build_config).dist_amdgpu_families }}
artifact_run_id: ${{ github.run_id }}
rocm_version: ${{ needs.setup-linux.outputs.rocm_deb_package_version }}
native_package_type: deb
release_type: dev
build_variant: release
build_runs_on: ${{ fromJSON(needs.setup-linux.outputs.linux_build_config).build_runs_on_small }}
repository: ${{ github.repository }}
ref: ${{ needs.setup-linux.outputs.ref }}
build-linux-native-rpm-packages:
permissions:
contents: read
id-token: write # Authenticate to AWS for build artifacts and publication.
name: Build Linux RPM Packages
needs: [create-branch, setup-linux, build-linux]
if: ${{ inputs.dry_run != true && needs.build-linux.result == 'success' }}
uses: ./.github/workflows/multi_arch_build_native_linux_packages.yml
secrets: inherit # zizmor: ignore[secrets-inherit]
with:
dist_amdgpu_families: ${{ fromJSON(needs.setup-linux.outputs.linux_build_config).dist_amdgpu_families }}
artifact_run_id: ${{ github.run_id }}
rocm_version: ${{ needs.setup-linux.outputs.rocm_rpm_package_version }}
native_package_type: rpm
release_type: dev
build_variant: release
build_runs_on: ${{ fromJSON(needs.setup-linux.outputs.linux_build_config).build_runs_on_small }}
repository: ${{ github.repository }}
ref: ${{ needs.setup-linux.outputs.ref }}
publish-linux-artifacts:
permissions:
contents: read
id-token: write # Authenticate to AWS for build artifacts and publication.
name: Publish Linux Artifacts
needs: [create-branch, setup-linux, build-linux, build-linux-tarballs, build-linux-python-packages, build-linux-native-deb-packages, build-linux-native-rpm-packages]
if: ${{ inputs.dry_run != true && needs.build-linux-tarballs.result == 'success' && needs.build-linux-python-packages.result == 'success' && needs.build-linux-native-deb-packages.result == 'success' && needs.build-linux-native-rpm-packages.result == 'success' }}
runs-on: ubuntu-26.04
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
timeout-minutes: 15
with:
persist-credentials: false
ref: ${{ needs.setup-linux.outputs.ref }}
- name: Setup Python
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"
- name: Install requirements
run: pip install -r requirements.txt
- name: Configure AWS Credentials
uses: ./.github/actions/configure_aws_product_publication_credentials
with:
release_type: dev
product: core
- name: Publish to release buckets
run: |
python build_tools/github_actions/publish_rocm_to_release_buckets.py \
--run-id="${{ github.run_id }}" \
--platform=linux \
--release-type="dev" \
--structured \
--build-variant="release"
# PyTorch wheels - triggered after Linux Python packages are published
trigger-linux-pytorch-wheels:
permissions:
actions: write # Dispatch downstream workflows.
name: Trigger Linux PyTorch Wheels
needs: [create-branch, setup-linux, build-linux-python-packages, publish-linux-artifacts]
if: ${{ inputs.dry_run != true && needs.publish-linux-artifacts.result == 'success' }}
runs-on: ubuntu-26.04
steps:
- name: Trigger PyTorch Build
uses: benc-uk/workflow-dispatch@d004979be141727c7a17c28f603e2facc40d0855 # v1.3.3
with:
workflow: multi_arch_release_linux_pytorch_wheels.yml
inputs: |
{
"amdgpu_families": "${{ fromJSON(needs.setup-linux.outputs.linux_build_config).dist_amdgpu_families }}",
"rocm_version": "${{ needs.setup-linux.outputs.rocm_package_version }}",
"rocm_package_find_links_url": "${{ needs.build-linux-python-packages.outputs.package_find_links_url }}",
"release_type": "dev",
"run_full_pytorch_tests": "false",
"ref": "${{ needs.create-branch.outputs.branch_name }}",
"python_version": "3.12,3.13,3.14",
"build_runs_on": "${{ fromJSON(needs.setup-linux.outputs.linux_build_config).build_runs_on_large }}"
}
# JAX wheels - triggered after Linux Python packages are published
trigger-linux-jax-wheels:
permissions:
actions: write # Dispatch downstream workflows.
name: Trigger Linux JAX Wheels
needs: [create-branch, setup-linux, build-linux-python-packages, publish-linux-artifacts]
if: ${{ inputs.dry_run != true && needs.publish-linux-artifacts.result == 'success' }}
runs-on: ubuntu-26.04
steps:
- name: Trigger JAX Build
uses: benc-uk/workflow-dispatch@d004979be141727c7a17c28f603e2facc40d0855 # v1.3.3
with:
workflow: multi_arch_release_linux_jax_wheels.yml
inputs: |
{
"test_amdgpu_family": "${{ contains(fromJSON(needs.setup-linux.outputs.linux_build_config).dist_amdgpu_families, 'gfx94X-dcgpu') && 'gfx94X-dcgpu' || '' }}",
"release_type": "dev",
"rocm_version": "${{ needs.setup-linux.outputs.rocm_package_version }}",
"rocm_package_find_links_url": "${{ needs.build-linux-python-packages.outputs.package_find_links_url }}",
"repository": "${{ github.repository }}",
"ref": "${{ needs.create-branch.outputs.branch_name }}",
"python_version": "3.12,3.13,3.14"
}
# ==========================================================================
# Phase 2 - Windows: Build and packaging
# ==========================================================================
setup-windows:
permissions:
contents: read
actions: read # Discover prior workflow runs for stage reuse.
name: Setup Windows Release
needs: create-branch
if: ${{ inputs.dry_run != true && (inputs.windows_amdgpu_families || 'all') != 'none' }}
uses: ./.github/workflows/setup_multi_arch.yml
with:
build_variant: "release"
release_type: dev
linux_amdgpu_families: "none"
windows_amdgpu_families: ${{ inputs.windows_amdgpu_families || 'all' }}
run_rocm_tests: true
build_pytorch: true
build_jax: true
repository: ${{ github.repository }}
ref: ${{ needs.create-branch.outputs.branch_name }}
secrets: inherit # zizmor: ignore[secrets-inherit]
build-windows:
permissions:
contents: read
id-token: write # Authenticate to AWS for build artifacts and publication.
name: Build Windows Release
needs: [create-branch, setup-windows]
if: ${{ inputs.dry_run != true && needs.setup-windows.outputs.windows_build_config != '' }}
uses: ./.github/workflows/multi_arch_build_windows.yml
secrets: inherit # zizmor: ignore[secrets-inherit]
with:
matrix_per_family_json: ${{ toJSON(fromJSON(needs.setup-windows.outputs.windows_build_config).per_family_info) }}
dist_amdgpu_families: ${{ fromJSON(needs.setup-windows.outputs.windows_build_config).dist_amdgpu_families }}
artifact_group: ${{ fromJSON(needs.setup-windows.outputs.windows_build_config).artifact_group }}
build_variant_label: ${{ fromJSON(needs.setup-windows.outputs.windows_build_config).build_variant_label }}
build_variant_cmake_preset: ${{ fromJSON(needs.setup-windows.outputs.windows_build_config).build_variant_cmake_preset }}
build_variant_suffix: ${{ fromJSON(needs.setup-windows.outputs.windows_build_config).build_variant_suffix }}
build_runs_on_large: ${{ fromJSON(needs.setup-windows.outputs.windows_build_config).build_runs_on_large }}
build_runs_on_small: ${{ fromJSON(needs.setup-windows.outputs.windows_build_config).build_runs_on_small }}
build_runs_on_medium: ${{ fromJSON(needs.setup-windows.outputs.windows_build_config).build_runs_on_medium }}
rocm_package_version: ${{ needs.setup-windows.outputs.rocm_package_version }}
release_type: dev
repository: ${{ github.repository }}
ref: ${{ needs.setup-windows.outputs.ref }}
build-windows-tarballs:
permissions:
contents: read
id-token: write # Authenticate to AWS for build artifacts and publication.
name: Build Windows Tarballs
needs: [create-branch, setup-windows, build-windows]
if: ${{ inputs.dry_run != true && needs.build-windows.result == 'success' }}
uses: ./.github/workflows/multi_arch_build_tarballs.yml
secrets: inherit # zizmor: ignore[secrets-inherit]
with:
dist_amdgpu_families: ${{ fromJSON(needs.setup-windows.outputs.windows_build_config).dist_amdgpu_families }}
platform: windows
package_version: ${{ needs.setup-windows.outputs.rocm_package_version }}
release_type: dev
build_runs_on: ${{ fromJSON(needs.setup-windows.outputs.windows_build_config).build_runs_on_tarballs }}
repository: ${{ github.repository }}
ref: ${{ needs.setup-windows.outputs.ref }}
build-windows-python-packages:
permissions:
contents: read
id-token: write # Authenticate to AWS for build artifacts and publication.
name: Build Windows Python Packages
needs: [create-branch, setup-windows, build-windows]
if: ${{ inputs.dry_run != true && needs.build-windows.result == 'success' }}
uses: ./.github/workflows/build_windows_python_packages.yml
secrets: inherit # zizmor: ignore[secrets-inherit]
with:
artifact_group: ${{ fromJSON(needs.setup-windows.outputs.windows_build_config).artifact_group }}
amdgpu_families: ${{ fromJSON(needs.setup-windows.outputs.windows_build_config).dist_amdgpu_families }}
linux_amdgpu_families: ${{ fromJSON(needs.setup-windows.outputs.windows_build_config).linux_amdgpu_families }}
windows_amdgpu_families: ${{ fromJSON(needs.setup-windows.outputs.windows_build_config).windows_amdgpu_families }}
package_version: ${{ needs.setup-windows.outputs.rocm_package_version }}
release_type: dev
build_runs_on: ${{ fromJSON(needs.setup-windows.outputs.windows_build_config).build_runs_on_large }}
repository: ${{ github.repository }}
ref: ${{ needs.setup-windows.outputs.ref }}
build-windows-msi:
permissions:
contents: read
id-token: write # Authenticate to AWS to upload MSI packages.
name: Build Windows MSI Packages
needs: [create-branch, setup-windows, build-windows]
if: ${{ inputs.dry_run != true && needs.build-windows.result == 'success' }}
uses: ./.github/workflows/multi_arch_build_native_windows_packages.yml
with:
artifact_run_id: ${{ github.run_id }}
rocm_version: ${{ needs.setup-windows.outputs.rocm_package_version }}
msi_version: ${{ needs.setup-windows.outputs.rocm_msi_package_version }}
# Only the runtime package is published in artifacts today; core's Windows
# artifacts (core-amdsmi, core-runtime) are not yet available.
packages: runtime
release_type: dev
repository: ${{ github.repository }}
ref: ${{ needs.setup-windows.outputs.ref }}
build_runs_on: ${{ fromJSON(needs.setup-windows.outputs.windows_build_config).build_runs_on_large }}
publish-windows-artifacts:
permissions:
contents: read
id-token: write # Authenticate to AWS for build artifacts and publication.
name: Publish Windows Artifacts
needs: [create-branch, setup-windows, build-windows, build-windows-tarballs, build-windows-python-packages, build-windows-msi]
if: ${{ inputs.dry_run != true && needs.build-windows-tarballs.result == 'success' && needs.build-windows-python-packages.result == 'success' && needs.build-windows-msi.result == 'success' }}
runs-on: ubuntu-26.04
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
timeout-minutes: 15
with:
persist-credentials: false
ref: ${{ needs.setup-windows.outputs.ref }}
- name: Setup Python
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"
- name: Install requirements
run: pip install -r requirements.txt
- name: Configure AWS Credentials
uses: ./.github/actions/configure_aws_product_publication_credentials
with:
release_type: dev
product: core
- name: Publish to release buckets
run: |
python build_tools/github_actions/publish_rocm_to_release_buckets.py \
--run-id="${{ github.run_id }}" \
--platform=windows \
--release-type="dev" \
--structured \
--build-variant="release"
trigger-windows-msi-install:
permissions:
actions: write # Dispatch downstream workflows.
name: Trigger Windows MSI Install Test
needs: [create-branch, setup-windows, build-windows-msi]
if: ${{ inputs.dry_run != true && needs.build-windows-msi.result == 'success' }}
runs-on: ubuntu-26.04
steps:
- name: Trigger test_native_windows_packages_install
uses: benc-uk/workflow-dispatch@d004979be141727c7a17c28f603e2facc40d0855 # v1.3.3
with:
workflow: test_native_windows_packages_install.yml
inputs: |
{
"artifact_run_id": "${{ github.run_id }}",
"packages": "runtime",
"rocm_version": "${{ needs.setup-windows.outputs.rocm_package_version }}",
"release_type": "dev",
"run_uninstall": "true",
"repository": "${{ github.repository }}",
"ref": "${{ needs.setup-windows.outputs.ref }}"
}
# PyTorch wheels for Windows - triggered after Windows Python packages are published
trigger-windows-pytorch-wheels:
permissions:
actions: write # Dispatch downstream workflows.
name: Trigger Windows PyTorch Wheels
needs: [create-branch, setup-windows, build-windows-python-packages, publish-windows-artifacts]
if: ${{ inputs.dry_run != true && needs.publish-windows-artifacts.result == 'success' }}
runs-on: ubuntu-26.04
steps:
- name: Trigger PyTorch Build
uses: benc-uk/workflow-dispatch@d004979be141727c7a17c28f603e2facc40d0855 # v1.3.3
with:
workflow: multi_arch_release_windows_pytorch_wheels.yml
inputs: |
{
"amdgpu_families": "${{ fromJSON(needs.setup-windows.outputs.windows_build_config).dist_amdgpu_families }}",
"rocm_version": "${{ needs.setup-windows.outputs.rocm_package_version }}",
"rocm_package_find_links_url": "${{ needs.build-windows-python-packages.outputs.package_find_links_url }}",
"release_type": "dev",
"ref": "${{ needs.create-branch.outputs.branch_name }}",
"python_version": "3.12,3.13,3.14",
"build_runs_on": "${{ fromJSON(needs.setup-windows.outputs.windows_build_config).build_runs_on_large }}"
}
# ==========================================================================
# Phase 3 - ASAN: Dispatch as separate workflow (gets its own run_id)
# ==========================================================================
dispatch-asan-build:
permissions:
actions: write # Dispatch downstream workflows.
name: Dispatch ASAN Build
needs: create-branch
if: ${{ inputs.dry_run != true && (inputs.linux_amdgpu_families || 'all') != 'none' }}
runs-on: ubuntu-26.04
outputs:
run_url: ${{ steps.dispatch.outputs.runUrlHtml }}
steps:
- name: Dispatch multi_arch_release_asan
id: dispatch
uses: benc-uk/workflow-dispatch@d004979be141727c7a17c28f603e2facc40d0855 # v1.3.3
with:
workflow: multi_arch_release_asan.yml
ref: ${{ needs.create-branch.outputs.branch_name }}
inputs: |
{
"release_type": "dev",
"linux_amdgpu_families": "${{ inputs.linux_amdgpu_families || 'all' }}",
"build_pytorch": "false"
}
- name: Output ASAN run URL
env:
ASAN_URL: ${{ steps.dispatch.outputs.runUrlHtml }}
run: |
echo "## ASAN Build Dispatched" >> "$GITHUB_STEP_SUMMARY"
echo "**Run URL:** ${ASAN_URL}" >> "$GITHUB_STEP_SUMMARY"
echo ""
echo "ASAN build runs as a separate workflow to ensure artifacts are stored"
echo "under a unique run_id, preventing mixing with release artifacts."
# ==========================================================================
# Phase 3 - Testing: gfx94x (Linux) and gfx110x (Windows) only
# ==========================================================================
trigger-linux-tests:
permissions:
actions: write # Dispatch downstream workflows.
name: Trigger Linux Tests (gfx94X-dcgpu)
needs: [create-branch, setup-linux, build-linux]
if: ${{ inputs.dry_run != true && inputs.build_only != true && needs.build-linux.result == 'success' && ((inputs.linux_amdgpu_families || 'all') == 'all' || contains(inputs.linux_amdgpu_families, 'gfx94X-dcgpu')) }}
runs-on: ubuntu-26.04
outputs:
test_run_url: ${{ steps.trigger-tests.outputs.runUrlHtml }}
steps:
- name: Get gfx94X-dcgpu family info
id: family-info
env:
BUILD_CONFIG: ${{ needs.setup-linux.outputs.linux_build_config }}
run: |
FAMILY_INFO=$(echo "$BUILD_CONFIG" | jq -r '.per_family_info[] | select(.amdgpu_family == "gfx94X-dcgpu")')
echo "test_runs_on=$(echo "$FAMILY_INFO" | jq -r '.["test-runs-on"] // ""')" >> "$GITHUB_OUTPUT"
echo "amdgpu_targets=$(echo "$FAMILY_INFO" | jq -r '.amdgpu_targets // ""')" >> "$GITHUB_OUTPUT"
- name: Trigger test_artifacts for gfx94X-dcgpu
id: trigger-tests
if: ${{ steps.family-info.outputs.test_runs_on != '' }}
uses: benc-uk/workflow-dispatch@d004979be141727c7a17c28f603e2facc40d0855 # v1.3.3
with:
workflow: test_artifacts.yml
inputs: |
{
"artifact_group": "gfx94X-dcgpu",
"artifact_run_id": "${{ github.run_id }}",
"amdgpu_families": "gfx94X-dcgpu",
"amdgpu_targets": "${{ steps.family-info.outputs.amdgpu_targets }}",
"test_runs_on": "${{ steps.family-info.outputs.test_runs_on }}",
"test_type": "${{ inputs.test_type || 'standard' }}",
"release_type": "dev",
"repository": "${{ github.repository }}",
"ref": "${{ needs.create-branch.outputs.branch_name }}",
"build_variant": "release"
}
- name: Output test run URL
if: ${{ steps.trigger-tests.outputs.runUrlHtml != '' }}
env:
TEST_RUN_URL: ${{ steps.trigger-tests.outputs.runUrlHtml }}
run: |
echo "## Linux Tests Triggered" >> "$GITHUB_STEP_SUMMARY"
echo "**Test Run:** ${TEST_RUN_URL}" >> "$GITHUB_STEP_SUMMARY"
trigger-linux-tests-extra:
permissions:
actions: write # Dispatch downstream workflows.
name: Trigger Linux Tests (${{ matrix.amdgpu_family }})
needs: [create-branch, setup-linux, build-linux]
if: ${{ inputs.dry_run != true && inputs.build_only != true && needs.build-linux.result == 'success' }}
runs-on: ubuntu-26.04
strategy:
fail-fast: false
matrix:
include:
- amdgpu_family: gfx90a
# Hard-code: gfx90a's tests_on_trigger is "nightly" only, so the
# setup config clears test_runs_on. Compiler bump always tests it.
hardcoded_test_runs_on: linux-gfx90a-1gpu-ossci-rocm
- amdgpu_family: gfx950-dcgpu
# Hard-code: gfx950's tests_on_trigger is "submodule_bump" only,
# so the setup config clears test_runs_on for scheduled runs.
hardcoded_test_runs_on: linux-gfx950-1gpu-ccs-ossci-rocm
- amdgpu_family: gfx1151
hardcoded_test_runs_on: ""
steps:
- name: Check if family is requested
id: check
env:
FAMILIES: ${{ inputs.linux_amdgpu_families || 'all' }}
FAMILY: ${{ matrix.amdgpu_family }}
run: |
if [ "$FAMILIES" == "all" ] || echo "$FAMILIES" | grep -q "$FAMILY"; then
echo "should_run=true" >> "$GITHUB_OUTPUT"
else
echo "should_run=false" >> "$GITHUB_OUTPUT"
fi
- name: Get family info
id: family-info
if: ${{ steps.check.outputs.should_run == 'true' }}
env:
BUILD_CONFIG: ${{ needs.setup-linux.outputs.linux_build_config }}
FAMILY: ${{ matrix.amdgpu_family }}
HARDCODED_RUNS_ON: ${{ matrix.hardcoded_test_runs_on }}
run: |
FAMILY_INFO=$(echo "$BUILD_CONFIG" | jq -r --arg f "$FAMILY" '.per_family_info[] | select(.amdgpu_family == $f)')
echo "amdgpu_targets=$(echo "$FAMILY_INFO" | jq -r '.amdgpu_targets // ""')" >> "$GITHUB_OUTPUT"
# Use hardcoded runner if provided, otherwise use config value
if [ -n "$HARDCODED_RUNS_ON" ]; then
echo "test_runs_on=$HARDCODED_RUNS_ON" >> "$GITHUB_OUTPUT"
else
echo "test_runs_on=$(echo "$FAMILY_INFO" | jq -r '.["test-runs-on"] // ""')" >> "$GITHUB_OUTPUT"
fi
- name: Trigger test_artifacts for ${{ matrix.amdgpu_family }}
id: trigger-tests
if: ${{ steps.check.outputs.should_run == 'true' && steps.family-info.outputs.test_runs_on != '' }}
uses: benc-uk/workflow-dispatch@d004979be141727c7a17c28f603e2facc40d0855 # v1.3.3
with:
workflow: test_artifacts.yml
inputs: |
{
"artifact_group": "${{ matrix.amdgpu_family }}",
"artifact_run_id": "${{ github.run_id }}",
"amdgpu_families": "${{ matrix.amdgpu_family }}",
"amdgpu_targets": "${{ steps.family-info.outputs.amdgpu_targets }}",
"test_runs_on": "${{ steps.family-info.outputs.test_runs_on }}",
"test_type": "${{ inputs.test_type || 'standard' }}",
"release_type": "dev",
"repository": "${{ github.repository }}",
"ref": "${{ needs.create-branch.outputs.branch_name }}",
"build_variant": "release"
}
- name: Output test run URL
if: ${{ steps.trigger-tests.outputs.runUrlHtml != '' }}
env:
TEST_RUN_URL: ${{ steps.trigger-tests.outputs.runUrlHtml }}
FAMILY: ${{ matrix.amdgpu_family }}
run: |
echo "## Linux Tests Triggered ($FAMILY)" >> "$GITHUB_STEP_SUMMARY"
echo "**Test Run:** ${TEST_RUN_URL}" >> "$GITHUB_STEP_SUMMARY"
trigger-windows-tests:
permissions:
actions: write # Dispatch downstream workflows.
name: Trigger Windows Tests (gfx110X-all)
needs: [create-branch, setup-windows, build-windows]
if: ${{ inputs.dry_run != true && inputs.build_only != true && needs.build-windows.result == 'success' && ((inputs.windows_amdgpu_families || 'all') == 'all' || contains(inputs.windows_amdgpu_families, 'gfx110X-all')) }}
runs-on: ubuntu-26.04
outputs:
test_run_url: ${{ steps.trigger-tests.outputs.runUrlHtml }}
steps:
- name: Get gfx110X-all family info
id: family-info
env:
BUILD_CONFIG: ${{ needs.setup-windows.outputs.windows_build_config }}
run: |
FAMILY_INFO=$(echo "$BUILD_CONFIG" | jq -r '.per_family_info[] | select(.amdgpu_family == "gfx110X-all")')
echo "test_runs_on=$(echo "$FAMILY_INFO" | jq -r '.["test-runs-on"] // ""')" >> "$GITHUB_OUTPUT"
echo "amdgpu_targets=$(echo "$FAMILY_INFO" | jq -r '.amdgpu_targets // ""')" >> "$GITHUB_OUTPUT"
- name: Trigger test_artifacts for gfx110X-all (Windows)
id: trigger-tests
if: ${{ steps.family-info.outputs.test_runs_on != '' }}
uses: benc-uk/workflow-dispatch@d004979be141727c7a17c28f603e2facc40d0855 # v1.3.3
with:
workflow: test_artifacts.yml
inputs: |
{
"artifact_group": "gfx110X-all",
"artifact_run_id": "${{ github.run_id }}",
"amdgpu_families": "gfx110X-all",
"amdgpu_targets": "${{ steps.family-info.outputs.amdgpu_targets }}",
"test_runs_on": "${{ steps.family-info.outputs.test_runs_on }}",
"test_type": "${{ inputs.test_type || 'standard' }}",
"release_type": "dev",
"repository": "${{ github.repository }}",
"ref": "${{ needs.create-branch.outputs.branch_name }}",
"build_variant": "release"
}
- name: Output test run URL
if: ${{ steps.trigger-tests.outputs.runUrlHtml != '' }}
env:
TEST_RUN_URL: ${{ steps.trigger-tests.outputs.runUrlHtml }}
run: |
echo "## Windows Tests Triggered" >> "$GITHUB_STEP_SUMMARY"
echo "**Test Run:** ${TEST_RUN_URL}" >> "$GITHUB_STEP_SUMMARY"
# ==========================================================================
# Phase 4 - RCCL Coco: Smoke tests via rocm-systems harness
# ==========================================================================
rccl-coco:
name: RCCL Coco Tests
needs: [create-branch, setup-linux, publish-linux-artifacts]
# Standard, including the daily schedule, runs coco. Quick skips it.
if: ${{ inputs.dry_run != true && inputs.build_only != true && needs.publish-linux-artifacts.result == 'success' && (inputs.test_type || 'standard') == 'standard' }}
permissions:
contents: read
uses: ./.github/workflows/rccl_coco.yml
secrets: inherit # zizmor: ignore[secrets-inherit]
with:
rocm_version: ${{ needs.setup-linux.outputs.rocm_package_version }}
rocm_system_ref: ${{ needs.create-branch.outputs.rocm_system_ref }}
trigger_kind: ci
# ==========================================================================
# Summary
# ==========================================================================
summary:
name: Summary
needs:
- create-branch
- setup-linux
- build-linux
- build-linux-tarballs
- build-linux-python-packages
- build-linux-native-deb-packages
- build-linux-native-rpm-packages
- publish-linux-artifacts
- trigger-linux-pytorch-wheels
- trigger-linux-jax-wheels
- setup-windows
- build-windows
- build-windows-tarballs
- build-windows-python-packages
- build-windows-msi
- publish-windows-artifacts
- trigger-windows-msi-install
- trigger-windows-pytorch-wheels
- dispatch-asan-build
- trigger-linux-tests
- trigger-linux-tests-extra
- trigger-windows-tests
- rccl-coco
if: always()
runs-on: ubuntu-26.04
env:
LLVM_REF: ${{ inputs.llvm_ref || 'amd-staging' }}
HIPIFY_REF: ${{ inputs.hipify_ref || 'amd-staging' }}
SPIRV_REF: ${{ inputs.spirv_ref || 'amd-staging' }}
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
timeout-minutes: 15
- name: Setup Python
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"
- name: Generate artifact URLs
id: artifact-urls
env:
RELEASE_TYPE: dev
run: |
cd build_tools
python -c "
import sys
sys.path.insert(0, '.')
from _therock_utils.workflow_outputs import WorkflowOutputRoot
run_id = '${{ github.run_id }}'
for platform in ['linux', 'windows']:
root = WorkflowOutputRoot.from_workflow_run(
run_id=run_id,
platform=platform,
release_type='dev'
)
print(f'{platform}_artifact_url={root.artifact_index().https_url}')
print(f'{platform}_log_url={root.log_root_index().https_url}')
print(f'{platform}_manifest_url={root.manifests_index().https_url}')
" | grep '=' >> "$GITHUB_OUTPUT"
- name: Generate summary
env:
ASAN_URL: ${{ needs.dispatch-asan-build.outputs.run_url }}
BRANCH_NAME: ${{ needs.create-branch.outputs.branch_name }}
LINUX_TEST_RUN_URL: ${{ needs.trigger-linux-tests.outputs.test_run_url }}
WINDOWS_TEST_RUN_URL: ${{ needs.trigger-windows-tests.outputs.test_run_url }}
LINUX_ARTIFACT_URL: ${{ steps.artifact-urls.outputs.linux_artifact_url }}
LINUX_LOG_URL: ${{ steps.artifact-urls.outputs.linux_log_url }}
LINUX_MANIFEST_URL: ${{ steps.artifact-urls.outputs.linux_manifest_url }}
WINDOWS_ARTIFACT_URL: ${{ steps.artifact-urls.outputs.windows_artifact_url }}
WINDOWS_LOG_URL: ${{ steps.artifact-urls.outputs.windows_log_url }}
WINDOWS_MANIFEST_URL: ${{ steps.artifact-urls.outputs.windows_manifest_url }}
run: |
echo "## Workflow Results" >> "$GITHUB_STEP_SUMMARY"
echo "" >> "$GITHUB_STEP_SUMMARY"
# Branch
if [ "${{ needs.create-branch.result }}" == "success" ]; then
echo "- :white_check_mark: Branch: [\`${BRANCH_NAME}\`](https://github.com/${{ github.repository }}/tree/${BRANCH_NAME})" >> "$GITHUB_STEP_SUMMARY"
else
echo "- :x: Branch creation failed" >> "$GITHUB_STEP_SUMMARY"
fi
echo "" >> "$GITHUB_STEP_SUMMARY"
echo "### Linux" >> "$GITHUB_STEP_SUMMARY"
# Linux Release build
if [ "${{ needs.build-linux.result }}" == "success" ]; then
echo "- :white_check_mark: Build (all architectures)" >> "$GITHUB_STEP_SUMMARY"
elif [ "${{ needs.build-linux.result }}" == "failure" ]; then
echo "- :x: Build failed" >> "$GITHUB_STEP_SUMMARY"
elif [ "${{ needs.build-linux.result }}" == "skipped" ]; then
echo "- :fast_forward: Build skipped" >> "$GITHUB_STEP_SUMMARY"
fi
# Linux packaging
if [ "${{ needs.build-linux-tarballs.result }}" == "success" ] && [ "${{ needs.build-linux-python-packages.result }}" == "success" ]; then
echo "- :white_check_mark: Packaging (tarballs + Python packages)" >> "$GITHUB_STEP_SUMMARY"
elif [ "${{ needs.build-linux-tarballs.result }}" == "failure" ] || [ "${{ needs.build-linux-python-packages.result }}" == "failure" ]; then
echo "- :x: Packaging failed" >> "$GITHUB_STEP_SUMMARY"
elif [ "${{ needs.build-linux-tarballs.result }}" == "skipped" ]; then
echo "- :fast_forward: Packaging skipped" >> "$GITHUB_STEP_SUMMARY"
fi
# Linux native packages
if [ "${{ needs.build-linux-native-deb-packages.result }}" == "success" ] && [ "${{ needs.build-linux-native-rpm-packages.result }}" == "success" ]; then
echo "- :white_check_mark: Native packages (DEB + RPM)" >> "$GITHUB_STEP_SUMMARY"
elif [ "${{ needs.build-linux-native-deb-packages.result }}" == "failure" ] || [ "${{ needs.build-linux-native-rpm-packages.result }}" == "failure" ]; then
echo "- :x: Native packages failed" >> "$GITHUB_STEP_SUMMARY"
elif [ "${{ needs.build-linux-native-deb-packages.result }}" == "skipped" ]; then
echo "- :fast_forward: Native packages skipped" >> "$GITHUB_STEP_SUMMARY"
fi
# Linux publish
if [ "${{ needs.publish-linux-artifacts.result }}" == "success" ]; then
echo "- :white_check_mark: Published to release buckets" >> "$GITHUB_STEP_SUMMARY"
elif [ "${{ needs.publish-linux-artifacts.result }}" == "failure" ]; then
echo "- :x: Publishing failed" >> "$GITHUB_STEP_SUMMARY"
elif [ "${{ needs.publish-linux-artifacts.result }}" == "skipped" ]; then
echo "- :fast_forward: Publishing skipped" >> "$GITHUB_STEP_SUMMARY"
fi
# Linux tests (gfx94X-dcgpu)
if [ "${{ needs.trigger-linux-tests.result }}" == "success" ]; then
LINUX_TEST_URL="${LINUX_TEST_RUN_URL}"
if [ -n "$LINUX_TEST_URL" ]; then
echo "- :white_check_mark: Tests triggered (gfx94X-dcgpu): [View Run]($LINUX_TEST_URL)" >> "$GITHUB_STEP_SUMMARY"
else
echo "- :white_check_mark: Tests triggered (gfx94X-dcgpu)" >> "$GITHUB_STEP_SUMMARY"
fi
elif [ "${{ needs.trigger-linux-tests.result }}" == "failure" ]; then
echo "- :x: Test trigger failed (gfx94X-dcgpu)" >> "$GITHUB_STEP_SUMMARY"
fi
# Linux tests (gfx90a, gfx950-dcgpu, gfx1151 - matrix job)
if [ "${{ needs.trigger-linux-tests-extra.result }}" == "success" ]; then
echo "- :white_check_mark: Tests triggered (gfx90a, gfx950-dcgpu, gfx1151)" >> "$GITHUB_STEP_SUMMARY"
elif [ "${{ needs.trigger-linux-tests-extra.result }}" == "failure" ]; then
echo "- :x: Test trigger failed (gfx90a, gfx950-dcgpu, gfx1151)" >> "$GITHUB_STEP_SUMMARY"
elif [ "${{ needs.trigger-linux-tests-extra.result }}" == "skipped" ]; then
echo "- :fast_forward: Tests skipped (gfx90a, gfx950-dcgpu, gfx1151)" >> "$GITHUB_STEP_SUMMARY"
fi
echo "" >> "$GITHUB_STEP_SUMMARY"
echo "### Windows" >> "$GITHUB_STEP_SUMMARY"
# Windows build
if [ "${{ needs.build-windows.result }}" == "success" ]; then
echo "- :white_check_mark: Build (all architectures)" >> "$GITHUB_STEP_SUMMARY"
elif [ "${{ needs.build-windows.result }}" == "failure" ]; then
echo "- :x: Build failed" >> "$GITHUB_STEP_SUMMARY"
elif [ "${{ needs.build-windows.result }}" == "skipped" ]; then
echo "- :fast_forward: Build skipped" >> "$GITHUB_STEP_SUMMARY"
fi
# Windows packaging
if [ "${{ needs.build-windows-tarballs.result }}" == "success" ] && [ "${{ needs.build-windows-python-packages.result }}" == "success" ]; then