Use different msvc-dev action #383
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Setup MSVC Developer Command Prompt | |
uses: TheMrMilchmann/[email protected] | |
with: | |
arch: x86 | |
- name: Download WinFlexBison | |
uses: suisei-cn/[email protected] | |
with: | |
url: "https://github.com/lexxmark/winflexbison/releases/download/v2.5.25/win_flex_bison-2.5.25.zip" | |
- name: Unzip WinFlexBison | |
run: 7z x win_flex_bison-2.5.25.zip -obin | |
- name: Download llvm-project-with-widberg-extensions | |
uses: suisei-cn/[email protected] | |
with: | |
url: "https://github.com/widberg/llvm-project-widberg-extensions/releases/download/widberg-0.0.3/widberg-0.0.3-windows-x86_64-ebf30081beeca3bf1ec166f789c0c1889e0c27c1.zip" | |
- name: Unzip llvm-project-with-widberg-extensions | |
run: 7z x widberg-0.0.3-windows-x86_64-ebf30081beeca3bf1ec166f789c0c1889e0c27c1.zip -obin | |
- name: Build | |
run: | | |
cmake -B build -GNinja -DWIDBERG_CLANG_CL="${{ github.workspace }}/bin/clang-cl.exe" -DBISON_EXECUTABLE="${{ github.workspace }}/bin/win_bison.exe" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_VERBOSE_MAKEFILE=ON | |
cmake --build build --target package_fmtk --config RelWithDebInfo | |
- name: Archive Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: fmtk-${{ github.sha }} | |
path: | | |
build/fmtk.zip | |
build/fmtksdk.zip |