From a35ffef5cc41c33171ef907d5535924e073482d2 Mon Sep 17 00:00:00 2001 From: Won-Kyu Park Date: Tue, 5 Dec 2023 16:41:52 +0900 Subject: [PATCH 1/3] [BUILD] update for windows * fix deprecation warning * use bash shell to fix error --- .github/workflows/llvm-build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/llvm-build.yml b/.github/workflows/llvm-build.yml index 978129d74e1f..d377628dd782 100644 --- a/.github/workflows/llvm-build.yml +++ b/.github/workflows/llvm-build.yml @@ -70,7 +70,7 @@ jobs: - name: Set up MSVC if: matrix.config.arch == 'x64' && (matrix.config.target-os == 'windows') - uses: ilammy/msvc-dev-cmd@v1.4.1 + uses: ilammy/msvc-dev-cmd@v1.12.1 with: arch: amd64 @@ -204,6 +204,7 @@ jobs: - name: Upload LLVM Artifacts to Azure if: ${{ (github.repository == 'openai/triton') }} + shell: bash -el {0} run: | az storage blob upload --account-name tritonlang --auth-mode login --container-name llvm-builds --file "${{ env.llvm_install_dir }}.tar.gz" --name "${{ env.llvm_install_dir }}.tar.gz" --overwrite From 1a369487178c4ea1eb228218428e42a5cdfa8a2c Mon Sep 17 00:00:00 2001 From: Won-Kyu Park Date: Sat, 9 Dec 2023 12:11:18 +0900 Subject: [PATCH 2/3] [BUILD] update for windows * build "mlir" only * disable LLVM_ENABLE_DIA_SDK --- .github/workflows/llvm-build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/llvm-build.yml b/.github/workflows/llvm-build.yml index d377628dd782..35c55f365b73 100644 --- a/.github/workflows/llvm-build.yml +++ b/.github/workflows/llvm-build.yml @@ -126,7 +126,8 @@ jobs: -DLLVM_BUILD_TOOLS=ON -DLLVM_ENABLE_ASSERTIONS=ON -DMLIR_ENABLE_BINDINGS_PYTHON=ON - -DLLVM_ENABLE_PROJECTS="clang;mlir" + -DLLVM_ENABLE_PROJECTS=mlir + -DLLVM_ENABLE_DIA_SDK=OFF -DLLVM_INSTALL_UTILS=ON -DLLVM_TARGETS_TO_BUILD="host;NVPTX;AMDGPU" -DLLVM_ENABLE_TERMINFO=OFF From 9fbd25240ce5f6e9529dbe49a0584b3aa120780d Mon Sep 17 00:00:00 2001 From: Won-Kyu Park Date: Sun, 14 Jan 2024 14:19:46 +0900 Subject: [PATCH 3/3] enable windows llvm-build --- .github/workflows/llvm-build.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/llvm-build.yml b/.github/workflows/llvm-build.yml index 35c55f365b73..ed3c0ddb18ae 100644 --- a/.github/workflows/llvm-build.yml +++ b/.github/workflows/llvm-build.yml @@ -31,8 +31,7 @@ jobs: - {runner: 'CentOS 7', runs_on: ['self-hosted', 'CPU'], target-os: 'centos', arch: 'x64'} - {runner: 'MacOS X64', runs_on: 'macos-12', target-os: 'macos', arch: 'x64'} - {runner: 'MacOS ARM64', runs_on: 'macos-12', target-os: 'macos', arch: 'arm64'} - # TODO(#2805): add back once the workflow works and runs in comparable time to the other ones - # - {runner: 'Windows Latest', runs_on: 'windows-latest', target-os: 'windows', arch: 'x64'} + - {runner: 'Windows Latest', runs_on: 'windows-latest', target-os: 'windows', arch: 'x64'} steps: