Skip to content

Fix setting volatile attribute for inlined basic blocks and instructions #1

Fix setting volatile attribute for inlined basic blocks and instructions

Fix setting volatile attribute for inlined basic blocks and instructions #1

name: windows-llvm-msvc-build-PDB
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: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
env:
BUILD_TYPE: RelWithDebInfo
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
path: llvm-msvc
submodules: 'recursive'
- name: Build llvm
run: |
cmake -Bbuild `
-DLLVM_ENABLE_PACK_PDB=ON `
-DLLVM_INCLUDE_TESTS=OFF `
-DLLVM_INCLUDE_TOOLS=ON `
-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;ARM;AArch64;Mips;RISCV" `
-DLLVM_ENABLE_PROJECTS="clang;lld;lldb;clang-tools-extra" `
llvm-msvc\\llvm
cmake --build build --config ${{ env.BUILD_TYPE }}
cmake --build build --config ${{ env.BUILD_TYPE }} --target install
- name: Package llvm
run: |
7z a -v1500m windows-llvm-msvc-PDB.zip install
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: windows-llvm-msvc-PDB
path: windows-llvm-msvc-PDB.zip.00*
- name: Release
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: windows-llvm-msvc-PDB.zip.00*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}