-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.55 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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