@@ -53,13 +53,14 @@ jobs:
53
53
- name : " Prepare for Upload"
54
54
run : |
55
55
mv /opt/llvm-redpoint llvm-linux-${{ needs.get-branch-name.outputs.branch }}
56
+ zip -r llvm-linux-${{ needs.get-branch-name.outputs.branch }}.zip llvm-linux-${{ needs.get-branch-name.outputs.branch }}
56
57
- name : " Upload LLVM"
57
58
uses : actions/upload-artifact@v4
58
59
with :
59
60
name : llvm-linux-${{ needs.get-branch-name.outputs.branch }}
60
61
if-no-files-found : error
61
62
path : |
62
- llvm-linux-${{ needs.get-branch-name.outputs.branch }}
63
+ llvm-linux-${{ needs.get-branch-name.outputs.branch }}.zip
63
64
64
65
llvm-redpoint-windows :
65
66
name : " Build for Windows"
@@ -113,17 +114,37 @@ jobs:
113
114
shell : pwsh
114
115
run : |
115
116
Move-Item -Force "C:\Program Files\LLVM" llvm-win64-${{ needs.get-branch-name.outputs.branch }}
117
+ Compress-Archive -Force -Path "llvm-win64-${{ needs.get-branch-name.outputs.branch }}" -DestinationPath "llvm-win64-${{ needs.get-branch-name.outputs.branch }}.zip"
116
118
- name : " Upload LLVM ZIP"
117
119
uses : actions/upload-artifact@v4
118
120
with :
119
121
name : llvm-win64-${{ needs.get-branch-name.outputs.branch }}
120
122
if-no-files-found : error
121
123
path : |
122
- llvm-win64-${{ needs.get-branch-name.outputs.branch }}
124
+ llvm-win64-${{ needs.get-branch-name.outputs.branch }}.zip
123
125
- name : " Upload LLVM MSI"
124
126
uses : actions/upload-artifact@v4
125
127
with :
126
128
name : llvm-win64-msi-${{ needs.get-branch-name.outputs.branch }}
127
129
if-no-files-found : error
128
130
path : |
129
- .github/workflows/llvm.msi
131
+ .github/workflows/llvm.msi
132
+
133
+ create-release :
134
+ name : " Create Release"
135
+ needs :
136
+ - llvm-redpoint-linux
137
+ - llvm-redpoint-windows
138
+ runs-on : ubuntu-latest
139
+ if : github.ref == 'refs/heads/main'
140
+ steps :
141
+ - name : Publish Release
142
+ uses : ncipollo/release-action@v1
143
+ with :
144
+ artifacts : " llvm-linux-${{ needs.get-branch-name.outputs.branch }},llvm-win64-${{ needs.get-branch-name.outputs.branch }}"
145
+ artifactErrorsFailBuild : true
146
+ artifactContentType : " application/zip"
147
+ tag : " ${{ needs.get-branch-name.outputs.branch }}-${{ env.GITHUB_SHA }}"
148
+ commit : ${{ env.GITHUB_SHA }}
149
+ body : This release for Clang ${{ needs.get-branch-name.outputs.branch }} was automatically created from a successful build.
150
+ generateReleaseNotes : true
0 commit comments