From ec21f9598143a2dd566a3ff3ead9e3cd63223795 Mon Sep 17 00:00:00 2001 From: Colin Davidson Date: Tue, 24 Sep 2024 16:40:26 +0100 Subject: [PATCH] Add windows build of llvm --- .github/workflows/create_llvm.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create_llvm.yml b/.github/workflows/create_llvm.yml index f53455336..1b3e1c0b0 100644 --- a/.github/workflows/create_llvm.yml +++ b/.github/workflows/create_llvm.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: version: [17, 18] - os: [ubuntu-22.04] + os: [ubuntu-22.04, windows-2019] build_type: [Release, RelAssert] arch : [x86_64, aarch64] exclude: @@ -25,6 +25,18 @@ jobs: version: 17 - arch: aarch64 build_type: Release + - arch: aarch64 + build_type: windows-2019 + - os: ubuntu-22.04 + # version: 17 + # - os: ubuntu-22.04 + # arch: aarch64 + # - os: ubuntu-22.04 + # build_type: Release + - os: windows-2019 + version: 17 + - os: windows-2019 + build_type: Release include: # We want to set flags related to particular matrix dimensions. To do this # we need to create default values first, and then against particular matrix @@ -41,7 +53,8 @@ jobs: - build_type: Release build_type_flags: -DCMAKE_BUILD_TYPE=Release - runs-on: ${{ matrix.os }} + runs-on: windows-2019 + #${{ matrix.os }} steps: - name: Cache llvm id: cache @@ -51,6 +64,11 @@ jobs: llvm_install/** key: llvm-${{ matrix.os }}-${{ matrix.arch }}-v${{ matrix.version }}-${{ matrix.build_type }} + - name: Setup Windows + if: startsWith(runner.os, 'Windows') + uses: llvm/actions/setup-windows@main + with: + arch: amd64 - name: Checkout repo llvm if: steps.cache.outputs.cache-hit != 'true'