Skip to content

Update InlineFunction.cpp #5

Update InlineFunction.cpp

Update InlineFunction.cpp #5

name: android-ndk-windows-llvm-msvc-PDB.yml
permissions:
contents: write
on: [push, pull_request]
jobs:
build:
# Skip building pull requests from the same repository
if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) }}
runs-on: windows-2022
env:
BUILD_TYPE: RelWithDebInfo
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
path: llvm-msvc
submodules: 'recursive'
- name: Install vswhere
run: |
choco install vswhere --version 2.8.4 --force
- name: Setup MSVC
run: |
$vsPath = &vswhere -version 17.8.5 -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath
echo "VSINSTALLDIR=$vsPath" >> $env:GITHUB_ENV
echo "PATH=$vsPath\VC\Tools\MSVC\14.34.31933\bin\Hostx64\x64;$env:PATH" >> $env:GITHUB_ENV
- name: Build llvm
run: |
cmake -Bbuild -G "Visual Studio 17 2022" -A x64 `
-DLLVM_ENABLE_RPMALLOC=ON `
-DHAVE_STD_IS_TRIVIALLY_COPYABLE=0 -DLLVM_TOOL_LLVM_SHLIB_BUILD=off `
-DLLVM_ENABLE_PACK_PDB=ON `
-DLLVM_INCLUDE_TESTS=OFF `
-DLLVM_INCLUDE_EXAMPLES=OFF `
-DLLDB_ENABLE_PYTHON=OFF `
-DLLVM_ENABLE_LIBXML2=OFF `
-DLLVM_ENABLE_ZLIB=OFF `
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} `
-DLLVM_USE_CRT_RELEASE=MT `
-DCMAKE_INSTALL_PREFIX=install `
-DLLVM_TARGETS_TO_BUILD="X86;AArch64" `
-DLLVM_ENABLE_PROJECTS="clang;lld" `
llvm-msvc\\llvm
cmake --build build --config ${{ env.BUILD_TYPE }} --verbose
cmake --build build --config ${{ env.BUILD_TYPE }} --target install --verbose
- name: Package ndk-26c
run: |
Invoke-WebRequest -Uri "https://github.com/gmh5225/android-ndk-windows-llvm-msvc/releases/download/r26c/android-ndk-r26c-windows-llvm-msvc.7z" -OutFile "android-ndk-r26c-windows-llvm-msvc.7z"
7z x "android-ndk-r26c-windows-llvm-msvc.7z"
del android-ndk-r26c-windows-llvm-msvc.7z
Copy-Item -Path "install\bin\*" -Destination "android-ndk-r26c-windows-llvm-msvc\toolchains\llvm\prebuilt\windows-x86_64\bin" -Force -Recurse
Get-ChildItem -Path "android-ndk-r26c-windows-llvm-msvc\toolchains\llvm\prebuilt\windows-x86_64\bin" -Recurse -Filter *.pdb | Remove-Item -Force
Copy-Item -Path "install\bin\clang.pdb" -Destination "android-ndk-r26c-windows-llvm-msvc\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.pdb" -Force
Copy-Item -Path "install\bin\lld.exe" -Destination "android-ndk-r26c-windows-llvm-msvc\toolchains\llvm\prebuilt\windows-x86_64\bin\ld.exe" -Force
Copy-Item -Path "install\bin\lld.pdb" -Destination "android-ndk-r26c-windows-llvm-msvc\toolchains\llvm\prebuilt\windows-x86_64\bin\lld.pdb" -Force
Copy-Item -Path "install\lib\clang" -Destination "android-ndk-r26c-windows-llvm-msvc\toolchains\llvm\prebuilt\windows-x86_64\lib" -Recurse -Force
7z a android-ndk-r26c-windows-llvm-msvc-PDB.zip android-ndk-r26c-windows-llvm-msvc
- name: Upload ndk-26c
uses: actions/upload-artifact@v4
with:
name: android-ndk-r26c-windows-llvm-msvc-PDB
path: android-ndk-r26c-windows-llvm-msvc-PDB.zip
- name: Release ndk-26c
uses: softprops/action-gh-release@v1
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
prerelease: ${{ !startsWith(github.ref, 'refs/tags/v') || contains(github.ref, '-pre') }}
files: android-ndk-r26c-windows-llvm-msvc-PDB.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}