Skip to content

Commit

Permalink
Build llvm Debug/Release for Windows. (#1800)
Browse files Browse the repository at this point in the history
* Update llvm-win.yml

* Update llvm-win.yml

* Update llvm-win.yml
  • Loading branch information
deadlocklogic authored Dec 12, 2023
1 parent 12c267d commit 1211272
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/llvm-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ jobs:
fail-fast: false
matrix:
config:
- { os: windows-2022, platform: x86, vs: "Program Files/Microsoft Visual Studio/2022" }
- { os: windows-2022, platform: x64, vs: "Program Files/Microsoft Visual Studio/2022" }
- { os: windows-2022, platform: x86, configuration : Debug, vs: "Program Files/Microsoft Visual Studio/2022" }
- { os: windows-2022, platform: x64, configuration : Debug, vs: "Program Files/Microsoft Visual Studio/2022" }
- { os: windows-2022, platform: x86, configuration : Release, vs: "Program Files/Microsoft Visual Studio/2022" }
- { os: windows-2022, platform: x64, configuration : Release, vs: "Program Files/Microsoft Visual Studio/2022" }
- { os: windows-2022, platform: x86, configuration : RelWithDebInfo, vs: "Program Files/Microsoft Visual Studio/2022" }
- { os: windows-2022, platform: x64, configuration : RelWithDebInfo, vs: "Program Files/Microsoft Visual Studio/2022" }

runs-on: ${{ matrix.config.os }}

Expand All @@ -19,6 +23,7 @@ jobs:
CXX: ${{ matrix.config.cxx }}
VS_VERSION: ${{ matrix.config.vs }}
PLATFORM: ${{ matrix.config.platform }}
CONFIGURATION: ${{ matrix.config.configuration }}
ACTIONS_ALLOW_UNSECURE_COMMANDS: true

steps:
Expand Down Expand Up @@ -51,16 +56,16 @@ jobs:

- name: Build LLVM
shell: bash
run: build/build.sh build_llvm -platform $PLATFORM
run: build/build.sh build_llvm -platform $PLATFORM -configuration $CONFIGURATION
working-directory: C:\CppSharp

- name: Package LLVM
shell: bash
run: build/build.sh package_llvm -platform $PLATFORM
run: build/build.sh package_llvm -platform $PLATFORM -configuration $CONFIGURATION
working-directory: C:\CppSharp

- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: llvm
path: C:\CppSharp\build\llvm\llvm-*-*.*
path: C:\CppSharp\build\llvm\llvm-*-*.*

0 comments on commit 1211272

Please sign in to comment.