Report diagnostic notes on what Unreal metadata tokens were discarded… #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Redpoint Games LLVM" | |
on: | |
push: | |
branches: [ "redpoint/*" ] | |
pull_request: | |
branches: [ "redpoint/*" ] | |
jobs: | |
get-branch-name: | |
name: "Get Branch Name" | |
runs-on: ubuntu-latest | |
outputs: | |
branch: ${{ steps.extract_branch.outputs.branch }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- id: extract_branch | |
name: Extract branch name | |
shell: bash | |
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/redpoint/}}" >> $GITHUB_OUTPUT | |
llvm-redpoint-linux: | |
name: "Build for Linux" | |
needs: | |
- get-branch-name | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
mkdir -pv build/release/linux | |
cmake "-DLLVM_ENABLE_PROJECTS:STRING=clang;lld" \ | |
-DLLVM_INSTALL_TOOLCHAIN_ONLY:BOOL=TRUE \ | |
-DLLVM_INCLUDE_BENCHMARKS:BOOL=FALSE \ | |
-DLLVM_INCLUDE_DOCS:BOOL=FALSE \ | |
-DLLVM_INCLUDE_EXAMPLES:BOOL=FALSE \ | |
-DLLVM_INCLUDE_TESTS:BOOL=FALSE \ | |
-DCLANG_INCLUDE_TESTS:BOOL=FALSE \ | |
-DCLANG_INCLUDE_DOCS:BOOL=FALSE \ | |
-DLLVM_ENABLE_DIA_SDK:BOOL=FALSE \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-Hllvm -Bbuild/release/linux | |
cmake --build build/release/linux --config Release -j 20 | |
cmake --install build/release/linux --config Release --prefix "/opt/llvm-redpoint" --strip | |
mv /opt/llvm-redpoint 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-redpoint-windows: | |
name: "Build for Windows" | |
needs: | |
- get-branch-name | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
shell: pwsh | |
run: | | |
mkdir build\release\win64 | |
cmake "-DLLVM_ENABLE_PROJECTS:STRING=clang;lld" ` | |
-DLLVM_INSTALL_TOOLCHAIN_ONLY:BOOL=TRUE ` | |
-DLLVM_INCLUDE_BENCHMARKS:BOOL=FALSE ` | |
-DLLVM_INCLUDE_DOCS:BOOL=FALSE ` | |
-DLLVM_INCLUDE_EXAMPLES:BOOL=FALSE ` | |
-DLLVM_INCLUDE_TESTS:BOOL=FALSE ` | |
-DCLANG_INCLUDE_TESTS:BOOL=FALSE ` | |
-DCLANG_INCLUDE_DOCS:BOOL=FALSE ` | |
-DLLVM_ENABLE_DIA_SDK:BOOL=FALSE ` | |
-DCMAKE_BUILD_TYPE=Release ` | |
-Hllvm -Bbuild/release/win64 | |
if ($LastExitCode -ne 0) { exit $LastExitCode } | |
cmake --build build/release/win64 --config Release -j 20 | |
if ($LastExitCode -ne 0) { exit $LastExitCode } | |
if (Test-Path "C:\Program Files\LLVM") { | |
Remove-Item -Force -Recurse "C:\Program Files\LLVM" | |
} | |
cmake --install build/release/win64 --config Release --strip | |
if ($LastExitCode -ne 0) { exit $LastExitCode } | |
Move-Item -Force "C:\Program Files\LLVM" llvm-win64-${{ needs.get-branch-name.outputs.branch }} | |
- name: "Upload LLVM" | |
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 }} |