Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 24 additions & 3 deletions .github/workflows/redpoint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,14 @@ jobs:
- name: "Prepare for Upload"
run: |
mv /opt/llvm-redpoint llvm-linux-${{ needs.get-branch-name.outputs.branch }}
zip -r llvm-linux-${{ needs.get-branch-name.outputs.branch }}.zip llvm-linux-${{ needs.get-branch-name.outputs.branch }}
- name: "Upload LLVM"
uses: actions/upload-artifact@v4
with:
name: llvm-linux-${{ needs.get-branch-name.outputs.branch }}
if-no-files-found: error
path: |
llvm-linux-${{ needs.get-branch-name.outputs.branch }}
llvm-linux-${{ needs.get-branch-name.outputs.branch }}.zip

llvm-redpoint-windows:
name: "Build for Windows"
Expand Down Expand Up @@ -113,17 +114,37 @@ jobs:
shell: pwsh
run: |
Move-Item -Force "C:\Program Files\LLVM" llvm-win64-${{ needs.get-branch-name.outputs.branch }}
Compress-Archive -Force -Path "llvm-win64-${{ needs.get-branch-name.outputs.branch }}" -DestinationPath "llvm-win64-${{ needs.get-branch-name.outputs.branch }}.zip"
- name: "Upload LLVM ZIP"
uses: actions/upload-artifact@v4
with:
name: llvm-win64-${{ needs.get-branch-name.outputs.branch }}
if-no-files-found: error
path: |
llvm-win64-${{ needs.get-branch-name.outputs.branch }}
llvm-win64-${{ needs.get-branch-name.outputs.branch }}.zip
- name: "Upload LLVM MSI"
uses: actions/upload-artifact@v4
with:
name: llvm-win64-msi-${{ needs.get-branch-name.outputs.branch }}
if-no-files-found: error
path: |
.github/workflows/llvm.msi
.github/workflows/llvm.msi

create-release:
name: "Create Release"
needs:
- llvm-redpoint-linux
- llvm-redpoint-windows
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Publish Release
uses: ncipollo/release-action@v1
with:
artifacts: "llvm-linux-${{ needs.get-branch-name.outputs.branch }},llvm-win64-${{ needs.get-branch-name.outputs.branch }}"
artifactErrorsFailBuild: true
artifactContentType: "application/zip"
tag: "${{ needs.get-branch-name.outputs.branch }}-${{ env.GITHUB_SHA }}"
commit: ${{ env.GITHUB_SHA }}
body: This release for Clang ${{ needs.get-branch-name.outputs.branch }} was automatically created from a successful build.
generateReleaseNotes: true